
/* 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 local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x19cc7;
  gVar1 = gmon_get_ptr_size();
  if (gVar1 == ptr_32bit) {
    iVar2 = gmon_io_read_32(ifp,&val32);
    if (iVar2 == 0) {
      iVar2 = bfd_get_sign_extend_vma(core_bfd);
      if (iVar2 + 1U < 2) {
        *(undefined4 *)((int)valp + 4) = 0;
        *(uint *)valp = val32;
        return 0;
      }
      *(uint *)valp = val32;
      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;
      return 0;
    }
  }
  else {
    if (gVar1 != ptr_64bit) {
      return 0;
    }
    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);
    if (iVar2 == 0) {
      bfd_get_sign_extend_vma(core_bfd);
      *(uint *)valp = val32;
      *(undefined4 *)((int)valp + 4) = local_10;
      return 0;
    }
  }
  return 1;
}



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

undefined4 FUN_00019cc0(undefined4 param_1,int *param_2)

{
  int iVar1;
  int local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x19cc7;
  iVar1 = FUN_00019b70();
  if (iVar1 == 0) {
    iVar1 = FUN_00019c60(param_1,&local_14);
    if (iVar1 == 0) {
      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);
      if (iVar1 + 1U < 2) {
        param_2[1] = 0;
        *param_2 = local_14;
        return 0;
      }
      *param_2 = local_14;
      param_2[1] = local_14 >> 0x1f;
      return 0;
    }
  }
  else {
    if (iVar1 != 1) {
      return 0;
    }
    iVar1 = FUN_00019b10();
    if (iVar1 == 0) {
      bfd_get_sign_extend_vma(DAT_0002e4ec);
      *param_2 = local_14;
      param_2[1] = local_10;
      return 0;
    }
  }
  return 1;
}


PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x13339
SUB ESP,0x14
CALL 0x00019b70
TEST EAX,EAX
JZ 0x00019d00
XOR ESI,ESI
CMP EAX,0x1
JNZ 0x00019cf8
MOV EAX,dword ptr [ESP + 0x20]
LEA EDX,[ESP + 0x8]
CALL 0x00019b10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00019d50
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 0x00019c60
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00019cf3
LEA EAX,[EBX + 0x14ec]
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00012380
ADD ESP,0x10
ADD EAX,0x1
CMP EAX,0x1
JA 0x00019d80
MOV EAX,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX],ECX
JMP 0x00019cf8
LEA EAX,[EBX + 0x14ec]
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00012380
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [ECX],EAX
MOV EAX,ESI
MOV dword ptr [ECX + 0x4],EDX
ADD ESP,0x14
POP EBX
POP ESI
RET
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [ECX],EAX
SAR EAX,0x1f
MOV dword ptr [ECX + 0x4],EAX
JMP 0x00019cf8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00019cc0(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00019cc0(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00019cc0(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x19cc7;" (assignment_expression "uStack_c = 0x19cc7" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00019b70();" (assignment_expression "iVar1 = FUN_00019b70()" identifier = (call_expression "FUN_00019b70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = FUN_00019c60(param_1,&local_14);" (assignment_expression "iVar1 = FUN_00019c60(param_1,&local_14)" identifier = (call_expression "FUN_00019c60(param_1,&local_14)" identifier (argument_list "(param_1,&local_14)" ( identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }" { (expression_statement "iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);" (assignment_expression "iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec)" identifier = (call_expression "bfd_get_sign_extend_vma(DAT_0002e4ec)" identifier (argument_list "(DAT_0002e4ec)" ( identifier )))) ;) (if_statement "if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }" if (parenthesized_expression "(iVar1 + 1U < 2)" ( (binary_expression "iVar1 + 1U < 2" (binary_expression "iVar1 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_14 >> 0x1f;" (assignment_expression "param_2[1] = local_14 >> 0x1f" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "local_14 >> 0x1f" identifier >> number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\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_00019b10();" (assignment_expression "iVar1 = FUN_00019b10()" identifier = (call_expression "FUN_00019b10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }" { (expression_statement "bfd_get_sign_extend_vma(DAT_0002e4ec);" (call_expression "bfd_get_sign_extend_vma(DAT_0002e4ec)" identifier (argument_list "(DAT_0002e4ec)" ( identifier ))) ;) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_10;" (assignment_expression "param_2[1] = local_10" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return 1;" 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 local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  gVar1 = gmon_get_ptr_size();\n  if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n    if (iVar2 == 0) {\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }\n  }\n  return 1;\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 local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  gVar1 = gmon_get_ptr_size();\n  if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n    if (iVar2 == 0) {\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }\n  }\n  return 1;\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 local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  gVar1 = gmon_get_ptr_size();\n  if (gVar1 == ptr_32bit) {\n    iVar2 = gmon_io_read_32(ifp,&val32);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n    if (iVar2 == 0) {\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" { (declaration "gmon_ptr_size gVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint val32;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x19cc7;" (assignment_expression "uStack_c = 0x19cc7" 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    if (iVar2 == 0) {\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n    if (iVar2 == 0) {\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }\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    if (iVar2 == 0) {\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }\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) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = bfd_get_sign_extend_vma(core_bfd);\n      if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }\n      *(uint *)valp = val32;\n      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;\n      return 0;\n    }" { (expression_statement "iVar2 = bfd_get_sign_extend_vma(core_bfd);" (assignment_expression "iVar2 = bfd_get_sign_extend_vma(core_bfd)" identifier = (call_expression "bfd_get_sign_extend_vma(core_bfd)" identifier (argument_list "(core_bfd)" ( identifier )))) ;) (if_statement "if (iVar2 + 1U < 2) {\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }" if (parenthesized_expression "(iVar2 + 1U < 2)" ( (binary_expression "iVar2 + 1U < 2" (binary_expression "iVar2 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n        *(undefined4 *)((int)valp + 4) = 0;\n        *(uint *)valp = val32;\n        return 0;\n      }" { (expression_statement "*(undefined4 *)((int)valp + 4) = 0;" (assignment_expression "*(undefined4 *)((int)valp + 4) = 0" (pointer_expression "*(undefined4 *)((int)valp + 4)" * (cast_expression "(undefined4 *)((int)valp + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)valp + 4)" ( (binary_expression "(int)valp + 4" (cast_expression "(int)valp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)valp = val32;" (assignment_expression "*(uint *)valp = val32" (pointer_expression "*(uint *)valp" * (cast_expression "(uint *)valp" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(uint *)valp = val32;" (assignment_expression "*(uint *)valp = val32" (pointer_expression "*(uint *)valp" * (cast_expression "(uint *)valp" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)((int)valp + 4) = (int)val32 >> 0x1f;" (assignment_expression "*(int *)((int)valp + 4) = (int)val32 >> 0x1f" (pointer_expression "*(int *)((int)valp + 4)" * (cast_expression "(int *)((int)valp + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)valp + 4)" ( (binary_expression "(int)valp + 4" (cast_expression "(int)valp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(int)val32 >> 0x1f" (cast_expression "(int)val32" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n    if (iVar2 == 0) {\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (gVar1 != ptr_64bit) {\n      return 0;\n    }\n    iVar2 = gmon_io_read_64(ifp,(ulonglong *)&val32);\n    if (iVar2 == 0) {\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }\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      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      bfd_get_sign_extend_vma(core_bfd);\n      *(uint *)valp = val32;\n      *(undefined4 *)((int)valp + 4) = local_10;\n      return 0;\n    }" { (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 "*(uint *)valp = val32;" (assignment_expression "*(uint *)valp = val32" (pointer_expression "*(uint *)valp" * (cast_expression "(uint *)valp" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)((int)valp + 4) = local_10;" (assignment_expression "*(undefined4 *)((int)valp + 4) = local_10" (pointer_expression "*(undefined4 *)((int)valp + 4)" * (cast_expression "(undefined4 *)((int)valp + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)valp + 4)" ( (binary_expression "(int)valp + 4" (cast_expression "(int)valp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00019cc0(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00019cc0(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00019cc0(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x19cc7;" (assignment_expression "uStack_c = 0x19cc7" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00019b70();" (assignment_expression "iVar1 = FUN_00019b70()" identifier = (call_expression "FUN_00019b70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = FUN_00019c60(param_1,&local_14);" (assignment_expression "iVar1 = FUN_00019c60(param_1,&local_14)" identifier = (call_expression "FUN_00019c60(param_1,&local_14)" identifier (argument_list "(param_1,&local_14)" ( identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }" { (expression_statement "iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);" (assignment_expression "iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec)" identifier = (call_expression "bfd_get_sign_extend_vma(DAT_0002e4ec)" identifier (argument_list "(DAT_0002e4ec)" ( identifier )))) ;) (if_statement "if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }" if (parenthesized_expression "(iVar1 + 1U < 2)" ( (binary_expression "iVar1 + 1U < 2" (binary_expression "iVar1 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_14 >> 0x1f;" (assignment_expression "param_2[1] = local_14 >> 0x1f" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "local_14 >> 0x1f" identifier >> number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\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_00019b10();" (assignment_expression "iVar1 = FUN_00019b10()" identifier = (call_expression "FUN_00019b10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }" { (expression_statement "bfd_get_sign_extend_vma(DAT_0002e4ec);" (call_expression "bfd_get_sign_extend_vma(DAT_0002e4ec)" identifier (argument_list "(DAT_0002e4ec)" ( identifier ))) ;) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_10;" (assignment_expression "param_2[1] = local_10" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return 1;" 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 IDENT ;) (declaration TYPE IDENT ;) (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 , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT >> LIT)) ;) (return_statement return LIT ;) })) }) (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 { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00019cc0(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00019cc0(undefined4 param_1,int *param_2)" (identifier "FUN_00019cc0") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x19cc7;\n  iVar1 = FUN_00019b70();\n  if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x19cc7;" (assignment_expression "uStack_c = 0x19cc7" (identifier "uStack_c") (= "=") (number_literal "0x19cc7")) (; ";")) (expression_statement "iVar1 = FUN_00019b70();" (assignment_expression "iVar1 = FUN_00019b70()" (identifier "iVar1") (= "=") (call_expression "FUN_00019b70()" (identifier "FUN_00019b70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00019c60(param_1,&local_14);\n    if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00019c60(param_1,&local_14);" (assignment_expression "iVar1 = FUN_00019c60(param_1,&local_14)" (identifier "iVar1") (= "=") (call_expression "FUN_00019c60(param_1,&local_14)" (identifier "FUN_00019c60") (argument_list "(param_1,&local_14)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);\n      if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }\n      *param_2 = local_14;\n      param_2[1] = local_14 >> 0x1f;\n      return 0;\n    }" ({ "{") (expression_statement "iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);" (assignment_expression "iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec)" (identifier "iVar1") (= "=") (call_expression "bfd_get_sign_extend_vma(DAT_0002e4ec)" (identifier "bfd_get_sign_extend_vma") (argument_list "(DAT_0002e4ec)" (( "(") (identifier "DAT_0002e4ec") () ")")))) (; ";")) (if_statement "if (iVar1 + 1U < 2) {\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar1 + 1U < 2)" (( "(") (binary_expression "iVar1 + 1U < 2" (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        param_2[1] = 0;\n        *param_2 = local_14;\n        return 0;\n      }" ({ "{") (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_14")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_14")) (; ";")) (expression_statement "param_2[1] = local_14 >> 0x1f;" (assignment_expression "param_2[1] = local_14 >> 0x1f" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "local_14 >> 0x1f" (identifier "local_14") (>> ">>") (number_literal "0x1f"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = FUN_00019b10();\n    if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }\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_00019b10();" (assignment_expression "iVar1 = FUN_00019b10()" (identifier "iVar1") (= "=") (call_expression "FUN_00019b10()" (identifier "FUN_00019b10") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      bfd_get_sign_extend_vma(DAT_0002e4ec);\n      *param_2 = local_14;\n      param_2[1] = local_10;\n      return 0;\n    }" ({ "{") (expression_statement "bfd_get_sign_extend_vma(DAT_0002e4ec);" (call_expression "bfd_get_sign_extend_vma(DAT_0002e4ec)" (identifier "bfd_get_sign_extend_vma") (argument_list "(DAT_0002e4ec)" (( "(") (identifier "DAT_0002e4ec") () ")"))) (; ";")) (expression_statement "*param_2 = local_14;" (assignment_expression "*param_2 = local_14" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_14")) (; ";")) (expression_statement "param_2[1] = local_10;" (assignment_expression "param_2[1] = local_10" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_10")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* 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_5;
  type_4 val32;
  type_5 local_10;
  type_5 uStack_c;
  
  uStack_c = 0x19cc7;
  var_2 = var_1();
  if (var_2 == var_3) {
    var_5 = var_4(ifp,&val32);
    if (var_5 == 0) {
      var_5 = var_6(core_bfd);
      if (var_5 + 1U < 2) {
        *(type_5 *)((int)valp + 4) = 0;
        *(type_4 *)valp = val32;
        return 0;
      }
      *(type_4 *)valp = val32;
      *(int *)((int)valp + 4) = (int)val32 >> 0x1f;
      return 0;
    }
  }
  else {
    if (var_2 != var_7) {
      return 0;
    }
    var_5 = var_8(ifp,(type_6 *)&val32);
    if (var_5 == 0) {
      var_6(core_bfd);
      *(type_4 *)valp = val32;
      *(type_5 *)((int)valp + 4) = local_10;
      return 0;
    }
  }
  return 1;
}


(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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 (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) (pointer_expression argument: (identifier)))))) (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (number_literal))))) 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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 (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,int *param_2)

{
  int iVar1;
  int local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x19cc7;
  iVar1 = FUN_00019b70();
  if (iVar1 == 0) {
    iVar1 = FUN_00019c60(param_1,&local_14);
    if (iVar1 == 0) {
      iVar1 = bfd_get_sign_extend_vma(DAT_0002e4ec);
      if (iVar1 + 1U < 2) {
        param_2[1] = 0;
        *param_2 = local_14;
        return 0;
      }
      *param_2 = local_14;
      param_2[1] = local_14 >> 0x1f;
      return 0;
    }
  }
  else {
    if (iVar1 != 1) {
      return 0;
    }
    iVar1 = FUN_00019b10();
    if (iVar1 == 0) {
      bfd_get_sign_extend_vma(DAT_0002e4ec);
      *param_2 = local_14;
      param_2[1] = local_10;
      return 0;
    }
  }
  return 1;
}

