
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write_contributions(Dwp_output_file * this, Section * sect) */

void __thiscall gold::Dwp_output_file::write_contributions(Dwp_output_file *this,Section *sect)

{
  char *pcVar1;
  char *pcVar2;
  size_t sVar3;
  char *format;
  pointer pCVar4;
  uint uVar5;
  
  pCVar4 = (sect->contributions).
           super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>
           ._M_impl._M_start;
  if ((sect->contributions).
      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>
      ._M_impl._M_finish != pCVar4) {
    uVar5 = 0;
    do {
      pCVar4 = pCVar4 + uVar5;
      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);
      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);
      if (sVar3 < pCVar4->size) {
        pcVar1 = sect->name;
        pcVar2 = this->name_;
        format = (char *)gettext("%s: error writing section \'%s\'");
                    /* WARNING: Subroutine does not return */
        gold_fatal(format,pcVar2,pcVar1);
      }
      if (pCVar4->contents != (uchar *)0x0) {
        operator_delete__(pCVar4->contents);
      }
      pCVar4 = (sect->contributions).
               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>
               ._M_impl._M_start;
      uVar5 = uVar5 + 1;
    } while (uVar5 < (uint)(((int)(sect->contributions).
                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>
                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));
  }
  return;
}



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

void FUN_00036200(undefined4 *param_1,undefined4 *param_2)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  size_t sVar4;
  undefined4 uVar5;
  int iVar6;
  uint uVar7;
  
  iVar6 = param_2[5];
  if (param_2[6] != iVar6) {
    uVar7 = 0;
    do {
      piVar1 = (int *)(iVar6 + uVar7 * 0xc);
      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);
      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);
      if (sVar4 < (uint)piVar1[1]) {
        uVar2 = *param_2;
        uVar3 = *param_1;
        uVar5 = gettext("%s: error writing section \'%s\'");
                    /* WARNING: Subroutine does not return */
        FUN_00065450(uVar5,uVar3,uVar2);
      }
      if (piVar1[2] != 0) {
        FUN_001e6d50(piVar1[2]);
      }
      iVar6 = param_2[5];
      uVar7 = uVar7 + 1;
    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x358df7
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [EBP + 0x14]
CMP dword ptr [EBP + 0x18],EDX
JZ 0x00036287
XOR ESI,ESI
LEA EAX,[ESI + ESI*0x2]
SUB ESP,0x4
LEA EDI,[EDX + EAX*0x4]
PUSH 0x0
MOV EAX,dword ptr [EDI]
ADD EAX,dword ptr [EBP + 0x4]
PUSH EAX
MOV EAX,dword ptr [ESP + 0x2c]
PUSH dword ptr [EAX + 0x18]
CALL 0x000294f0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX + 0x18]
PUSH dword ptr [EDI + 0x4]
PUSH 0x1
PUSH dword ptr [EDI + 0x8]
CALL 0x00029730
ADD ESP,0x10
CMP dword ptr [EDI + 0x4],EAX
JA 0x0003628f
MOV EAX,dword ptr [EDI + 0x8]
TEST EAX,EAX
JZ 0x0003626f
SUB ESP,0xc
PUSH EAX
CALL 0x001e6d50
ADD ESP,0x10
MOV EDX,dword ptr [EBP + 0x14]
MOV EAX,dword ptr [EBP + 0x18]
ADD ESI,0x1
SUB EAX,EDX
SAR EAX,0x2
IMUL EAX,EAX,-0x55555555
CMP ESI,EAX
JC 0x00036220
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x20]
SUB ESP,0xc
MOV EBP,dword ptr [EBP]
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xffef122c]
PUSH EAX
CALL 0x000293b0
ADD ESP,0xc
PUSH EBP
PUSH ESI
PUSH EAX
CALL 0x00065450
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00036200(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00036200(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00036200(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "iVar6 = param_2[5];" (assignment_expression "iVar6 = param_2[5]" identifier = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (if_statement "if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }" if (parenthesized_expression "(param_2[6] != iVar6)" ( (binary_expression "param_2[6] != iVar6" (subscript_expression "param_2[6]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));" do (compound_statement "{\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    }" { (expression_statement "piVar1 = (int *)(iVar6 + uVar7 * 0xc);" (assignment_expression "piVar1 = (int *)(iVar6 + uVar7 * 0xc)" identifier = (cast_expression "(int *)(iVar6 + uVar7 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + uVar7 * 0xc)" ( (binary_expression "iVar6 + uVar7 * 0xc" identifier + (binary_expression "uVar7 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);" (call_expression "fseek((FILE *)param_1[6],*piVar1 + param_2[1],0)" identifier (argument_list "((FILE *)param_1[6],*piVar1 + param_2[1],0)" ( (cast_expression "(FILE *)param_1[6]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) , (binary_expression "*piVar1 + param_2[1]" (pointer_expression "*piVar1" * identifier) + (subscript_expression "param_2[1]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);" (assignment_expression "sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" identifier = (call_expression "fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" identifier (argument_list "((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" ( (cast_expression "(void *)piVar1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) , number_literal , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (cast_expression "(FILE *)param_1[6]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }" if (parenthesized_expression "(sVar4 < (uint)piVar1[1])" ( (binary_expression "sVar4 < (uint)piVar1[1]" identifier < (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        FUN_00065450(uVar5,uVar3,uVar2);\n      }" { (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = gettext("%s: error writing section \'%s\'");" (assignment_expression "uVar5 = gettext("%s: error writing section \'%s\'")" identifier = (call_expression "gettext("%s: error writing section \'%s\'")" identifier (argument_list "("%s: error writing section \'%s\'")" ( (string_literal ""%s: error writing section \'%s\'"" " string_content escape_sequence string_content escape_sequence ") )))) ;) comment (expression_statement "FUN_00065450(uVar5,uVar3,uVar2);" (call_expression "FUN_00065450(uVar5,uVar3,uVar2)" identifier (argument_list "(uVar5,uVar3,uVar2)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }" if (parenthesized_expression "(piVar1[2] != 0)" ( (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        FUN_001e6d50(piVar1[2]);\n      }" { (expression_statement "FUN_001e6d50(piVar1[2]);" (call_expression "FUN_001e6d50(piVar1[2])" identifier (argument_list "(piVar1[2])" ( (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (expression_statement "iVar6 = param_2[5];" (assignment_expression "iVar6 = param_2[5]" identifier = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555))" ( (binary_expression "uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555)" identifier < (call_expression "(uint)((param_2[6] - iVar6 >> 2) * -0x55555555)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_2[6] - iVar6 >> 2) * -0x55555555)" ( (binary_expression "(param_2[6] - iVar6 >> 2) * -0x55555555" (parenthesized_expression "(param_2[6] - iVar6 >> 2)" ( (binary_expression "param_2[6] - iVar6 >> 2" (binary_expression "param_2[6] - iVar6" (subscript_expression "param_2[6]" identifier [ number_literal ]) - identifier) >> number_literal) )) * number_literal) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void write_contributions(Dwp_output_file * this, Section * sect) */\n\nvoid __thiscall gold::Dwp_output_file::write_contributions(Dwp_output_file *this,Section *sect)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *format;\n  pointer pCVar4;\n  uint uVar5;\n  \n  pCVar4 = (sect->contributions).\n           super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n           ._M_impl._M_start;\n  if ((sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n      ._M_impl._M_finish != pCVar4) {\n    uVar5 = 0;\n    do {\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Dwp_output_file::write_contributions(Dwp_output_file *this,Section *sect)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *format;\n  pointer pCVar4;\n  uint uVar5;\n  \n  pCVar4 = (sect->contributions).\n           super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n           ._M_impl._M_start;\n  if ((sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n      ._M_impl._M_finish != pCVar4) {\n    uVar5 = 0;\n    do {\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwp_output_file::" identifier : : identifier : :) (function_declarator "write_contributions(Dwp_output_file *this,Section *sect)" identifier (parameter_list "(Dwp_output_file *this,Section *sect)" ( (parameter_declaration "Dwp_output_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Section *sect" type_identifier (pointer_declarator "*sect" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *format;\n  pointer pCVar4;\n  uint uVar5;\n  \n  pCVar4 = (sect->contributions).\n           super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n           ._M_impl._M_start;\n  if ((sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n      ._M_impl._M_finish != pCVar4) {\n    uVar5 = 0;\n    do {\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "pointer pCVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (ERROR "pCVar4 = (sect->contributions).\n           super__Vector_base<gold::" (assignment_expression "pCVar4 = (sect->contributions).\n           super__Vector_base<gold" identifier = (binary_expression "(sect->contributions).\n           super__Vector_base<gold" (field_expression "(sect->contributions).\n           super__Vector_base" (parenthesized_expression "(sect->contributions)" ( (field_expression "sect->contributions" identifier -> field_identifier) )) . field_identifier) < identifier)) : :) (labeled_statement "Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n           ._M_impl._M_start;" statement_identifier (ERROR "::Contribution,_std::allocator<gold:" : : (comma_expression "Contribution,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Dwp_output_file::Contribution>_>\n           ._M_impl._M_start;" statement_identifier : (ERROR ":" :) (expression_statement "Contribution>_>\n           ._M_impl._M_start;" (field_expression "Contribution>_>\n           ._M_impl._M_start" (field_expression "Contribution>_>\n           ._M_impl" (binary_expression "Contribution>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;))) (if_statement "if ((sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n      ._M_impl._M_finish != pCVar4) {\n    uVar5 = 0;\n    do {\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));\n  }" if (parenthesized_expression "((sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n      ._M_impl._M_finish != pCVar4)" ( (ERROR "(sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::" (comma_expression "(sect->contributions).\n      super__Vector_base<gold::Dwp_output_file::Contribution,_std" (binary_expression "(sect->contributions).\n      super__Vector_base<gold" (field_expression "(sect->contributions).\n      super__Vector_base" (parenthesized_expression "(sect->contributions)" ( (field_expression "sect->contributions" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Dwp_output_file::Contribution" : : identifier : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : :) (binary_expression "Contribution>_>\n      ._M_impl._M_finish != pCVar4" (field_expression "Contribution>_>\n      ._M_impl._M_finish" (field_expression "Contribution>_>\n      ._M_impl" (binary_expression "Contribution>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) (compound_statement "{\n    uVar5 = 0;\n    do {\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555));" do (compound_statement "{\n      pCVar4 = pCVar4 + uVar5;\n      fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);\n      sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);\n      if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }\n      if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }\n      pCVar4 = (sect->contributions).\n               super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;\n      uVar5 = uVar5 + 1;\n    }" { (expression_statement "pCVar4 = pCVar4 + uVar5;" (assignment_expression "pCVar4 = pCVar4 + uVar5" identifier = (binary_expression "pCVar4 + uVar5" identifier + identifier)) ;) (expression_statement "fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0);" (call_expression "fseek((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0)" identifier (argument_list "((FILE *)this->fd_,pCVar4->output_offset + (int)sect->offset,0)" ( (cast_expression "(FILE *)this->fd_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->fd_" identifier -> field_identifier)) , (binary_expression "pCVar4->output_offset + (int)sect->offset" (field_expression "pCVar4->output_offset" identifier -> field_identifier) + (cast_expression "(int)sect->offset" ( (type_descriptor "int" primitive_type) ) (field_expression "sect->offset" identifier -> field_identifier))) , number_literal ))) ;) (expression_statement "sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_);" (assignment_expression "sVar3 = fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_)" identifier = (call_expression "fwrite(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_)" identifier (argument_list "(pCVar4->contents,1,pCVar4->size,(FILE *)this->fd_)" ( (field_expression "pCVar4->contents" identifier -> field_identifier) , number_literal , (field_expression "pCVar4->size" identifier -> field_identifier) , (cast_expression "(FILE *)this->fd_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->fd_" identifier -> field_identifier)) )))) ;) (if_statement "if (sVar3 < pCVar4->size) {\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }" if (parenthesized_expression "(sVar3 < pCVar4->size)" ( (binary_expression "sVar3 < pCVar4->size" identifier < (field_expression "pCVar4->size" identifier -> field_identifier)) )) (compound_statement "{\n        pcVar1 = sect->name;\n        pcVar2 = this->name_;\n        format = (char *)gettext("%s: error writing section \'%s\'");\n                    /* WARNING: Subroutine does not return */\n        gold_fatal(format,pcVar2,pcVar1);\n      }" { (expression_statement "pcVar1 = sect->name;" (assignment_expression "pcVar1 = sect->name" identifier = (field_expression "sect->name" identifier -> field_identifier)) ;) (expression_statement "pcVar2 = this->name_;" (assignment_expression "pcVar2 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("%s: error writing section \'%s\'");" (assignment_expression "format = (char *)gettext("%s: error writing section \'%s\'")" identifier = (cast_expression "(char *)gettext("%s: error writing section \'%s\'")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: error writing section \'%s\'")" identifier (argument_list "("%s: error writing section \'%s\'")" ( (string_literal ""%s: error writing section \'%s\'"" " string_content escape_sequence string_content escape_sequence ") ))))) ;) comment (expression_statement "gold_fatal(format,pcVar2,pcVar1);" (call_expression "gold_fatal(format,pcVar2,pcVar1)" identifier (argument_list "(format,pcVar2,pcVar1)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (pCVar4->contents != (uchar *)0x0) {\n        operator_delete__(pCVar4->contents);\n      }" if (parenthesized_expression "(pCVar4->contents != (uchar *)0x0)" ( (binary_expression "pCVar4->contents != (uchar *)0x0" (field_expression "pCVar4->contents" identifier -> field_identifier) != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        operator_delete__(pCVar4->contents);\n      }" { (expression_statement "operator_delete__(pCVar4->contents);" (call_expression "operator_delete__(pCVar4->contents)" identifier (argument_list "(pCVar4->contents)" ( (field_expression "pCVar4->contents" identifier -> field_identifier) ))) ;) })) (ERROR "pCVar4 = (sect->contributions).\n               super__Vector_base<gold::" (assignment_expression "pCVar4 = (sect->contributions).\n               super__Vector_base<gold" identifier = (binary_expression "(sect->contributions).\n               super__Vector_base<gold" (field_expression "(sect->contributions).\n               super__Vector_base" (parenthesized_expression "(sect->contributions)" ( (field_expression "sect->contributions" identifier -> field_identifier) )) . field_identifier) < identifier)) : :) (labeled_statement "Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;" statement_identifier (ERROR "::Contribution,_std::allocator<gold:" : : (comma_expression "Contribution,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Dwp_output_file::Contribution>_>\n               ._M_impl._M_start;" statement_identifier : (ERROR ":" :) (expression_statement "Contribution>_>\n               ._M_impl._M_start;" (field_expression "Contribution>_>\n               ._M_impl._M_start" (field_expression "Contribution>_>\n               ._M_impl" (binary_expression "Contribution>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555))" ( (binary_expression "uVar5 < (uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555)" identifier < (call_expression "(uint)(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555)" ( (binary_expression "((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2) * -0x55555555" (parenthesized_expression "((int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2)" ( (ERROR "(int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std::allocator<gold::Dwp_output_file::" (comma_expression "(int)(sect->contributions).\n                                  super__Vector_base<gold::Dwp_output_file::Contribution,_std" (binary_expression "(int)(sect->contributions).\n                                  super__Vector_base<gold" (cast_expression "(int)(sect->contributions).\n                                  super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(sect->contributions).\n                                  super__Vector_base" (parenthesized_expression "(sect->contributions)" ( (field_expression "sect->contributions" identifier -> field_identifier) )) . field_identifier)) < identifier) (ERROR "::Dwp_output_file::Contribution" : : identifier : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : :) (binary_expression "Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4 >> 2" (binary_expression "Contribution>_>\n                                  ._M_impl._M_finish - (int)pCVar4" (field_expression "Contribution>_>\n                                  ._M_impl._M_finish" (field_expression "Contribution>_>\n                                  ._M_impl" (binary_expression "Contribution>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)pCVar4" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00036200(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00036200(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00036200(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "iVar6 = param_2[5];" (assignment_expression "iVar6 = param_2[5]" identifier = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (if_statement "if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }" if (parenthesized_expression "(param_2[6] != iVar6)" ( (binary_expression "param_2[6] != iVar6" (subscript_expression "param_2[6]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));" do (compound_statement "{\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    }" { (expression_statement "piVar1 = (int *)(iVar6 + uVar7 * 0xc);" (assignment_expression "piVar1 = (int *)(iVar6 + uVar7 * 0xc)" identifier = (cast_expression "(int *)(iVar6 + uVar7 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + uVar7 * 0xc)" ( (binary_expression "iVar6 + uVar7 * 0xc" identifier + (binary_expression "uVar7 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);" (call_expression "fseek((FILE *)param_1[6],*piVar1 + param_2[1],0)" identifier (argument_list "((FILE *)param_1[6],*piVar1 + param_2[1],0)" ( (cast_expression "(FILE *)param_1[6]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) , (binary_expression "*piVar1 + param_2[1]" (pointer_expression "*piVar1" * identifier) + (subscript_expression "param_2[1]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);" (assignment_expression "sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" identifier = (call_expression "fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" identifier (argument_list "((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" ( (cast_expression "(void *)piVar1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) , number_literal , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (cast_expression "(FILE *)param_1[6]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }" if (parenthesized_expression "(sVar4 < (uint)piVar1[1])" ( (binary_expression "sVar4 < (uint)piVar1[1]" identifier < (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }" { (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = gettext("%s: error writing section \'%s\'");" (assignment_expression "uVar5 = gettext("%s: error writing section \'%s\'")" identifier = (call_expression "gettext("%s: error writing section \'%s\'")" identifier (argument_list "("%s: error writing section \'%s\'")" ( (string_literal ""%s: error writing section \'%s\'"" " string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement "FUN_00065450(uVar5,uVar3,uVar2);" (call_expression "FUN_00065450(uVar5,uVar3,uVar2)" identifier (argument_list "(uVar5,uVar3,uVar2)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }" if (parenthesized_expression "(piVar1[2] != 0)" ( (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        FUN_001e6d50(piVar1[2]);\n      }" { (expression_statement "FUN_001e6d50(piVar1[2]);" (call_expression "FUN_001e6d50(piVar1[2])" identifier (argument_list "(piVar1[2])" ( (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (expression_statement "iVar6 = param_2[5];" (assignment_expression "iVar6 = param_2[5]" identifier = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555))" ( (binary_expression "uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555)" identifier < (call_expression "(uint)((param_2[6] - iVar6 >> 2) * -0x55555555)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_2[6] - iVar6 >> 2) * -0x55555555)" ( (binary_expression "(param_2[6] - iVar6 >> 2) * -0x55555555" (parenthesized_expression "(param_2[6] - iVar6 >> 2)" ( (binary_expression "param_2[6] - iVar6 >> 2" (binary_expression "param_2[6] - iVar6" (subscript_expression "param_2[6]" identifier [ number_literal ]) - identifier) >> number_literal) )) * number_literal) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , LIT , (subscript_expression IDENT [ LIT ]) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) >> LIT) )) * LIT) )))) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00036200(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00036200(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_00036200") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = param_2[5];\n  if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "iVar6 = param_2[5];" (assignment_expression "iVar6 = param_2[5]" (identifier "iVar6") (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (if_statement "if (param_2[6] != iVar6) {\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }" (if "if") (parenthesized_expression "(param_2[6] != iVar6)" (( "(") (binary_expression "param_2[6] != iVar6" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (!= "!=") (identifier "iVar6")) () ")")) (compound_statement "{\n    uVar7 = 0;\n    do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));" (do "do") (compound_statement "{\n      piVar1 = (int *)(iVar6 + uVar7 * 0xc);\n      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);\n      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);\n      if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }\n      if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }\n      iVar6 = param_2[5];\n      uVar7 = uVar7 + 1;\n    }" ({ "{") (expression_statement "piVar1 = (int *)(iVar6 + uVar7 * 0xc);" (assignment_expression "piVar1 = (int *)(iVar6 + uVar7 * 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar6 + uVar7 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + uVar7 * 0xc)" (( "(") (binary_expression "iVar6 + uVar7 * 0xc" (identifier "iVar6") (+ "+") (binary_expression "uVar7 * 0xc" (identifier "uVar7") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);" (call_expression "fseek((FILE *)param_1[6],*piVar1 + param_2[1],0)" (identifier "fseek") (argument_list "((FILE *)param_1[6],*piVar1 + param_2[1],0)" (( "(") (cast_expression "(FILE *)param_1[6]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (, ",") (binary_expression "*piVar1 + param_2[1]" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);" (assignment_expression "sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" (identifier "sVar4") (= "=") (call_expression "fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" (identifier "fwrite") (argument_list "((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6])" (( "(") (cast_expression "(void *)piVar1[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (, ",") (number_literal "1") (, ",") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (cast_expression "(FILE *)param_1[6]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")")))) (; ";")) (if_statement "if (sVar4 < (uint)piVar1[1]) {\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }" (if "if") (parenthesized_expression "(sVar4 < (uint)piVar1[1])" (( "(") (binary_expression "sVar4 < (uint)piVar1[1]" (identifier "sVar4") (< "<") (cast_expression "(uint)piVar1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n        uVar2 = *param_2;\n        uVar3 = *param_1;\n        uVar5 = gettext("%s: error writing section \'%s\'");\n                    \n        FUN_00065450(uVar5,uVar3,uVar2);\n      }" ({ "{") (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar5 = gettext("%s: error writing section \'%s\'");" (assignment_expression "uVar5 = gettext("%s: error writing section \'%s\'")" (identifier "uVar5") (= "=") (call_expression "gettext("%s: error writing section \'%s\'")" (identifier "gettext") (argument_list "("%s: error writing section \'%s\'")" (( "(") (string_literal ""%s: error writing section \'%s\'"" (" """) (string_content "%s: error writing section ") (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00065450(uVar5,uVar3,uVar2);" (call_expression "FUN_00065450(uVar5,uVar3,uVar2)" (identifier "FUN_00065450") (argument_list "(uVar5,uVar3,uVar2)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar1[2] != 0) {\n        FUN_001e6d50(piVar1[2]);\n      }" (if "if") (parenthesized_expression "(piVar1[2] != 0)" (( "(") (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_001e6d50(piVar1[2]);\n      }" ({ "{") (expression_statement "FUN_001e6d50(piVar1[2]);" (call_expression "FUN_001e6d50(piVar1[2])" (identifier "FUN_001e6d50") (argument_list "(piVar1[2])" (( "(") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = param_2[5];" (assignment_expression "iVar6 = param_2[5]" (identifier "iVar6") (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555))" (( "(") (binary_expression "uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555)" (identifier "uVar7") (< "<") (call_expression "(uint)((param_2[6] - iVar6 >> 2) * -0x55555555)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_2[6] - iVar6 >> 2) * -0x55555555)" (( "(") (binary_expression "(param_2[6] - iVar6 >> 2) * -0x55555555" (parenthesized_expression "(param_2[6] - iVar6 >> 2)" (( "(") (binary_expression "param_2[6] - iVar6 >> 2" (binary_expression "param_2[6] - iVar6" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (- "-") (identifier "iVar6")) (>> ">>") (number_literal "2")) () ")")) (* "*") (number_literal "-0x55555555")) () ")")))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write_contributions(Dwp_output_file * this, Section * sect) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *sect)

{
  char *pcVar1;
  char *pcVar2;
  size_t var_7;
  char *format;
  type_3 var_3;
  type_4 var_4;
  
  var_3 = (sect->contributions).
           super__Vector_base<gold::Dwp_output_file::var_1,_std::allocator<gold::Dwp_output_file::var_1>var_2>
           ._M_impl._M_start;
  if ((sect->contributions).
      super__Vector_base<gold::type_1::var_1,_std::allocator<gold::type_1::var_1>var_2>
      ._M_impl._M_finish != var_3) {
    var_4 = 0;
    do {
      var_3 = var_3 + var_4;
      var_5((type_5 *)this->fd_,var_3->output_offset + (int)sect->offset,0);
      var_7 = var_6(var_3->contents,1,var_3->size,(type_5 *)this->fd_);
      if (var_7 < var_3->size) {
        pcVar1 = sect->name;
        pcVar2 = this->name_;
        format = (char *)var_8("%s: error writing section \'%s\'");
                    /* WARNING: Subroutine does not return */
        var_9(format,pcVar2,pcVar1);
      }
      if (var_3->contents != (type_6 *)0x0) {
        var_10(var_3->contents);
      }
      var_3 = (sect->contributions).
               super__Vector_base<gold::Dwp_output_file::var_1,_std::allocator<gold::Dwp_output_file::var_1>var_2>
               ._M_impl._M_start;
      var_4 = var_4 + 1;
    } while (var_4 < (type_4)(((int)(sect->contributions).
                                  super__Vector_base<gold::type_1::var_1,_std::allocator<gold::type_1::var_1>var_2>
                                  ._M_impl._M_finish - (int)var_3 >> 2) * -0x55555555));
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (number_literal) (subscript_expression argument: (identifier) index: (number_literal)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (number_literal))) right: (number_literal))))))))) (return_statement))))

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

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  size_t sVar4;
  undefined4 uVar5;
  int iVar6;
  uint uVar7;
  
  iVar6 = param_2[5];
  if (param_2[6] != iVar6) {
    uVar7 = 0;
    do {
      piVar1 = (int *)(iVar6 + uVar7 * 0xc);
      fseek((FILE *)param_1[6],*piVar1 + param_2[1],0);
      sVar4 = fwrite((void *)piVar1[2],1,piVar1[1],(FILE *)param_1[6]);
      if (sVar4 < (uint)piVar1[1]) {
        uVar2 = *param_2;
        uVar3 = *param_1;
        uVar5 = gettext("%s: error writing section \'%s\'");
                    /* WARNING: Subroutine does not return */
        FUN_00065450(uVar5,uVar3,uVar2);
      }
      if (piVar1[2] != 0) {
        FUN_001e6d50(piVar1[2]);
      }
      iVar6 = param_2[5];
      uVar7 = uVar7 + 1;
    } while (uVar7 < (uint)((param_2[6] - iVar6 >> 2) * -0x55555555));
  }
  return;
}

