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

  -
    input:
      bytes: [ 0x55, 0x55, 0xc1, 0x91 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "smax x21, x10, #85"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xc0, 0x91 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "v9.4a" ]
    expected:
      insns:
        -
          asm_text: "smax x23, x13, #59"

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