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

int gmon_io_read_vma(FILE *ifp,bfd_vma *valp)

{
  gmon_ptr_size gVar1;
  int iVar2;
  uint val32;
  undefined4 uStack_c;
  
  uStack_c = 0x199f7;
  gVar1 = gmon_get_ptr_size();
  if (gVar1 == ptr_32bit) {
    iVar2 = gmon_io_read_32(ifp,&val32);
  }
  else {
    if (gVar1 != ptr_64bit) {
      return 0;
    }
    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);
  }
  if (iVar2 != 0) {
    return 1;
  }
  bfd_get_sign_extend_vma(core_bfd);
  *valp = val32;
  return 0;
}



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

undefined4 FUN_000199f0(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 local_14 [2];
  undefined4 uStack_c;
  
  uStack_c = 0x199f7;
  iVar1 = FUN_000198a0();
  if (iVar1 == 0) {
    iVar1 = FUN_00019990(param_1,local_14);
  }
  else {
    if (iVar1 != 1) {
      return 0;
    }
    iVar1 = FUN_00019840();
  }
  if (iVar1 != 0) {
    return 1;
  }
  bfd_get_sign_extend_vma(DAT_0002d478);
  *param_2 = local_14[0];
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x12609
SUB ESP,0x14
CALL 0x000198a0
TEST EAX,EAX
JZ 0x00019a30
XOR ESI,ESI
CMP EAX,0x1
JNZ 0x00019a28
MOV EAX,dword ptr [ESP + 0x20]
LEA EDX,[ESP + 0x8]
CALL 0x00019840
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00019a4a
MOV ESI,0x1
ADD ESP,0x14
MOV EAX,ESI
POP EBX
POP ESI
RET
SUB ESP,0x8
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x00019990
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00019a23
LEA EAX,[EBX + 0x1478]
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00012380
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x34]
ADD ESP,0x10
MOV dword ptr [ECX],EAX
ADD ESP,0x14
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000199f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000199f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}" type_identifier (function_declarator "FUN_000199f0(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_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 local_14 [2];" type_identifier (array_declarator "local_14 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x199f7;" (assignment_expression "uStack_c = 0x199f7" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_000198a0();" (assignment_expression "iVar1 = FUN_000198a0()" identifier = (call_expression "FUN_000198a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00019990(param_1,local_14);\n  }" { (expression_statement "iVar1 = FUN_00019990(param_1,local_14);" (assignment_expression "iVar1 = FUN_00019990(param_1,local_14)" identifier = (call_expression "FUN_00019990(param_1,local_14)" identifier (argument_list "(param_1,local_14)" ( identifier , identifier )))) ;) }) (else_clause "else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" else (compound_statement "{\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" { (if_statement "if (iVar1 != 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00019840();" (assignment_expression "iVar1 = FUN_00019840()" identifier = (call_expression "FUN_00019840()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "bfd_get_sign_extend_vma(DAT_0002d478);" (call_expression "bfd_get_sign_extend_vma(DAT_0002d478)" identifier (argument_list "(DAT_0002d478)" ( identifier ))) ;) (expression_statement "*param_2 = local_14[0];" (assignment_expression "*param_2 = local_14[0]" (pointer_expression "*param_2" * identifier) = (subscript_expression "local_14[0]" identifier [ number_literal ])) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint gmon_io_read_vma(FILE *ifp,bfd_vma *valp)\n\n{\n  gmon_ptr_size gVar1;\n  int iVar2;\n  uint val32;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  gVar1 = gmon_get_ptr_size();\n  if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n  }\n  if (iVar2 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(core_bfd);\n  *valp = val32;\n  return 0;\n}\n\n" comment comment (function_definition "int gmon_io_read_vma(FILE *ifp,bfd_vma *valp)\n\n{\n  gmon_ptr_size gVar1;\n  int iVar2;\n  uint val32;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  gVar1 = gmon_get_ptr_size();\n  if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n  }\n  if (iVar2 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(core_bfd);\n  *valp = val32;\n  return 0;\n}" primitive_type (function_declarator "gmon_io_read_vma(FILE *ifp,bfd_vma *valp)" identifier (parameter_list "(FILE *ifp,bfd_vma *valp)" ( (parameter_declaration "FILE *ifp" type_identifier (pointer_declarator "*ifp" * identifier)) , (parameter_declaration "bfd_vma *valp" type_identifier (pointer_declarator "*valp" * identifier)) ))) (compound_statement "{\n  gmon_ptr_size gVar1;\n  int iVar2;\n  uint val32;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  gVar1 = gmon_get_ptr_size();\n  if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n  }\n  if (iVar2 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(core_bfd);\n  *valp = val32;\n  return 0;\n}" { (declaration "gmon_ptr_size gVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint val32;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x199f7;" (assignment_expression "uStack_c = 0x199f7" identifier = number_literal) ;) (expression_statement "gVar1 = gmon_get_ptr_size();" (assignment_expression "gVar1 = gmon_get_ptr_size()" identifier = (call_expression "gmon_get_ptr_size()" identifier (argument_list "()" ( )))) ;) (if_statement "if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n  }" if (parenthesized_expression "(gVar1 == ptr_32bit)" ( (binary_expression "gVar1 == ptr_32bit" identifier == identifier) )) (compound_statement "{\n    iVar2 = gmon_io_read_32(ifp,&val32);\n  }" { (expression_statement "iVar2 = gmon_io_read_32(ifp,&val32);" (assignment_expression "iVar2 = gmon_io_read_32(ifp,&val32)" identifier = (call_expression "gmon_io_read_32(ifp,&val32)" identifier (argument_list "(ifp,&val32)" ( identifier , (pointer_expression "&val32" & identifier) )))) ;) }) (else_clause "else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n  }" else (compound_statement "{\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n  }" { (if_statement "if (gVar1 != ptr_64bit) {\n      return 0;\n    }" if (parenthesized_expression "(gVar1 != ptr_64bit)" ( (binary_expression "gVar1 != ptr_64bit" identifier != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);" (assignment_expression "iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32)" identifier = (call_expression "gmon_io_read_64(ifp,(ulonglong *)&val32)" identifier (argument_list "(ifp,(ulonglong *)&val32)" ( identifier , (cast_expression "(ulonglong *)&val32" ( (type_descriptor "ulonglong *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&val32" & identifier)) )))) ;) }))) (if_statement "if (iVar2 != 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "bfd_get_sign_extend_vma(core_bfd);" (call_expression "bfd_get_sign_extend_vma(core_bfd)" identifier (argument_list "(core_bfd)" ( identifier ))) ;) (expression_statement "*valp = val32;" (assignment_expression "*valp = val32" (pointer_expression "*valp" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000199f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000199f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}" type_identifier (function_declarator "FUN_000199f0(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_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 local_14 [2];" type_identifier (array_declarator "local_14 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x199f7;" (assignment_expression "uStack_c = 0x199f7" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_000198a0();" (assignment_expression "iVar1 = FUN_000198a0()" identifier = (call_expression "FUN_000198a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00019990(param_1,local_14);\n  }" { (expression_statement "iVar1 = FUN_00019990(param_1,local_14);" (assignment_expression "iVar1 = FUN_00019990(param_1,local_14)" identifier = (call_expression "FUN_00019990(param_1,local_14)" identifier (argument_list "(param_1,local_14)" ( identifier , identifier )))) ;) }) (else_clause "else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" else (compound_statement "{\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" { (if_statement "if (iVar1 != 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00019840();" (assignment_expression "iVar1 = FUN_00019840()" identifier = (call_expression "FUN_00019840()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "bfd_get_sign_extend_vma(DAT_0002d478);" (call_expression "bfd_get_sign_extend_vma(DAT_0002d478)" identifier (argument_list "(DAT_0002d478)" ( identifier ))) ;) (expression_statement "*param_2 = local_14[0];" (assignment_expression "*param_2 = local_14[0]" (pointer_expression "*param_2" * identifier) = (subscript_expression "local_14[0]" identifier [ number_literal ])) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000199f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  undefined4 local_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000199f0(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_000199f0") (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_14 [2];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x199f7;\n  iVar1 = FUN_000198a0();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }\n  if (iVar1 != 0) {\n    return 1;\n  }\n  bfd_get_sign_extend_vma(DAT_0002d478);\n  *param_2 = local_14[0];\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 local_14 [2];" (type_identifier "undefined4") (array_declarator "local_14 [2]" (identifier "local_14") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x199f7;" (assignment_expression "uStack_c = 0x199f7" (identifier "uStack_c") (= "=") (number_literal "0x199f7")) (; ";")) (expression_statement "iVar1 = FUN_000198a0();" (assignment_expression "iVar1 = FUN_000198a0()" (identifier "iVar1") (= "=") (call_expression "FUN_000198a0()" (identifier "FUN_000198a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00019990(param_1,local_14);\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00019990(param_1,local_14);\n  }" ({ "{") (expression_statement "iVar1 = FUN_00019990(param_1,local_14);" (assignment_expression "iVar1 = FUN_00019990(param_1,local_14)" (identifier "iVar1") (= "=") (call_expression "FUN_00019990(param_1,local_14)" (identifier "FUN_00019990") (argument_list "(param_1,local_14)" (( "(") (identifier "param_1") (, ",") (identifier "local_14") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" (else "else") (compound_statement "{\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019840();\n  }" ({ "{") (if_statement "if (iVar1 != 1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00019840();" (assignment_expression "iVar1 = FUN_00019840()" (identifier "iVar1") (= "=") (call_expression "FUN_00019840()" (identifier "FUN_00019840") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "bfd_get_sign_extend_vma(DAT_0002d478);" (call_expression "bfd_get_sign_extend_vma(DAT_0002d478)" (identifier "bfd_get_sign_extend_vma") (argument_list "(DAT_0002d478)" (( "(") (identifier "DAT_0002d478") () ")"))) (; ";")) (expression_statement "*param_2 = local_14[0];" (assignment_expression "*param_2 = local_14[0]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (subscript_expression "local_14[0]" (identifier "local_14") ([ "[") (number_literal "0") (] "]"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *ifp,type_2 *valp)

{
  type_3 var_2;
  int var_7;
  type_4 val32;
  type_5 uStack_c;
  
  uStack_c = 0x199f7;
  var_2 = var_1();
  if (var_2 == var_3) {
    var_7 = var_4(ifp,&val32);
  }
  else {
    if (var_2 != var_5) {
      return 0;
    }
    var_7 = var_6(ifp,(type_6 *)&val32);
  }
  if (var_7 != 0) {
    return 1;
  }
  var_8(core_bfd);
  *valp = val32;
  return 0;
}


(translation_unit (function_definition type: (type_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: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (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 (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  undefined4 local_14 [2];
  undefined4 uStack_c;
  
  uStack_c = 0x199f7;
  iVar1 = FUN_000198a0();
  if (iVar1 == 0) {
    iVar1 = FUN_00019990(param_1,local_14);
  }
  else {
    if (iVar1 != 1) {
      return 0;
    }
    iVar1 = FUN_00019840();
  }
  if (iVar1 != 0) {
    return 1;
  }
  bfd_get_sign_extend_vma(DAT_0002d478);
  *param_2 = local_14[0];
  return 0;
}

