test_cases:
  -
    input:
      bytes: [ 0x00, 0x00, 0x80, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za0.s, p0/m, p0/m, z0.b, z0.b"

  -
    input:
      bytes: [ 0x41, 0x55, 0x95, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za1.s, p5/m, p2/m, z10.b, z21.b"

  -
    input:
      bytes: [ 0xa3, 0xed, 0x88, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za3.s, p3/m, p7/m, z13.b, z8.b"

  -
    input:
      bytes: [ 0xe3, 0xff, 0x9f, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za3.s, p7/m, p7/m, z31.b, z31.b"

  -
    input:
      bytes: [ 0x21, 0x0e, 0x90, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za1.s, p3/m, p0/m, z17.b, z16.b"

  -
    input:
      bytes: [ 0x21, 0x84, 0x9e, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za1.s, p1/m, p4/m, z1.b, z30.b"

  -
    input:
      bytes: [ 0x60, 0x56, 0x94, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za0.s, p5/m, p2/m, z19.b, z20.b"

  -
    input:
      bytes: [ 0x80, 0x19, 0x82, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za0.s, p6/m, p0/m, z12.b, z2.b"

  -
    input:
      bytes: [ 0x21, 0xc8, 0x9a, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za1.s, p2/m, p6/m, z1.b, z26.b"

  -
    input:
      bytes: [ 0xc1, 0x0a, 0x9e, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za1.s, p2/m, p0/m, z22.b, z30.b"

  -
    input:
      bytes: [ 0x22, 0xf5, 0x81, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za2.s, p5/m, p7/m, z9.b, z1.b"

  -
    input:
      bytes: [ 0x83, 0xa9, 0x8b, 0xa0 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "smopa za3.s, p2/m, p5/m, z12.b, z11.b"
