
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bfd_boolean __regparm3 parse_constant_immediate(char **str,int64_t *val,aarch64_reg_type reg_type)

{
  bfd_boolean bVar1;
  expressionS exp;
  
  bVar1 = parse_immediate_expression(str,&exp,reg_type);
  if (bVar1 != 0) {
    if (exp._16_1_ != '\x02') {
      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);
      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;
      return 0;
    }
    *(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;
    *(undefined4 *)val = (undefined4)exp.X_add_number;
    bVar1 = 1;
  }
  return bVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_00045360(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 local_18;
  undefined4 local_14;
  char local_10;
  
  iVar1 = FUN_00045190();
  if (iVar1 != 0) {
    if (local_10 != '\x02') {
      DAT_00081650 = dcgettext(0,"constant expression required",5);
      DAT_0008164c = 2;
      return 0;
    }
    param_2[1] = local_14;
    *param_2 = local_18;
    iVar1 = 1;
  }
  return iVar1;
}


PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00017140
ADD EBX,0x32c97
SUB ESP,0x24
LEA EDX,[ESP + 0xc]
CALL 0x00045190
TEST EAX,EAX
JZ 0x00045398
CMP byte ptr [ESP + 0x1c],0x2
JNZ 0x000453a0
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI],EAX
MOV EAX,0x1
ADD ESP,0x24
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe2ede]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000151e0
ADD ESP,0x10
MOV dword ptr [EBX + 0x964c],0x2
MOV dword ptr [EBX + 0x9650],EAX
ADD ESP,0x24
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00045360(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 FUN_00045360(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00045360(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "char local_10;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00045190();" (assignment_expression "iVar1 = FUN_00045190()" identifier = (call_expression "FUN_00045190()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }" { (if_statement "if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }" if (parenthesized_expression "(local_10 != '\x02')" ( (binary_expression "local_10 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }" { (expression_statement "DAT_00081650 = dcgettext(0,"constant expression required",5);" (assignment_expression "DAT_00081650 = dcgettext(0,"constant expression required",5)" identifier = (call_expression "dcgettext(0,"constant expression required",5)" identifier (argument_list "(0,"constant expression required",5)" ( number_literal , (string_literal ""constant expression required"" " string_content ") , number_literal )))) ;) (expression_statement "DAT_0008164c = 2;" (assignment_expression "DAT_0008164c = 2" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_2[1] = local_14;" (assignment_expression "param_2[1] = local_14" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = local_18;" (assignment_expression "*param_2 = local_18" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3 parse_constant_immediate(char **str,int64_t *val,aarch64_reg_type reg_type)\n\n{\n  bfd_boolean bVar1;\n  expressionS exp;\n  \n  bVar1 = parse_immediate_expression(str,&exp,reg_type);\n  if (bVar1 != 0) {\n    if (exp._16_1_ != '\x02') {\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }\n    *(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;\n    *(undefined4 *)val = (undefined4)exp.X_add_number;\n    bVar1 = 1;\n  }\n  return bVar1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3 parse_constant_immediate(char **str,int64_t *val,aarch64_reg_type reg_type)\n\n{\n  bfd_boolean bVar1;\n  expressionS exp;\n  \n  bVar1 = parse_immediate_expression(str,&exp,reg_type);\n  if (bVar1 != 0) {\n    if (exp._16_1_ != '\x02') {\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }\n    *(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;\n    *(undefined4 *)val = (undefined4)exp.X_add_number;\n    bVar1 = 1;\n  }\n  return bVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "parse_constant_immediate(char **str,int64_t *val,aarch64_reg_type reg_type)" identifier (parameter_list "(char **str,int64_t *val,aarch64_reg_type reg_type)" ( (parameter_declaration "char **str" primitive_type (pointer_declarator "**str" * (pointer_declarator "*str" * identifier))) , (parameter_declaration "int64_t *val" primitive_type (pointer_declarator "*val" * identifier)) , (parameter_declaration "aarch64_reg_type reg_type" type_identifier identifier) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  expressionS exp;\n  \n  bVar1 = parse_immediate_expression(str,&exp,reg_type);\n  if (bVar1 != 0) {\n    if (exp._16_1_ != '\x02') {\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }\n    *(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;\n    *(undefined4 *)val = (undefined4)exp.X_add_number;\n    bVar1 = 1;\n  }\n  return bVar1;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "expressionS exp;" type_identifier identifier ;) (expression_statement "bVar1 = parse_immediate_expression(str,&exp,reg_type);" (assignment_expression "bVar1 = parse_immediate_expression(str,&exp,reg_type)" identifier = (call_expression "parse_immediate_expression(str,&exp,reg_type)" identifier (argument_list "(str,&exp,reg_type)" ( identifier , (pointer_expression "&exp" & identifier) , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n    if (exp._16_1_ != '\x02') {\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }\n    *(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;\n    *(undefined4 *)val = (undefined4)exp.X_add_number;\n    bVar1 = 1;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (exp._16_1_ != '\x02') {\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }\n    *(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;\n    *(undefined4 *)val = (undefined4)exp.X_add_number;\n    bVar1 = 1;\n  }" { (if_statement "if (exp._16_1_ != '\x02') {\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }" if (parenthesized_expression "(exp._16_1_ != '\x02')" ( (binary_expression "exp._16_1_ != '\x02'" (field_expression "exp._16_1_" identifier . field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);\n      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;\n      return 0;\n    }" { (expression_statement "inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5);" (assignment_expression "inst.parsing_error.error = (char *)dcgettext(0,"constant expression required",5)" (field_expression "inst.parsing_error.error" (field_expression "inst.parsing_error" identifier . field_identifier) . field_identifier) = (cast_expression "(char *)dcgettext(0,"constant expression required",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"constant expression required",5)" identifier (argument_list "(0,"constant expression required",5)" ( number_literal , (string_literal ""constant expression required"" " string_content ") , 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 ;) })) (expression_statement "*(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_;" (assignment_expression "*(undefined4 *)((int)val + 4) = exp.X_add_number._4_4_" (pointer_expression "*(undefined4 *)((int)val + 4)" * (cast_expression "(undefined4 *)((int)val + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)val + 4)" ( (binary_expression "(int)val + 4" (cast_expression "(int)val" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (field_expression "exp.X_add_number._4_4_" (field_expression "exp.X_add_number" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)val = (undefined4)exp.X_add_number;" (assignment_expression "*(undefined4 *)val = (undefined4)exp.X_add_number" (pointer_expression "*(undefined4 *)val" * (cast_expression "(undefined4 *)val" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined4)exp.X_add_number" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "exp.X_add_number" identifier . field_identifier))) ;) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00045360(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00045360(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00045360(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "char local_10;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00045190();" (assignment_expression "iVar1 = FUN_00045190()" identifier = (call_expression "FUN_00045190()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }" { (if_statement "if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }" if (parenthesized_expression "(local_10 != '\x02')" ( (binary_expression "local_10 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }" { (expression_statement "DAT_00081650 = dcgettext(0,"constant expression required",5);" (assignment_expression "DAT_00081650 = dcgettext(0,"constant expression required",5)" identifier = (call_expression "dcgettext(0,"constant expression required",5)" identifier (argument_list "(0,"constant expression required",5)" ( number_literal , (string_literal ""constant expression required"" " string_content ") , number_literal )))) ;) (expression_statement "DAT_0008164c = 2;" (assignment_expression "DAT_0008164c = 2" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_2[1] = local_14;" (assignment_expression "param_2[1] = local_14" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = local_18;" (assignment_expression "*param_2 = local_18" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00045360(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00045360(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_00045360") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 local_18;\n  undefined4 local_14;\n  char local_10;\n  \n  iVar1 = FUN_00045190();\n  if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "char local_10;" (primitive_type "char") (identifier "local_10") (; ";")) (expression_statement "iVar1 = FUN_00045190();" (assignment_expression "iVar1 = FUN_00045190()" (identifier "iVar1") (= "=") (call_expression "FUN_00045190()" (identifier "FUN_00045190") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }\n    param_2[1] = local_14;\n    *param_2 = local_18;\n    iVar1 = 1;\n  }" ({ "{") (if_statement "if (local_10 != '\x02') {\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }" (if "if") (parenthesized_expression "(local_10 != '\x02')" (( "(") (binary_expression "local_10 != '\x02'" (identifier "local_10") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n      DAT_00081650 = dcgettext(0,"constant expression required",5);\n      DAT_0008164c = 2;\n      return 0;\n    }" ({ "{") (expression_statement "DAT_00081650 = dcgettext(0,"constant expression required",5);" (assignment_expression "DAT_00081650 = dcgettext(0,"constant expression required",5)" (identifier "DAT_00081650") (= "=") (call_expression "dcgettext(0,"constant expression required",5)" (identifier "dcgettext") (argument_list "(0,"constant expression required",5)" (( "(") (number_literal "0") (, ",") (string_literal ""constant expression required"" (" """) (string_content "constant expression required") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "DAT_0008164c = 2;" (assignment_expression "DAT_0008164c = 2" (identifier "DAT_0008164c") (= "=") (number_literal "2")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_2[1] = local_14;" (assignment_expression "param_2[1] = local_14" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_14")) (; ";")) (expression_statement "*param_2 = local_18;" (assignment_expression "*param_2 = local_18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_18")) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(char **str,int64_t *val,type_2 reg_type)

{
  type_1 var_2;
  type_3 exp;
  
  var_2 = var_1(str,&exp,reg_type);
  if (var_2 != 0) {
    if (exp._16_1_ != '\x02') {
      inst.parsing_error.error = (char *)var_3(0,"constant expression required",5);
      inst.parsing_error.kind = AARCH64_OPDE_SYNTAX_ERROR;
      return 0;
    }
    *(type_4 *)((int)val + 4) = exp.X_add_number._4_4_;
    *(type_4 *)val = (type_4)exp.X_add_number;
    var_2 = 1;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 local_18;
  undefined4 local_14;
  char local_10;
  
  iVar1 = FUN_00045190();
  if (iVar1 != 0) {
    if (local_10 != '\x02') {
      DAT_00081650 = dcgettext(0,"constant expression required",5);
      DAT_0008164c = 2;
      return 0;
    }
    param_2[1] = local_14;
    *param_2 = local_18;
    iVar1 = 1;
  }
  return iVar1;
}

