test_cases:
  -
    input:
      bytes: [ 0x00, 0x60, 0xa0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2h { z0.h, z1.h }, p0, [x0, x0, lsl #1]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0xb0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2h { z5.h, z6.h }, p3, [x17, x16, lsl #1]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xb0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2h { z0.h, z1.h }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xb8, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2h { z23.h, z24.h }, p3, [x13, #-16, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xb5, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2h { z21.h, z22.h }, p5, [x10, #10, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x60, 0xa0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2h { z0.h, z1.h }, p0, [x0, x0, lsl #1]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0xb0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2h { z5.h, z6.h }, p3, [x17, x16, lsl #1]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xb0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2h { z0.h, z1.h }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xb8, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2h { z23.h, z24.h }, p3, [x13, #-16, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xb5, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2h { z21.h, z22.h }, p5, [x10, #10, mul vl]"
