test_cases:
  -
    input:
      bytes: [ 0x00, 0x00, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w12, 0], [x0]"

  -
    input:
      bytes: [ 0x45, 0x41, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w14, 5], [x10, #5, mul vl]"

  -
    input:
      bytes: [ 0xa7, 0x61, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w15, 7], [x13, #7, mul vl]"

  -
    input:
      bytes: [ 0xef, 0x63, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w15, 15], [sp, #15, mul vl]"

  -
    input:
      bytes: [ 0x25, 0x02, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w12, 5], [x17, #5, mul vl]"

  -
    input:
      bytes: [ 0x21, 0x00, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w12, 1], [x1, #1, mul vl]"

  -
    input:
      bytes: [ 0x68, 0x42, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w14, 8], [x19, #8, mul vl]"

  -
    input:
      bytes: [ 0x80, 0x01, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w12, 0], [x12]"

  -
    input:
      bytes: [ 0x21, 0x40, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w14, 1], [x1, #1, mul vl]"

  -
    input:
      bytes: [ 0xcd, 0x02, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w12, 13], [x22, #13, mul vl]"

  -
    input:
      bytes: [ 0x22, 0x61, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w15, 2], [x9, #2, mul vl]"

  -
    input:
      bytes: [ 0x87, 0x21, 0x00, 0xe1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldr za[w13, 7], [x12, #7, mul vl]"
