test_cases:
  -
    input:
      bytes: [ 0x00, 0x18, 0xc0, 0x5a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "ctz w0, w0"

  -
    input:
      bytes: [ 0x55, 0x19, 0xc0, 0x5a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "ctz w21, w10"

  -
    input:
      bytes: [ 0xb7, 0x19, 0xc0, 0x5a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "ctz w23, w13"

  -
    input:
      bytes: [ 0xff, 0x1b, 0xc0, 0x5a ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "ctz wzr, wzr"
