
bfd_boolean parse_shifter_operand(char **str,aarch64_opnd_info *operand,parse_shift_mode mode)

{
  int iVar1;
  uint uVar2;
  bfd_boolean bVar3;
  reg_entry *prVar4;
  char *pcVar5;
  aarch64_opnd_qualifier_t qualifier;
  
  iVar1 = aarch64_get_operand_class(operand->type);
  prVar4 = aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier);
  if (prVar4 == (reg_entry *)0x0) {
    pcVar5 = "integer register expected in the extended/shifted operand register";
    if (iVar1 != 2) {
      bVar3 = parse_shifter_operand_imm(str,operand,mode);
      return bVar3;
    }
  }
  else {
    pcVar5 = "unexpected register in the immediate operand";
    if (iVar1 != 0xb) {
      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {
        *(uint *)&operand->field_3 = (uint)prVar4->number;
        operand->qualifier = qualifier;
        uVar2 = 1;
        if (**str == ',') {
          *str = *str + 1;
          bVar3 = parse_shift(str,operand,mode);
          uVar2 = (uint)(bVar3 != 0);
        }
        return uVar2;
      }
      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);
    }
  }
  inst.parsing_error.error = (char *)dcgettext(0,pcVar5,5);
  inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;
  return 0;
}



ulong FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  long lVar2;
  ulong uVar3;
  char *pcVar4;
  undefined1 local_29 [9];
  
  iVar1 = aarch64_get_operand_class(*param_2);
  lVar2 = FUN_001358e0(param_1,0x13,local_29);
  if (lVar2 == 0) {
    pcVar4 = "integer register expected in the extended/shifted operand register";
    if (iVar1 != 2) {
      uVar3 = FUN_00137ab0(param_1,param_2,param_3);
      return uVar3;
    }
  }
  else {
    pcVar4 = "unexpected register in the immediate operand";
    if (iVar1 != 0xb) {
      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {
        param_2[4] = (uint)*(byte *)(lVar2 + 8);
        *(undefined1 *)(param_2 + 1) = local_29[0];
        uVar3 = 1;
        if (*(char *)*param_1 == ',') {
          *param_1 = (char *)*param_1 + 1;
          iVar1 = FUN_00135e00(param_1,param_2,param_3);
          uVar3 = (ulong)(iVar1 != 0);
        }
        return uVar3;
      }
      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");
    }
  }
  DAT_001b1950 = dcgettext(0,pcVar4,5);
  DAT_001b1948 = 2;
  return 0;
}


