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

  -
    input:
      bytes: [ 0x55, 0x55, 0xc1, 0x11 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "smax w21, w10, #85"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xc0, 0x11 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "smax w23, w13, #59"

  -
    input:
      bytes: [ 0xff, 0xff, 0xc3, 0x11 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "smax wzr, wzr, #-1"
