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

size_t macro_expr(char *emsg,size_t idx,sb *in,offsetT *val)

{
  char *pcVar1;
  size_t sVar2;
  expressionS ex;
  
  sb_terminate(in);
  pcVar1 = input_line_pointer;
  input_line_pointer = in->ptr + idx;
  expr(0,&ex,expr_evaluate);
  sVar2 = (int)input_line_pointer - (int)in->ptr;
  input_line_pointer = pcVar1;
  if (ex._16_1_ != '\x02') {
    as_bad("%s",emsg);
  }
  *(undefined4 *)val = (undefined4)ex.X_add_number;
  *(undefined4 *)((int)val + 4) = ex.X_add_number._4_4_;
  return sVar2;
}



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

int FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined1 local_30 [8];
  undefined4 local_28;
  undefined4 local_24;
  char local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x16b39;
  FUN_00033bc0(param_3);
  uVar1 = DAT_00074f78;
  DAT_00074f78 = param_2 + *param_3;
  FUN_00021a10(0,local_30,0);
  iVar2 = DAT_00074f78 - *param_3;
  DAT_00074f78 = uVar1;
  if (local_20 != '\x02') {
    FUN_0002a430("%s",param_1);
  }
  *param_4 = local_28;
  param_4[1] = local_24;
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015040
ADD EBX,0x554c7
SUB ESP,0x48
MOV EBP,dword ptr [ESP + 0x64]
PUSH EBP
CALL 0x00033bc0
LEA ESI,[EBX + 0x8f78]
MOV EAX,dword ptr [ESP + 0x64]
ADD EAX,dword ptr [EBP]
MOV EDX,dword ptr [ESI]
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0xc
PUSH 0x0
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH 0x0
CALL 0x00021a10
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV EDI,dword ptr [ESI]
SUB EDI,dword ptr [EBP]
CMP byte ptr [ESP + 0x2c],0x2
MOV dword ptr [ESI],EDX
JZ 0x00016b9d
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe4d24]
PUSH dword ptr [ESP + 0x58]
PUSH EAX
CALL 0x0002a430
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x5c]
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x28]
MOV dword ptr [ECX],EAX
MOV EAX,EDI
MOV dword ptr [ECX + 0x4],EDX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_30 [8];" type_identifier (array_declarator "local_30 [8]" identifier [ number_literal ]) ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "char local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x16b39;" (assignment_expression "uStack_14 = 0x16b39" identifier = number_literal) ;) (expression_statement "FUN_00033bc0(param_3);" (call_expression "FUN_00033bc0(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "uVar1 = DAT_00074f78;" (assignment_expression "uVar1 = DAT_00074f78" identifier = identifier) ;) (expression_statement "DAT_00074f78 = param_2 + *param_3;" (assignment_expression "DAT_00074f78 = param_2 + *param_3" identifier = (binary_expression "param_2 + *param_3" identifier + (pointer_expression "*param_3" * identifier))) ;) (expression_statement "FUN_00021a10(0,local_30,0);" (call_expression "FUN_00021a10(0,local_30,0)" identifier (argument_list "(0,local_30,0)" ( number_literal , identifier , number_literal ))) ;) (expression_statement "iVar2 = DAT_00074f78 - *param_3;" (assignment_expression "iVar2 = DAT_00074f78 - *param_3" identifier = (binary_expression "DAT_00074f78 - *param_3" identifier - (pointer_expression "*param_3" * identifier))) ;) (expression_statement "DAT_00074f78 = uVar1;" (assignment_expression "DAT_00074f78 = uVar1" identifier = identifier) ;) (if_statement "if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }" if (parenthesized_expression "(local_20 != '\x02')" ( (binary_expression "local_20 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002a430("%s",param_1);\n  }" { (expression_statement "FUN_0002a430("%s",param_1);" (call_expression "FUN_0002a430("%s",param_1)" identifier (argument_list "("%s",param_1)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[1] = local_24;" (assignment_expression "param_4[1] = local_24" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t macro_expr(char *emsg,size_t idx,sb *in,offsetT *val)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  expressionS ex;\n  \n  sb_terminate(in);\n  pcVar1 = input_line_pointer;\n  input_line_pointer = in->ptr + idx;\n  expr(0,&ex,expr_evaluate);\n  sVar2 = (int)input_line_pointer - (int)in->ptr;\n  input_line_pointer = pcVar1;\n  if (ex._16_1_ != '\x02') {\n    as_bad("%s",emsg);\n  }\n  *(undefined4 *)val = (undefined4)ex.X_add_number;\n  *(undefined4 *)((int)val + 4) = ex.X_add_number._4_4_;\n  return sVar2;\n}\n\n" comment (function_definition "size_t macro_expr(char *emsg,size_t idx,sb *in,offsetT *val)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  expressionS ex;\n  \n  sb_terminate(in);\n  pcVar1 = input_line_pointer;\n  input_line_pointer = in->ptr + idx;\n  expr(0,&ex,expr_evaluate);\n  sVar2 = (int)input_line_pointer - (int)in->ptr;\n  input_line_pointer = pcVar1;\n  if (ex._16_1_ != '\x02') {\n    as_bad("%s",emsg);\n  }\n  *(undefined4 *)val = (undefined4)ex.X_add_number;\n  *(undefined4 *)((int)val + 4) = ex.X_add_number._4_4_;\n  return sVar2;\n}" primitive_type (function_declarator "macro_expr(char *emsg,size_t idx,sb *in,offsetT *val)" identifier (parameter_list "(char *emsg,size_t idx,sb *in,offsetT *val)" ( (parameter_declaration "char *emsg" primitive_type (pointer_declarator "*emsg" * identifier)) , (parameter_declaration "size_t idx" primitive_type identifier) , (parameter_declaration "sb *in" type_identifier (pointer_declarator "*in" * identifier)) , (parameter_declaration "offsetT *val" type_identifier (pointer_declarator "*val" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  expressionS ex;\n  \n  sb_terminate(in);\n  pcVar1 = input_line_pointer;\n  input_line_pointer = in->ptr + idx;\n  expr(0,&ex,expr_evaluate);\n  sVar2 = (int)input_line_pointer - (int)in->ptr;\n  input_line_pointer = pcVar1;\n  if (ex._16_1_ != '\x02') {\n    as_bad("%s",emsg);\n  }\n  *(undefined4 *)val = (undefined4)ex.X_add_number;\n  *(undefined4 *)((int)val + 4) = ex.X_add_number._4_4_;\n  return sVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "expressionS ex;" type_identifier identifier ;) (expression_statement "sb_terminate(in);" (call_expression "sb_terminate(in)" identifier (argument_list "(in)" ( identifier ))) ;) (expression_statement "pcVar1 = input_line_pointer;" (assignment_expression "pcVar1 = input_line_pointer" identifier = identifier) ;) (expression_statement "input_line_pointer = in->ptr + idx;" (assignment_expression "input_line_pointer = in->ptr + idx" identifier = (binary_expression "in->ptr + idx" (field_expression "in->ptr" identifier -> field_identifier) + identifier)) ;) (expression_statement "expr(0,&ex,expr_evaluate);" (call_expression "expr(0,&ex,expr_evaluate)" identifier (argument_list "(0,&ex,expr_evaluate)" ( number_literal , (pointer_expression "&ex" & identifier) , identifier ))) ;) (expression_statement "sVar2 = (int)input_line_pointer - (int)in->ptr;" (assignment_expression "sVar2 = (int)input_line_pointer - (int)in->ptr" identifier = (binary_expression "(int)input_line_pointer - (int)in->ptr" (cast_expression "(int)input_line_pointer" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)in->ptr" ( (type_descriptor "int" primitive_type) ) (field_expression "in->ptr" identifier -> field_identifier)))) ;) (expression_statement "input_line_pointer = pcVar1;" (assignment_expression "input_line_pointer = pcVar1" identifier = identifier) ;) (if_statement "if (ex._16_1_ != '\x02') {\n    as_bad("%s",emsg);\n  }" if (parenthesized_expression "(ex._16_1_ != '\x02')" ( (binary_expression "ex._16_1_ != '\x02'" (field_expression "ex._16_1_" identifier . field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    as_bad("%s",emsg);\n  }" { (expression_statement "as_bad("%s",emsg);" (call_expression "as_bad("%s",emsg)" identifier (argument_list "("%s",emsg)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "*(undefined4 *)val = (undefined4)ex.X_add_number;" (assignment_expression "*(undefined4 *)val = (undefined4)ex.X_add_number" (pointer_expression "*(undefined4 *)val" * (cast_expression "(undefined4 *)val" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined4)ex.X_add_number" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "ex.X_add_number" identifier . field_identifier))) ;) (expression_statement "*(undefined4 *)((int)val + 4) = ex.X_add_number._4_4_;" (assignment_expression "*(undefined4 *)((int)val + 4) = ex.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 "ex.X_add_number._4_4_" (field_expression "ex.X_add_number" identifier . field_identifier) . field_identifier)) ;) (return_statement "return sVar2;" return identifier ;) })))
(translation_unit "int FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}\n\n" (function_definition "int FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_30 [8];" type_identifier (array_declarator "local_30 [8]" identifier [ number_literal ]) ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "char local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x16b39;" (assignment_expression "uStack_14 = 0x16b39" identifier = number_literal) ;) (expression_statement "FUN_00033bc0(param_3);" (call_expression "FUN_00033bc0(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "uVar1 = DAT_00074f78;" (assignment_expression "uVar1 = DAT_00074f78" identifier = identifier) ;) (expression_statement "DAT_00074f78 = param_2 + *param_3;" (assignment_expression "DAT_00074f78 = param_2 + *param_3" identifier = (binary_expression "param_2 + *param_3" identifier + (pointer_expression "*param_3" * identifier))) ;) (expression_statement "FUN_00021a10(0,local_30,0);" (call_expression "FUN_00021a10(0,local_30,0)" identifier (argument_list "(0,local_30,0)" ( number_literal , identifier , number_literal ))) ;) (expression_statement "iVar2 = DAT_00074f78 - *param_3;" (assignment_expression "iVar2 = DAT_00074f78 - *param_3" identifier = (binary_expression "DAT_00074f78 - *param_3" identifier - (pointer_expression "*param_3" * identifier))) ;) (expression_statement "DAT_00074f78 = uVar1;" (assignment_expression "DAT_00074f78 = uVar1" identifier = identifier) ;) (if_statement "if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }" if (parenthesized_expression "(local_20 != '\x02')" ( (binary_expression "local_20 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002a430("%s",param_1);\n  }" { (expression_statement "FUN_0002a430("%s",param_1);" (call_expression "FUN_0002a430("%s",param_1)" identifier (argument_list "("%s",param_1)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[1] = local_24;" (assignment_expression "param_4[1] = local_24" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00016b30(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)" (identifier "FUN_00016b30") (parameter_list "(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 local_30 [8];\n  undefined4 local_28;\n  undefined4 local_24;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16b39;\n  FUN_00033bc0(param_3);\n  uVar1 = DAT_00074f78;\n  DAT_00074f78 = param_2 + *param_3;\n  FUN_00021a10(0,local_30,0);\n  iVar2 = DAT_00074f78 - *param_3;\n  DAT_00074f78 = uVar1;\n  if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }\n  *param_4 = local_28;\n  param_4[1] = local_24;\n  return iVar2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 local_30 [8];" (type_identifier "undefined1") (array_declarator "local_30 [8]" (identifier "local_30") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "char local_20;" (primitive_type "char") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x16b39;" (assignment_expression "uStack_14 = 0x16b39" (identifier "uStack_14") (= "=") (number_literal "0x16b39")) (; ";")) (expression_statement "FUN_00033bc0(param_3);" (call_expression "FUN_00033bc0(param_3)" (identifier "FUN_00033bc0") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar1 = DAT_00074f78;" (assignment_expression "uVar1 = DAT_00074f78" (identifier "uVar1") (= "=") (identifier "DAT_00074f78")) (; ";")) (expression_statement "DAT_00074f78 = param_2 + *param_3;" (assignment_expression "DAT_00074f78 = param_2 + *param_3" (identifier "DAT_00074f78") (= "=") (binary_expression "param_2 + *param_3" (identifier "param_2") (+ "+") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "FUN_00021a10(0,local_30,0);" (call_expression "FUN_00021a10(0,local_30,0)" (identifier "FUN_00021a10") (argument_list "(0,local_30,0)" (( "(") (number_literal "0") (, ",") (identifier "local_30") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = DAT_00074f78 - *param_3;" (assignment_expression "iVar2 = DAT_00074f78 - *param_3" (identifier "iVar2") (= "=") (binary_expression "DAT_00074f78 - *param_3" (identifier "DAT_00074f78") (- "-") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "DAT_00074f78 = uVar1;" (assignment_expression "DAT_00074f78 = uVar1" (identifier "DAT_00074f78") (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (local_20 != '\x02') {\n    FUN_0002a430("%s",param_1);\n  }" (if "if") (parenthesized_expression "(local_20 != '\x02')" (( "(") (binary_expression "local_20 != '\x02'" (identifier "local_20") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n    FUN_0002a430("%s",param_1);\n  }" ({ "{") (expression_statement "FUN_0002a430("%s",param_1);" (call_expression "FUN_0002a430("%s",param_1)" (identifier "FUN_0002a430") (argument_list "("%s",param_1)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "param_4[1] = local_24;" (assignment_expression "param_4[1] = local_24" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_24")) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

size_t function_1(char *emsg,size_t var_2,type_1 *in,type_2 *val)

{
  char *pcVar1;
  size_t sVar2;
  type_3 ex;
  
  var_1(in);
  pcVar1 = input_line_pointer;
  input_line_pointer = in->ptr + var_2;
  var_3(0,&ex,expr_evaluate);
  sVar2 = (int)input_line_pointer - (int)in->ptr;
  input_line_pointer = pcVar1;
  if (ex._16_1_ != '\x02') {
    var_4("%s",emsg);
  }
  *(type_4 *)val = (type_4)ex.X_add_number;
  *(type_4 *)((int)val + 4) = ex.X_add_number._4_4_;
  return sVar2;
}


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

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

int MASKED(undefined4 param_1,int param_2,int *param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined1 local_30 [8];
  undefined4 local_28;
  undefined4 local_24;
  char local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x16b39;
  FUN_00033bc0(param_3);
  uVar1 = DAT_00074f78;
  DAT_00074f78 = param_2 + *param_3;
  FUN_00021a10(0,local_30,0);
  iVar2 = DAT_00074f78 - *param_3;
  DAT_00074f78 = uVar1;
  if (local_20 != '\x02') {
    FUN_0002a430("%s",param_1);
  }
  *param_4 = local_28;
  param_4[1] = local_24;
  return iVar2;
}