PUSH R13
PUSH R12
MOV R12D,EDX
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RBX,RSI
SUB RSP,0x18
MOV EDI,dword ptr [RSI]
CALL 0x0010c540
LEA RDX,[RSP + 0xf]
MOV ESI,0x13
MOV RDI,RBP
MOV R13D,EAX
CALL 0x001358e0
TEST RAX,RAX
JZ 0x00137c40
MOV EDX,0x5
LEA RSI,[0x14ddb8]
CMP R13D,0xb
JZ 0x00137c82
MOVZX ECX,byte ptr [RAX + 0x9]
MOV EDX,0x1
SHL EDX,CL
AND EDX,0x33
JZ 0x00137c70
MOVZX EAX,byte ptr [RAX + 0x8]
MOV dword ptr [RBX + 0x10],EAX
MOVZX EAX,byte ptr [RSP + 0xf]
MOV byte ptr [RBX + 0x4],AL
MOV RDX,qword ptr [RBP]
MOV EAX,0x1
CMP byte ptr [RDX],0x2c
JNZ 0x00137c35
ADD RDX,0x1
MOV RSI,RBX
MOV RDI,RBP
MOV qword ptr [RBP],RDX
MOV EDX,R12D
CALL 0x00135e00
TEST EAX,EAX
SETNZ AL
MOVZX EAX,AL
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EDX,0x5
LEA RSI,[0x14dde8]
CMP R13D,0x2
JZ 0x00137c82
MOV EDX,R12D
MOV RSI,RBX
MOV RDI,RBP
CALL 0x00137ab0
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EDI,0x10
CALL 0x001359c0
MOV EDX,0x5
MOV RSI,RAX
XOR EDI,EDI
CALL 0x0010c1f0
MOV dword ptr [0x001b1948],0x2
MOV qword ptr [0x001b1950],RAX
ADD RSP,0x18
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "ulong FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}\n\n" (function_definition "ulong FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined1 local_29 [9];" type_identifier (array_declarator "local_29 [9]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = aarch64_get_operand_class(*param_2);" (assignment_expression "iVar1 = aarch64_get_operand_class(*param_2)" identifier = (call_expression "aarch64_get_operand_class(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "lVar2 = FUN_001358e0(param_1,0x13,local_29);" (assignment_expression "lVar2 = FUN_001358e0(param_1,0x13,local_29)" identifier = (call_expression "FUN_001358e0(param_1,0x13,local_29)" identifier (argument_list "(param_1,0x13,local_29)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }" { (expression_statement "pcVar4 = "integer register expected in the extended/shifted operand register";" (assignment_expression "pcVar4 = "integer register expected in the extended/shifted operand register"" identifier = (string_literal ""integer register expected in the extended/shifted operand register"" " string_content ")) ;) (if_statement "if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }" { (expression_statement "uVar3 = FUN_00137ab0(param_1,param_2,param_3);" (assignment_expression "uVar3 = FUN_00137ab0(param_1,param_2,param_3)" identifier = (call_expression "FUN_00137ab0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" else (compound_statement "{\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" { (expression_statement "pcVar4 = "unexpected register in the immediate operand";" (assignment_expression "pcVar4 = "unexpected register in the immediate operand"" identifier = (string_literal ""unexpected register in the immediate operand"" " string_content ")) ;) (if_statement "if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }" if (parenthesized_expression "(iVar1 != 0xb)" ( (binary_expression "iVar1 != 0xb" identifier != number_literal) )) (compound_statement "{\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }" { (if_statement "if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }" if (parenthesized_expression "((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0)" ( (binary_expression "(1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0" (parenthesized_expression "(1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U)" ( (binary_expression "1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U" (binary_expression "1 << (*(byte *)(lVar2 + 9) & 0x1f)" number_literal << (parenthesized_expression "(*(byte *)(lVar2 + 9) & 0x1f)" ( (binary_expression "*(byte *)(lVar2 + 9) & 0x1f" (pointer_expression "*(byte *)(lVar2 + 9)" * (cast_expression "(byte *)(lVar2 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 9)" ( (binary_expression "lVar2 + 9" identifier + number_literal) )))) & number_literal) ))) & number_literal) )) != number_literal) )) (compound_statement "{\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }" { (expression_statement "param_2[4] = (uint)*(byte *)(lVar2 + 8);" (assignment_expression "param_2[4] = (uint)*(byte *)(lVar2 + 8)" (subscript_expression "param_2[4]" identifier [ number_literal ]) = (binary_expression "(uint)*(byte *)(lVar2 + 8)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_2 + 1) = local_29[0];" (assignment_expression "*(undefined1 *)(param_2 + 1) = local_29[0]" (pointer_expression "*(undefined1 *)(param_2 + 1)" * (cast_expression "(undefined1 *)(param_2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (subscript_expression "local_29[0]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }" if (parenthesized_expression "(*(char *)*param_1 == ',')" ( (binary_expression "*(char *)*param_1 == ','" (pointer_expression "*(char *)*param_1" * (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) == (char_literal "','" ' character ')) )) (compound_statement "{\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }" { (expression_statement "*param_1 = (char *)*param_1 + 1;" (assignment_expression "*param_1 = (char *)*param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "(char *)*param_1 + 1" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) + number_literal)) ;) (expression_statement "iVar1 = FUN_00135e00(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_00135e00(param_1,param_2,param_3)" identifier = (call_expression "FUN_00135e00(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar3 = (ulong)(iVar1 != 0);" (assignment_expression "uVar3 = (ulong)(iVar1 != 0)" identifier = (call_expression "(ulong)(iVar1 != 0)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");" (assignment_expression "pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand")" identifier = (cast_expression "(char *)FUN_001359c0(0x10,"unexpected register in the immediate operand")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001359c0(0x10,"unexpected register in the immediate operand")" identifier (argument_list "(0x10,"unexpected register in the immediate operand")" ( number_literal , (string_literal ""unexpected register in the immediate operand"" " string_content ") ))))) ;) })) }))) (expression_statement "DAT_001b1950 = dcgettext(0,pcVar4,5);" (assignment_expression "DAT_001b1950 = dcgettext(0,pcVar4,5)" identifier = (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "DAT_001b1948 = 2;" (assignment_expression "DAT_001b1948 = 2" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean parse_shifter_operand(char **str,aarch64_opnd_info *operand,parse_shift_mode mode)\n\n{\n  int iVar1;\n  uint uVar2;\n  bfd_boolean bVar3;\n  reg_entry *prVar4;\n  char *pcVar5;\n  aarch64_opnd_qualifier_t qualifier;\n  \n  iVar1 = aarch64_get_operand_class(operand->type);\n  prVar4 = aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier);\n  if (prVar4 == (reg_entry *)0x0) {\n    pcVar5 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }\n  }\n  else {\n    pcVar5 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }\n  }\n  inst.parsing_error.error = (char *)dcgettext(0,pcVar5,5);\n  inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n  return 0;\n}\n\n" (function_definition "bfd_boolean parse_shifter_operand(char **str,aarch64_opnd_info *operand,parse_shift_mode mode)\n\n{\n  int iVar1;\n  uint uVar2;\n  bfd_boolean bVar3;\n  reg_entry *prVar4;\n  char *pcVar5;\n  aarch64_opnd_qualifier_t qualifier;\n  \n  iVar1 = aarch64_get_operand_class(operand->type);\n  prVar4 = aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier);\n  if (prVar4 == (reg_entry *)0x0) {\n    pcVar5 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }\n  }\n  else {\n    pcVar5 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }\n  }\n  inst.parsing_error.error = (char *)dcgettext(0,pcVar5,5);\n  inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n  return 0;\n}" type_identifier (function_declarator "parse_shifter_operand(char **str,aarch64_opnd_info *operand,parse_shift_mode mode)" identifier (parameter_list "(char **str,aarch64_opnd_info *operand,parse_shift_mode mode)" ( (parameter_declaration "char **str" primitive_type (pointer_declarator "**str" * (pointer_declarator "*str" * identifier))) , (parameter_declaration "aarch64_opnd_info *operand" type_identifier (pointer_declarator "*operand" * identifier)) , (parameter_declaration "parse_shift_mode mode" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  bfd_boolean bVar3;\n  reg_entry *prVar4;\n  char *pcVar5;\n  aarch64_opnd_qualifier_t qualifier;\n  \n  iVar1 = aarch64_get_operand_class(operand->type);\n  prVar4 = aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier);\n  if (prVar4 == (reg_entry *)0x0) {\n    pcVar5 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }\n  }\n  else {\n    pcVar5 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }\n  }\n  inst.parsing_error.error = (char *)dcgettext(0,pcVar5,5);\n  inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "reg_entry *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "aarch64_opnd_qualifier_t qualifier;" type_identifier identifier ;) (expression_statement "iVar1 = aarch64_get_operand_class(operand->type);" (assignment_expression "iVar1 = aarch64_get_operand_class(operand->type)" identifier = (call_expression "aarch64_get_operand_class(operand->type)" identifier (argument_list "(operand->type)" ( (field_expression "operand->type" identifier -> field_identifier) )))) ;) (expression_statement "prVar4 = aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier);" (assignment_expression "prVar4 = aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier)" identifier = (call_expression "aarch64_addr_reg_parse(str,REG_TYPE_R_Z_SP,&qualifier)" identifier (argument_list "(str,REG_TYPE_R_Z_SP,&qualifier)" ( identifier , identifier , (pointer_expression "&qualifier" & identifier) )))) ;) (if_statement "if (prVar4 == (reg_entry *)0x0) {\n    pcVar5 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }\n  }\n  else {\n    pcVar5 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }\n  }" if (parenthesized_expression "(prVar4 == (reg_entry *)0x0)" ( (binary_expression "prVar4 == (reg_entry *)0x0" identifier == (cast_expression "(reg_entry *)0x0" ( (type_descriptor "reg_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar5 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }\n  }" { (expression_statement "pcVar5 = "integer register expected in the extended/shifted operand register";" (assignment_expression "pcVar5 = "integer register expected in the extended/shifted operand register"" identifier = (string_literal ""integer register expected in the extended/shifted operand register"" " string_content ")) ;) (if_statement "if (iVar1 != 2) {\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      bVar3 = parse_shifter_operand_imm(str,operand,mode);\n      return bVar3;\n    }" { (expression_statement "bVar3 = parse_shifter_operand_imm(str,operand,mode);" (assignment_expression "bVar3 = parse_shifter_operand_imm(str,operand,mode)" identifier = (call_expression "parse_shifter_operand_imm(str,operand,mode)" identifier (argument_list "(str,operand,mode)" ( identifier , identifier , identifier )))) ;) (return_statement "return bVar3;" return identifier ;) })) }) (else_clause "else {\n    pcVar5 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }\n  }" else (compound_statement "{\n    pcVar5 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }\n  }" { (expression_statement "pcVar5 = "unexpected register in the immediate operand";" (assignment_expression "pcVar5 = "unexpected register in the immediate operand"" identifier = (string_literal ""unexpected register in the immediate operand"" " string_content ")) ;) (if_statement "if (iVar1 != 0xb) {\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }" if (parenthesized_expression "(iVar1 != 0xb)" ( (binary_expression "iVar1 != 0xb" identifier != number_literal) )) (compound_statement "{\n      if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }\n      pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);\n    }" { (if_statement "if ((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0) {\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }" if (parenthesized_expression "((1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0)" ( (binary_expression "(1 << (prVar4->field_0x9 & 0x1f) & 0x33U) != 0" (parenthesized_expression "(1 << (prVar4->field_0x9 & 0x1f) & 0x33U)" ( (binary_expression "1 << (prVar4->field_0x9 & 0x1f) & 0x33U" (binary_expression "1 << (prVar4->field_0x9 & 0x1f)" number_literal << (parenthesized_expression "(prVar4->field_0x9 & 0x1f)" ( (binary_expression "prVar4->field_0x9 & 0x1f" (field_expression "prVar4->field_0x9" identifier -> field_identifier) & number_literal) ))) & number_literal) )) != number_literal) )) (compound_statement "{\n        *(uint *)&operand->field_3 = (uint)prVar4->number;\n        operand->qualifier = qualifier;\n        uVar2 = 1;\n        if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }\n        return uVar2;\n      }" { (expression_statement "*(uint *)&operand->field_3 = (uint)prVar4->number;" (assignment_expression "*(uint *)&operand->field_3 = (uint)prVar4->number" (pointer_expression "*(uint *)&operand->field_3" * (cast_expression "(uint *)&operand->field_3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&operand->field_3" & (field_expression "operand->field_3" identifier -> field_identifier)))) = (cast_expression "(uint)prVar4->number" ( (type_descriptor "uint" type_identifier) ) (field_expression "prVar4->number" identifier -> field_identifier))) ;) (expression_statement "operand->qualifier = qualifier;" (assignment_expression "operand->qualifier = qualifier" (field_expression "operand->qualifier" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (**str == ',') {\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }" if (parenthesized_expression "(**str == ',')" ( (binary_expression "**str == ','" (pointer_expression "**str" * (pointer_expression "*str" * identifier)) == (char_literal "','" ' character ')) )) (compound_statement "{\n          *str = *str + 1;\n          bVar3 = parse_shift(str,operand,mode);\n          uVar2 = (uint)(bVar3 != 0);\n        }" { (expression_statement "*str = *str + 1;" (assignment_expression "*str = *str + 1" (pointer_expression "*str" * identifier) = (binary_expression "*str + 1" (pointer_expression "*str" * identifier) + number_literal)) ;) (expression_statement "bVar3 = parse_shift(str,operand,mode);" (assignment_expression "bVar3 = parse_shift(str,operand,mode)" identifier = (call_expression "parse_shift(str,operand,mode)" identifier (argument_list "(str,operand,mode)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = (uint)(bVar3 != 0);" (assignment_expression "uVar2 = (uint)(bVar3 != 0)" identifier = (call_expression "(uint)(bVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z);" (assignment_expression "pcVar5 = get_reg_expected_msg(REG_TYPE_R_Z)" identifier = (call_expression "get_reg_expected_msg(REG_TYPE_R_Z)" identifier (argument_list "(REG_TYPE_R_Z)" ( identifier )))) ;) })) }))) (expression_statement "inst.parsing_error.error = (char *)dcgettext(0,pcVar5,5);" (assignment_expression "inst.parsing_error.error = (char *)dcgettext(0,pcVar5,5)" (field_expression "inst.parsing_error.error" (field_expression "inst.parsing_error" identifier . field_identifier) . field_identifier) = (cast_expression "(char *)dcgettext(0,pcVar5,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;" (assignment_expression "inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR" (field_expression "inst.parsing_error.kind" (field_expression "inst.parsing_error" identifier . field_identifier) . field_identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "ulong FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}\n\n" (function_definition "ulong FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined1 local_29 [9];" type_identifier (array_declarator "local_29 [9]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = aarch64_get_operand_class(*param_2);" (assignment_expression "iVar1 = aarch64_get_operand_class(*param_2)" identifier = (call_expression "aarch64_get_operand_class(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "lVar2 = FUN_001358e0(param_1,0x13,local_29);" (assignment_expression "lVar2 = FUN_001358e0(param_1,0x13,local_29)" identifier = (call_expression "FUN_001358e0(param_1,0x13,local_29)" identifier (argument_list "(param_1,0x13,local_29)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }" { (expression_statement "pcVar4 = "integer register expected in the extended/shifted operand register";" (assignment_expression "pcVar4 = "integer register expected in the extended/shifted operand register"" identifier = (string_literal ""integer register expected in the extended/shifted operand register"" " string_content ")) ;) (if_statement "if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }" { (expression_statement "uVar3 = FUN_00137ab0(param_1,param_2,param_3);" (assignment_expression "uVar3 = FUN_00137ab0(param_1,param_2,param_3)" identifier = (call_expression "FUN_00137ab0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" else (compound_statement "{\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" { (expression_statement "pcVar4 = "unexpected register in the immediate operand";" (assignment_expression "pcVar4 = "unexpected register in the immediate operand"" identifier = (string_literal ""unexpected register in the immediate operand"" " string_content ")) ;) (if_statement "if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }" if (parenthesized_expression "(iVar1 != 0xb)" ( (binary_expression "iVar1 != 0xb" identifier != number_literal) )) (compound_statement "{\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }" { (if_statement "if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }" if (parenthesized_expression "((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0)" ( (binary_expression "(1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0" (parenthesized_expression "(1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U)" ( (binary_expression "1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U" (binary_expression "1 << (*(byte *)(lVar2 + 9) & 0x1f)" number_literal << (parenthesized_expression "(*(byte *)(lVar2 + 9) & 0x1f)" ( (binary_expression "*(byte *)(lVar2 + 9) & 0x1f" (pointer_expression "*(byte *)(lVar2 + 9)" * (cast_expression "(byte *)(lVar2 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 9)" ( (binary_expression "lVar2 + 9" identifier + number_literal) )))) & number_literal) ))) & number_literal) )) != number_literal) )) (compound_statement "{\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }" { (expression_statement "param_2[4] = (uint)*(byte *)(lVar2 + 8);" (assignment_expression "param_2[4] = (uint)*(byte *)(lVar2 + 8)" (subscript_expression "param_2[4]" identifier [ number_literal ]) = (binary_expression "(uint)*(byte *)(lVar2 + 8)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_2 + 1) = local_29[0];" (assignment_expression "*(undefined1 *)(param_2 + 1) = local_29[0]" (pointer_expression "*(undefined1 *)(param_2 + 1)" * (cast_expression "(undefined1 *)(param_2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (subscript_expression "local_29[0]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }" if (parenthesized_expression "(*(char *)*param_1 == ',')" ( (binary_expression "*(char *)*param_1 == ','" (pointer_expression "*(char *)*param_1" * (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) == (char_literal "','" ' character ')) )) (compound_statement "{\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }" { (expression_statement "*param_1 = (char *)*param_1 + 1;" (assignment_expression "*param_1 = (char *)*param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "(char *)*param_1 + 1" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) + number_literal)) ;) (expression_statement "iVar1 = FUN_00135e00(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_00135e00(param_1,param_2,param_3)" identifier = (call_expression "FUN_00135e00(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar3 = (ulong)(iVar1 != 0);" (assignment_expression "uVar3 = (ulong)(iVar1 != 0)" identifier = (call_expression "(ulong)(iVar1 != 0)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");" (assignment_expression "pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand")" identifier = (cast_expression "(char *)FUN_001359c0(0x10,"unexpected register in the immediate operand")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001359c0(0x10,"unexpected register in the immediate operand")" identifier (argument_list "(0x10,"unexpected register in the immediate operand")" ( number_literal , (string_literal ""unexpected register in the immediate operand"" " string_content ") ))))) ;) })) }))) (expression_statement "DAT_001b1950 = dcgettext(0,pcVar4,5);" (assignment_expression "DAT_001b1950 = dcgettext(0,pcVar4,5)" identifier = (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "DAT_001b1948 = 2;" (assignment_expression "DAT_001b1948 = 2" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) ))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))))) ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return LIT ;) })))
(function_definition "ulong FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}" (type_identifier "ulong") (function_declarator "FUN_00137ba0(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_00137ba0") (parameter_list "(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  char *pcVar4;\n  undefined1 local_29 [9];\n  \n  iVar1 = aarch64_get_operand_class(*param_2);\n  lVar2 = FUN_001358e0(param_1,0x13,local_29);\n  if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }\n  DAT_001b1950 = dcgettext(0,pcVar4,5);\n  DAT_001b1948 = 2;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined1 local_29 [9];" (type_identifier "undefined1") (array_declarator "local_29 [9]" (identifier "local_29") ([ "[") (number_literal "9") (] "]")) (; ";")) (expression_statement "iVar1 = aarch64_get_operand_class(*param_2);" (assignment_expression "iVar1 = aarch64_get_operand_class(*param_2)" (identifier "iVar1") (= "=") (call_expression "aarch64_get_operand_class(*param_2)" (identifier "aarch64_get_operand_class") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "lVar2 = FUN_001358e0(param_1,0x13,local_29);" (assignment_expression "lVar2 = FUN_001358e0(param_1,0x13,local_29)" (identifier "lVar2") (= "=") (call_expression "FUN_001358e0(param_1,0x13,local_29)" (identifier "FUN_001358e0") (argument_list "(param_1,0x13,local_29)" (( "(") (identifier "param_1") (, ",") (number_literal "0x13") (, ",") (identifier "local_29") () ")")))) (; ";")) (if_statement "if (lVar2 == 0) {\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }\n  else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar4 = "integer register expected in the extended/shifted operand register";\n    if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }\n  }" ({ "{") (expression_statement "pcVar4 = "integer register expected in the extended/shifted operand register";" (assignment_expression "pcVar4 = "integer register expected in the extended/shifted operand register"" (identifier "pcVar4") (= "=") (string_literal ""integer register expected in the extended/shifted operand register"" (" """) (string_content "integer register expected in the extended/shifted operand register") (" """))) (; ";")) (if_statement "if (iVar1 != 2) {\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 2)" (( "(") (binary_expression "iVar1 != 2" (identifier "iVar1") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      uVar3 = FUN_00137ab0(param_1,param_2,param_3);\n      return uVar3;\n    }" ({ "{") (expression_statement "uVar3 = FUN_00137ab0(param_1,param_2,param_3);" (assignment_expression "uVar3 = FUN_00137ab0(param_1,param_2,param_3)" (identifier "uVar3") (= "=") (call_expression "FUN_00137ab0(param_1,param_2,param_3)" (identifier "FUN_00137ab0") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" (else "else") (compound_statement "{\n    pcVar4 = "unexpected register in the immediate operand";\n    if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }\n  }" ({ "{") (expression_statement "pcVar4 = "unexpected register in the immediate operand";" (assignment_expression "pcVar4 = "unexpected register in the immediate operand"" (identifier "pcVar4") (= "=") (string_literal ""unexpected register in the immediate operand"" (" """) (string_content "unexpected register in the immediate operand") (" """))) (; ";")) (if_statement "if (iVar1 != 0xb) {\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }" (if "if") (parenthesized_expression "(iVar1 != 0xb)" (( "(") (binary_expression "iVar1 != 0xb" (identifier "iVar1") (!= "!=") (number_literal "0xb")) () ")")) (compound_statement "{\n      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }\n      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");\n    }" ({ "{") (if_statement "if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }" (if "if") (parenthesized_expression "((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0)" (( "(") (binary_expression "(1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0" (parenthesized_expression "(1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U)" (( "(") (binary_expression "1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U" (binary_expression "1 << (*(byte *)(lVar2 + 9) & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(*(byte *)(lVar2 + 9) & 0x1f)" (( "(") (binary_expression "*(byte *)(lVar2 + 9) & 0x1f" (pointer_expression "*(byte *)(lVar2 + 9)" (* "*") (cast_expression "(byte *)(lVar2 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 9)" (( "(") (binary_expression "lVar2 + 9" (identifier "lVar2") (+ "+") (number_literal "9")) () ")")))) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0x33U")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        param_2[4] = (uint)*(byte *)(lVar2 + 8);\n        *(undefined1 *)(param_2 + 1) = local_29[0];\n        uVar3 = 1;\n        if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }\n        return uVar3;\n      }" ({ "{") (expression_statement "param_2[4] = (uint)*(byte *)(lVar2 + 8);" (assignment_expression "param_2[4] = (uint)*(byte *)(lVar2 + 8)" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "(uint)*(byte *)(lVar2 + 8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(lVar2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 1) = local_29[0];" (assignment_expression "*(undefined1 *)(param_2 + 1) = local_29[0]" (pointer_expression "*(undefined1 *)(param_2 + 1)" (* "*") (cast_expression "(undefined1 *)(param_2 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (subscript_expression "local_29[0]" (identifier "local_29") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(char *)*param_1 == ',') {\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }" (if "if") (parenthesized_expression "(*(char *)*param_1 == ',')" (( "(") (binary_expression "*(char *)*param_1 == ','" (pointer_expression "*(char *)*param_1" (* "*") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (== "==") (char_literal "','" (' "'") (character ",") (' "'"))) () ")")) (compound_statement "{\n          *param_1 = (char *)*param_1 + 1;\n          iVar1 = FUN_00135e00(param_1,param_2,param_3);\n          uVar3 = (ulong)(iVar1 != 0);\n        }" ({ "{") (expression_statement "*param_1 = (char *)*param_1 + 1;" (assignment_expression "*param_1 = (char *)*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "(char *)*param_1 + 1" (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = FUN_00135e00(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_00135e00(param_1,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_00135e00(param_1,param_2,param_3)" (identifier "FUN_00135e00") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar3 = (ulong)(iVar1 != 0);" (assignment_expression "uVar3 = (ulong)(iVar1 != 0)" (identifier "uVar3") (= "=") (call_expression "(ulong)(iVar1 != 0)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");" (assignment_expression "pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand")" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_001359c0(0x10,"unexpected register in the immediate operand")" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001359c0(0x10,"unexpected register in the immediate operand")" (identifier "FUN_001359c0") (argument_list "(0x10,"unexpected register in the immediate operand")" (( "(") (number_literal "0x10") (, ",") (string_literal ""unexpected register in the immediate operand"" (" """) (string_content "unexpected register in the immediate operand") (" """)) () ")"))))) (; ";")) (} "}"))) (} "}")))) (expression_statement "DAT_001b1950 = dcgettext(0,pcVar4,5);" (assignment_expression "DAT_001b1950 = dcgettext(0,pcVar4,5)" (identifier "DAT_001b1950") (= "=") (call_expression "dcgettext(0,pcVar4,5)" (identifier "dcgettext") (argument_list "(0,pcVar4,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar4") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "DAT_001b1948 = 2;" (assignment_expression "DAT_001b1948 = 2" (identifier "DAT_001b1948") (= "=") (number_literal "2")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(char **str,type_2 *operand,type_3 mode)

{
  int var_4;
  type_4 uVar2;
  type_1 var_7;
  type_5 *var_3;
  char *pcVar5;
  type_6 qualifier;
  
  var_4 = var_1(operand->type);
  var_3 = var_2(str,REG_TYPE_R_Z_SP,&qualifier);
  if (var_3 == (type_5 *)0x0) {
    pcVar5 = "integer register expected in the extended/shifted operand register";
    if (var_4 != 2) {
      var_7 = var_5(str,operand,mode);
      return var_7;
    }
  }
  else {
    pcVar5 = "unexpected register in the immediate operand";
    if (var_4 != 0xb) {
      if ((1 << (var_3->field_0x9 & 0x1f) & 0x33U) != 0) {
        *(type_4 *)&operand->field_3 = (type_4)var_3->number;
        operand->qualifier = qualifier;
        uVar2 = 1;
        if (**str == ',') {
          *str = *str + 1;
          var_7 = var_6(str,operand,mode);
          uVar2 = (type_4)(var_7 != 0);
        }
        return uVar2;
      }
      pcVar5 = var_8(REG_TYPE_R_Z);
    }
  }
  inst.parsing_error.error = (char *)var_9(0,pcVar5,5);
  inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (return_statement (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)))))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement (number_literal)))))

ulong MASKED(undefined8 *param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  long lVar2;
  ulong uVar3;
  char *pcVar4;
  undefined1 local_29 [9];
  
  iVar1 = aarch64_get_operand_class(*param_2);
  lVar2 = FUN_001358e0(param_1,0x13,local_29);
  if (lVar2 == 0) {
    pcVar4 = "integer register expected in the extended/shifted operand register";
    if (iVar1 != 2) {
      uVar3 = FUN_00137ab0(param_1,param_2,param_3);
      return uVar3;
    }
  }
  else {
    pcVar4 = "unexpected register in the immediate operand";
    if (iVar1 != 0xb) {
      if ((1 << (*(byte *)(lVar2 + 9) & 0x1f) & 0x33U) != 0) {
        param_2[4] = (uint)*(byte *)(lVar2 + 8);
        *(undefined1 *)(param_2 + 1) = local_29[0];
        uVar3 = 1;
        if (*(char *)*param_1 == ',') {
          *param_1 = (char *)*param_1 + 1;
          iVar1 = FUN_00135e00(param_1,param_2,param_3);
          uVar3 = (ulong)(iVar1 != 0);
        }
        return uVar3;
      }
      pcVar4 = (char *)FUN_001359c0(0x10,"unexpected register in the immediate operand");
    }
  }
  DAT_001b1950 = dcgettext(0,pcVar4,5);
  DAT_001b1948 = 2;
  return 0;
}

