test_cases:
  -
    input:
      bytes: [ 0x20, 0x20, 0x02, 0x9a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "addpt x0, x1, x2"

  -
    input:
      bytes: [ 0xff, 0x23, 0x02, 0x9a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "addpt sp, sp, x2"

  -
    input:
      bytes: [ 0x20, 0x20, 0x02, 0x9a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "addpt x0, x1, x2"

  -
    input:
      bytes: [ 0x20, 0x3c, 0x02, 0x9a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "addpt x0, x1, x2, lsl #7"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x02, 0x9a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "addpt sp, sp, x2, lsl #7"

  -
    input:
      bytes: [ 0x20, 0x20, 0x02, 0xda ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "subpt x0, x1, x2"

  -
    input:
      bytes: [ 0xff, 0x23, 0x02, 0xda ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "subpt sp, sp, x2"

  -
    input:
      bytes: [ 0x20, 0x20, 0x02, 0xda ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "subpt x0, x1, x2"

  -
    input:
      bytes: [ 0x20, 0x3c, 0x02, 0xda ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "subpt x0, x1, x2, lsl #7"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x02, 0xda ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "subpt sp, sp, x2, lsl #7"

  -
    input:
      bytes: [ 0x20, 0x0c, 0x62, 0x9b ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "maddpt x0, x1, x2, x3"

  -
    input:
      bytes: [ 0x20, 0x8c, 0x62, 0x9b ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "cpa" ]
    expected:
      insns:
        -
          asm_text: "msubpt x0, x1, x2, x3"
