
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DW_SECT": Some values do not have unique names */
/* DWARF original prototype: void visit_type_unit(Unit_reader * this, off_t param_1, off_t
   tu_length, off_t param_3, uint64_t signature, Dwarf_die * param_5) */

void __thiscall
gold::Unit_reader::visit_type_unit
          (Unit_reader *this,off_t param_1,off_t tu_length,off_t param_3,uint64_t signature,
          Dwarf_die *param_5)

{
  Dwp_output_file *pDVar1;
  section_size_type sVar2;
  uchar *puVar3;
  bool bVar4;
  Unit_set *tu_set;
  Section_bounds *pSVar5;
  Section_bounds *pSVar6;
  int iVar7;
  uchar *contents;
  section_offset_type sVar8;
  uchar *__src;
  
  if (tu_length != 0) {
    pDVar1 = this->output_file_;
    pDVar1->last_type_sig_ = signature;
    bVar4 = Dwp_output_file::Dwp_index::find_or_add
                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);
    if (!bVar4) {
      tu_set = (Unit_set *)operator_new(0x50);
      pSVar5 = tu_set->sections;
      do {
        pSVar5->offset = 0;
        pSVar6 = pSVar5 + 1;
        pSVar5->size = 0;
        pSVar5 = pSVar6;
      } while ((Unit_set *)pSVar6 != tu_set + 1);
      pSVar5 = this->sections_;
      iVar7 = 3;
      tu_set->signature = signature;
      do {
        sVar2 = pSVar5[iVar7].size;
        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;
        tu_set->sections[iVar7].size = sVar2;
        iVar7 = iVar7 + 1;
      } while (iVar7 != 9);
      contents = (uchar *)operator_new__((uint)tu_length);
      puVar3 = (this->super_Dwarf_info_reader).buffer_;
      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;
      __src = puVar3 + iVar7;
      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {
        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);
        __src = (uchar *)0x0;
      }
      memcpy(contents,__src,(uint)tu_length);
      sVar8 = Dwp_output_file::add_contribution
                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);
      tu_set->sections[2].offset = sVar8;
      tu_set->sections[2].size = (uint)tu_length;
      Dwp_output_file::add_tu_set(this->output_file_,tu_set);
      return;
    }
  }
  return;
}



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

void FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,
                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)

{
  int iVar1;
  char cVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  int iVar6;
  void *__dest;
  undefined4 uVar7;
  void *__src;
  
  if (param_4 != 0 || param_5 != 0) {
    iVar1 = *(int *)(param_1 + 0x4c4);
    *(undefined4 *)(iVar1 + 0x128) = param_8;
    *(undefined4 *)(iVar1 + 300) = param_9;
    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);
    if (cVar2 == '\0') {
      puVar3 = (undefined4 *)FUN_001e5200(0x50);
      puVar4 = puVar3 + 2;
      do {
        *puVar4 = 0;
        puVar5 = puVar4 + 2;
        puVar4[1] = 0;
        puVar4 = puVar5;
      } while (puVar5 != puVar3 + 0x14);
      iVar1 = *(int *)(param_1 + 0x4c8);
      puVar3[1] = param_9;
      iVar6 = 3;
      *puVar3 = param_8;
      do {
        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);
        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);
        puVar3[iVar6 * 2 + 3] = uVar7;
        iVar6 = iVar6 + 1;
      } while (iVar6 != 9);
      __dest = (void *)FUN_001e5180(param_4);
      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));
      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <
          (int)__src + 1U) {
        FUN_00056bf0(param_1);
        __src = (void *)0x0;
      }
      memcpy(__dest,__src,param_4);
      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);
      puVar3[6] = uVar7;
      puVar3[7] = param_4;
      FUN_000379d0();
      return;
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x357517
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x3c]
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x4c]
MOV EBP,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x8],EAX
OR EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x4],EBX
JNZ 0x00037b20
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x4c4]
MOV dword ptr [EAX + 0x128],EDI
LEA EDX,[EAX + 0x130]
ADD EAX,0x108
MOV dword ptr [EAX + 0x24],EBP
PUSH EDX
PUSH EBP
PUSH EDI
PUSH EAX
CALL 0x00035f40
ADD ESP,0x10
TEST AL,AL
JNZ 0x00037b10
SUB ESP,0xc
PUSH 0x50
CALL 0x001e5200
ADD ESP,0x10
MOV EDX,EAX
LEA EAX,[EAX + 0x8]
LEA EBX,[EDX + 0x50]
NOP
MOV dword ptr [EAX],0x0
ADD EAX,0x8
MOV dword ptr [EAX + -0x4],0x0
CMP EAX,EBX
JNZ 0x00037b60
MOV EBX,dword ptr [ESI + 0x4c8]
MOV dword ptr [EDX + 0x4],EBP
MOV EAX,0x3
MOV dword ptr [EDX],EDI
MOV EDI,EBX
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV ECX,dword ptr [EDI + EAX*0x8]
MOV EBX,dword ptr [EDI + EAX*0x8 + 0x4]
MOV dword ptr [EDX + EAX*0x8 + 0x8],ECX
MOV dword ptr [EDX + EAX*0x8 + 0xc],EBX
ADD EAX,0x1
CMP EAX,0x9
JNZ 0x00037b90
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x001e5180
MOV ECX,dword ptr [ESI + 0x2c]
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x34]
LEA EBX,[ECX + EAX*0x1]
ADD EAX,dword ptr [ESI + 0x3c]
LEA EBP,[EBX + 0x1]
ADD EAX,ECX
CMP EBP,EAX
JA 0x00037c30
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
MOV EBP,dword ptr [ESP + 0xc]
PUSH EBP
PUSH EBX
PUSH EDI
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x000295c0
MOV dword ptr [ESP],0x1
PUSH EBP
PUSH EDI
PUSH 0x2
PUSH dword ptr [ESI + 0x4c4]
CALL 0x00036e20
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [EDX + 0x18],EAX
MOV dword ptr [EDX + 0x1c],EBP
MOV dword ptr [ESP + 0x54],EDX
MOV EAX,dword ptr [ESI + 0x4c4]
MOV dword ptr [ESP + 0x50],EAX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x000379d0
SUB ESP,0xc
PUSH ESI
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x00056bf0
ADD ESP,0x10
XOR EBX,EBX
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x00037bd9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (if_statement "if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }" if (parenthesized_expression "(param_4 != 0 || param_5 != 0)" ( (binary_expression "param_4 != 0 || param_5 != 0" (binary_expression "param_4 != 0" identifier != number_literal) || (binary_expression "param_5 != 0" identifier != number_literal)) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x4c4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x4c4)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c4)" * (cast_expression "(int *)(param_1 + 0x4c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x128) = param_8;" (assignment_expression "*(undefined4 *)(iVar1 + 0x128) = param_8" (pointer_expression "*(undefined4 *)(iVar1 + 0x128)" * (cast_expression "(undefined4 *)(iVar1 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x128)" ( (binary_expression "iVar1 + 0x128" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 300) = param_9;" (assignment_expression "*(undefined4 *)(iVar1 + 300) = param_9" (pointer_expression "*(undefined4 *)(iVar1 + 300)" * (cast_expression "(undefined4 *)(iVar1 + 300)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 300)" ( (binary_expression "iVar1 + 300" identifier + number_literal) )))) = identifier) ;) (expression_statement "cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);" (assignment_expression "cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" identifier = (call_expression "FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" identifier (argument_list "(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" ( (binary_expression "iVar1 + 0x108" identifier + number_literal) , identifier , identifier , (binary_expression "iVar1 + 0x130" identifier + number_literal) )))) ;) (if_statement "if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_001e5200(0x50);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5200(0x50)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x50)" identifier (argument_list "(0x50)" ( number_literal ))))) ;) (expression_statement "puVar4 = puVar3 + 2;" (assignment_expression "puVar4 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (do_statement "do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);" do (compound_statement "{\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar4 + 2;" (assignment_expression "puVar5 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar5 != puVar3 + 0x14)" ( (binary_expression "puVar5 != puVar3 + 0x14" identifier != (binary_expression "puVar3 + 0x14" identifier + number_literal)) )) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x4c8);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x4c8)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c8)" * (cast_expression "(int *)(param_1 + 0x4c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c8)" ( (binary_expression "param_1 + 0x4c8" identifier + number_literal) ))))) ;) (expression_statement "puVar3[1] = param_9;" (assignment_expression "puVar3[1] = param_9" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 3;" (assignment_expression "iVar6 = 3" identifier = number_literal) ;) (expression_statement "*puVar3 = param_8;" (assignment_expression "*puVar3 = param_8" (pointer_expression "*puVar3" * identifier) = identifier) ;) (do_statement "do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);" do (compound_statement "{\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 4 + iVar6 * 8)" * (cast_expression "(undefined4 *)(iVar1 + 4 + iVar6 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4 + iVar6 * 8)" ( (binary_expression "iVar1 + 4 + iVar6 * 8" (binary_expression "iVar1 + 4" identifier + number_literal) + (binary_expression "iVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);" (assignment_expression "puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8)" (subscript_expression "puVar3[iVar6 * 2 + 2]" identifier [ (binary_expression "iVar6 * 2 + 2" (binary_expression "iVar6 * 2" identifier * number_literal) + number_literal) ]) = (pointer_expression "*(undefined4 *)(iVar1 + iVar6 * 8)" * (cast_expression "(undefined4 *)(iVar1 + iVar6 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar6 * 8)" ( (binary_expression "iVar1 + iVar6 * 8" identifier + (binary_expression "iVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[iVar6 * 2 + 3] = uVar7;" (assignment_expression "puVar3[iVar6 * 2 + 3] = uVar7" (subscript_expression "puVar3[iVar6 * 2 + 3]" identifier [ (binary_expression "iVar6 * 2 + 3" (binary_expression "iVar6 * 2" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 9)" ( (binary_expression "iVar6 != 9" identifier != number_literal) )) ;) (expression_statement "__dest = (void *)FUN_001e5180(param_4);" (assignment_expression "__dest = (void *)FUN_001e5180(param_4)" identifier = (cast_expression "(void *)FUN_001e5180(param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(param_4)" identifier (argument_list "(param_4)" ( identifier ))))) ;) (expression_statement "__src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));" (assignment_expression "__src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" identifier = (cast_expression "(void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" ( (binary_expression "*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) )))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U)" ( (binary_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U" (call_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" ( (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)" (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c)" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) + (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ))) < (binary_expression "(int)__src + 1U" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) )) (compound_statement "{\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }" { (expression_statement "FUN_00056bf0(param_1);" (call_expression "FUN_00056bf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "__src = (void *)0x0;" (assignment_expression "__src = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "memcpy(__dest,__src,param_4);" (call_expression "memcpy(__dest,__src,param_4)" identifier (argument_list "(__dest,__src,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);" (assignment_expression "uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" identifier = (call_expression "FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "puVar3[6] = uVar7;" (assignment_expression "puVar3[6] = uVar7" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[7] = param_4;" (assignment_expression "puVar3[7] = param_4" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_000379d0();" (call_expression "FUN_000379d0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DW_SECT": Some values do not have unique names */\n/* DWARF original prototype: void visit_type_unit(Unit_reader * this, off_t param_1, off_t\n   tu_length, off_t param_3, uint64_t signature, Dwarf_die * param_5) */\n\nvoid __thiscall\ngold::Unit_reader::visit_type_unit\n          (Unit_reader *this,off_t param_1,off_t tu_length,off_t param_3,uint64_t signature,\n          Dwarf_die *param_5)\n\n{\n  Dwp_output_file *pDVar1;\n  section_size_type sVar2;\n  uchar *puVar3;\n  bool bVar4;\n  Unit_set *tu_set;\n  Section_bounds *pSVar5;\n  Section_bounds *pSVar6;\n  int iVar7;\n  uchar *contents;\n  section_offset_type sVar8;\n  uchar *__src;\n  \n  if (tu_length != 0) {\n    pDVar1 = this->output_file_;\n    pDVar1->last_type_sig_ = signature;\n    bVar4 = Dwp_output_file::Dwp_index::find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);\n    if (!bVar4) {\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::Unit_reader::visit_type_unit\n          (Unit_reader *this,off_t param_1,off_t tu_length,off_t param_3,uint64_t signature,\n          Dwarf_die *param_5)\n\n{\n  Dwp_output_file *pDVar1;\n  section_size_type sVar2;\n  uchar *puVar3;\n  bool bVar4;\n  Unit_set *tu_set;\n  Section_bounds *pSVar5;\n  Section_bounds *pSVar6;\n  int iVar7;\n  uchar *contents;\n  section_offset_type sVar8;\n  uchar *__src;\n  \n  if (tu_length != 0) {\n    pDVar1 = this->output_file_;\n    pDVar1->last_type_sig_ = signature;\n    bVar4 = Dwp_output_file::Dwp_index::find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);\n    if (!bVar4) {\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Unit_reader::" identifier : : identifier : :) (function_declarator "visit_type_unit\n          (Unit_reader *this,off_t param_1,off_t tu_length,off_t param_3,uint64_t signature,\n          Dwarf_die *param_5)" identifier (parameter_list "(Unit_reader *this,off_t param_1,off_t tu_length,off_t param_3,uint64_t signature,\n          Dwarf_die *param_5)" ( (parameter_declaration "Unit_reader *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "off_t param_1" type_identifier identifier) , (parameter_declaration "off_t tu_length" type_identifier identifier) , (parameter_declaration "off_t param_3" type_identifier identifier) , (parameter_declaration "uint64_t signature" primitive_type identifier) , (parameter_declaration "Dwarf_die *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  Dwp_output_file *pDVar1;\n  section_size_type sVar2;\n  uchar *puVar3;\n  bool bVar4;\n  Unit_set *tu_set;\n  Section_bounds *pSVar5;\n  Section_bounds *pSVar6;\n  int iVar7;\n  uchar *contents;\n  section_offset_type sVar8;\n  uchar *__src;\n  \n  if (tu_length != 0) {\n    pDVar1 = this->output_file_;\n    pDVar1->last_type_sig_ = signature;\n    bVar4 = Dwp_output_file::Dwp_index::find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);\n    if (!bVar4) {\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }\n  }\n  return;\n}" { (declaration "Dwp_output_file *pDVar1;" type_identifier (pointer_declarator "*pDVar1" * identifier) ;) (declaration "section_size_type sVar2;" type_identifier identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "Unit_set *tu_set;" type_identifier (pointer_declarator "*tu_set" * identifier) ;) (declaration "Section_bounds *pSVar5;" type_identifier (pointer_declarator "*pSVar5" * identifier) ;) (declaration "Section_bounds *pSVar6;" type_identifier (pointer_declarator "*pSVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uchar *contents;" type_identifier (pointer_declarator "*contents" * identifier) ;) (declaration "section_offset_type sVar8;" type_identifier identifier ;) (declaration "uchar *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (if_statement "if (tu_length != 0) {\n    pDVar1 = this->output_file_;\n    pDVar1->last_type_sig_ = signature;\n    bVar4 = Dwp_output_file::Dwp_index::find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);\n    if (!bVar4) {\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }\n  }" if (parenthesized_expression "(tu_length != 0)" ( (binary_expression "tu_length != 0" identifier != number_literal) )) (compound_statement "{\n    pDVar1 = this->output_file_;\n    pDVar1->last_type_sig_ = signature;\n    bVar4 = Dwp_output_file::Dwp_index::find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);\n    if (!bVar4) {\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }\n  }" { (expression_statement "pDVar1 = this->output_file_;" (assignment_expression "pDVar1 = this->output_file_" identifier = (field_expression "this->output_file_" identifier -> field_identifier)) ;) (expression_statement "pDVar1->last_type_sig_ = signature;" (assignment_expression "pDVar1->last_type_sig_ = signature" (field_expression "pDVar1->last_type_sig_" identifier -> field_identifier) = identifier) ;) (ERROR "bVar4 = Dwp_output_file::" (assignment_expression "bVar4 = Dwp_output_file" identifier = identifier) : :) (labeled_statement "Dwp_index::find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);" statement_identifier : (ERROR ":" :) (expression_statement "find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);" (call_expression "find_or_add\n                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_)" identifier (argument_list "(&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_)" ( (pointer_expression "&pDVar1->tu_index_" & (field_expression "pDVar1->tu_index_" identifier -> field_identifier)) , identifier , (pointer_expression "&pDVar1->last_tu_slot_" & (field_expression "pDVar1->last_tu_slot_" identifier -> field_identifier)) ))) ;)) (if_statement "if (!bVar4) {\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n      tu_set = (Unit_set *)operator_new(0x50);\n      pSVar5 = tu_set->sections;\n      do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);\n      pSVar5 = this->sections_;\n      iVar7 = 3;\n      tu_set->signature = signature;\n      do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);\n      contents = (uchar *)operator_new__((uint)tu_length);\n      puVar3 = (this->super_Dwarf_info_reader).buffer_;\n      iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;\n      __src = puVar3 + iVar7;\n      if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }\n      memcpy(contents,__src,(uint)tu_length);\n      sVar8 = Dwp_output_file::add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);\n      tu_set->sections[2].offset = sVar8;\n      tu_set->sections[2].size = (uint)tu_length;\n      Dwp_output_file::add_tu_set(this->output_file_,tu_set);\n      return;\n    }" { (expression_statement "tu_set = (Unit_set *)operator_new(0x50);" (assignment_expression "tu_set = (Unit_set *)operator_new(0x50)" identifier = (cast_expression "(Unit_set *)operator_new(0x50)" ( (type_descriptor "Unit_set *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x50)" identifier (argument_list "(0x50)" ( number_literal ))))) ;) (expression_statement "pSVar5 = tu_set->sections;" (assignment_expression "pSVar5 = tu_set->sections" identifier = (field_expression "tu_set->sections" identifier -> field_identifier)) ;) (do_statement "do {\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      } while ((Unit_set *)pSVar6 != tu_set + 1);" do (compound_statement "{\n        pSVar5->offset = 0;\n        pSVar6 = pSVar5 + 1;\n        pSVar5->size = 0;\n        pSVar5 = pSVar6;\n      }" { (expression_statement "pSVar5->offset = 0;" (assignment_expression "pSVar5->offset = 0" (field_expression "pSVar5->offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar6 = pSVar5 + 1;" (assignment_expression "pSVar6 = pSVar5 + 1" identifier = (binary_expression "pSVar5 + 1" identifier + number_literal)) ;) (expression_statement "pSVar5->size = 0;" (assignment_expression "pSVar5->size = 0" (field_expression "pSVar5->size" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar5 = pSVar6;" (assignment_expression "pSVar5 = pSVar6" identifier = identifier) ;) }) while (parenthesized_expression "((Unit_set *)pSVar6 != tu_set + 1)" ( (binary_expression "(Unit_set *)pSVar6 != tu_set + 1" (cast_expression "(Unit_set *)pSVar6" ( (type_descriptor "Unit_set *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (binary_expression "tu_set + 1" identifier + number_literal)) )) ;) (expression_statement "pSVar5 = this->sections_;" (assignment_expression "pSVar5 = this->sections_" identifier = (field_expression "this->sections_" identifier -> field_identifier)) ;) (expression_statement "iVar7 = 3;" (assignment_expression "iVar7 = 3" identifier = number_literal) ;) (expression_statement "tu_set->signature = signature;" (assignment_expression "tu_set->signature = signature" (field_expression "tu_set->signature" identifier -> field_identifier) = identifier) ;) (do_statement "do {\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      } while (iVar7 != 9);" do (compound_statement "{\n        sVar2 = pSVar5[iVar7].size;\n        tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;\n        tu_set->sections[iVar7].size = sVar2;\n        iVar7 = iVar7 + 1;\n      }" { (expression_statement "sVar2 = pSVar5[iVar7].size;" (assignment_expression "sVar2 = pSVar5[iVar7].size" identifier = (field_expression "pSVar5[iVar7].size" (subscript_expression "pSVar5[iVar7]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "tu_set->sections[iVar7].offset = pSVar5[iVar7].offset;" (assignment_expression "tu_set->sections[iVar7].offset = pSVar5[iVar7].offset" (field_expression "tu_set->sections[iVar7].offset" (subscript_expression "tu_set->sections[iVar7]" (field_expression "tu_set->sections" identifier -> field_identifier) [ identifier ]) . field_identifier) = (field_expression "pSVar5[iVar7].offset" (subscript_expression "pSVar5[iVar7]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "tu_set->sections[iVar7].size = sVar2;" (assignment_expression "tu_set->sections[iVar7].size = sVar2" (field_expression "tu_set->sections[iVar7].size" (subscript_expression "tu_set->sections[iVar7]" (field_expression "tu_set->sections" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 9)" ( (binary_expression "iVar7 != 9" identifier != number_literal) )) ;) (expression_statement "contents = (uchar *)operator_new__((uint)tu_length);" (assignment_expression "contents = (uchar *)operator_new__((uint)tu_length)" identifier = (cast_expression "(uchar *)operator_new__((uint)tu_length)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__((uint)tu_length)" identifier (argument_list "((uint)tu_length)" ( (cast_expression "(uint)tu_length" ( (type_descriptor "uint" type_identifier) ) identifier) ))))) ;) (expression_statement "puVar3 = (this->super_Dwarf_info_reader).buffer_;" (assignment_expression "puVar3 = (this->super_Dwarf_info_reader).buffer_" identifier = (field_expression "(this->super_Dwarf_info_reader).buffer_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_;" (assignment_expression "iVar7 = (int)(this->super_Dwarf_info_reader).cu_offset_" identifier = (cast_expression "(int)(this->super_Dwarf_info_reader).cu_offset_" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super_Dwarf_info_reader).cu_offset_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "__src = puVar3 + iVar7;" (assignment_expression "__src = puVar3 + iVar7" identifier = (binary_expression "puVar3 + iVar7" identifier + identifier)) ;) (if_statement "if (puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1) {\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }" if (parenthesized_expression "(puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1)" ( (binary_expression "puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_ < __src + 1" (binary_expression "puVar3 + iVar7 + (int)(this->super_Dwarf_info_reader).cu_length_" (binary_expression "puVar3 + iVar7" identifier + identifier) + (cast_expression "(int)(this->super_Dwarf_info_reader).cu_length_" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super_Dwarf_info_reader).cu_length_" (parenthesized_expression "(this->super_Dwarf_info_reader)" ( (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier) )) . field_identifier))) < (binary_expression "__src + 1" identifier + number_literal)) )) (compound_statement "{\n        Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);\n        __src = (uchar *)0x0;\n      }" { (labeled_statement "Dwarf_info_reader::warn_corrupt_debug_section(&this->super_Dwarf_info_reader);" statement_identifier : (ERROR ":" :) (expression_statement "warn_corrupt_debug_section(&this->super_Dwarf_info_reader);" (call_expression "warn_corrupt_debug_section(&this->super_Dwarf_info_reader)" identifier (argument_list "(&this->super_Dwarf_info_reader)" ( (pointer_expression "&this->super_Dwarf_info_reader" & (field_expression "this->super_Dwarf_info_reader" identifier -> field_identifier)) ))) ;)) (expression_statement "__src = (uchar *)0x0;" (assignment_expression "__src = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "memcpy(contents,__src,(uint)tu_length);" (call_expression "memcpy(contents,__src,(uint)tu_length)" identifier (argument_list "(contents,__src,(uint)tu_length)" ( identifier , identifier , (cast_expression "(uint)tu_length" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (ERROR "sVar8 = Dwp_output_file::" (assignment_expression "sVar8 = Dwp_output_file" identifier = identifier) : :) (expression_statement "add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1);" (call_expression "add_contribution\n                        (this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1)" identifier (argument_list "(this->output_file_,DW_SECT_TYPES,contents,(uint)tu_length,1)" ( (field_expression "this->output_file_" identifier -> field_identifier) , identifier , identifier , (cast_expression "(uint)tu_length" ( (type_descriptor "uint" type_identifier) ) identifier) , number_literal ))) ;) (expression_statement "tu_set->sections[2].offset = sVar8;" (assignment_expression "tu_set->sections[2].offset = sVar8" (field_expression "tu_set->sections[2].offset" (subscript_expression "tu_set->sections[2]" (field_expression "tu_set->sections" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "tu_set->sections[2].size = (uint)tu_length;" (assignment_expression "tu_set->sections[2].size = (uint)tu_length" (field_expression "tu_set->sections[2].size" (subscript_expression "tu_set->sections[2]" (field_expression "tu_set->sections" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(uint)tu_length" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (labeled_statement "Dwp_output_file::add_tu_set(this->output_file_,tu_set);" statement_identifier : (ERROR ":" :) (expression_statement "add_tu_set(this->output_file_,tu_set);" (call_expression "add_tu_set(this->output_file_,tu_set)" identifier (argument_list "(this->output_file_,tu_set)" ( (field_expression "this->output_file_" identifier -> field_identifier) , identifier ))) ;)) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (if_statement "if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }" if (parenthesized_expression "(param_4 != 0 || param_5 != 0)" ( (binary_expression "param_4 != 0 || param_5 != 0" (binary_expression "param_4 != 0" identifier != number_literal) || (binary_expression "param_5 != 0" identifier != number_literal)) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x4c4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x4c4)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c4)" * (cast_expression "(int *)(param_1 + 0x4c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x128) = param_8;" (assignment_expression "*(undefined4 *)(iVar1 + 0x128) = param_8" (pointer_expression "*(undefined4 *)(iVar1 + 0x128)" * (cast_expression "(undefined4 *)(iVar1 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x128)" ( (binary_expression "iVar1 + 0x128" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 300) = param_9;" (assignment_expression "*(undefined4 *)(iVar1 + 300) = param_9" (pointer_expression "*(undefined4 *)(iVar1 + 300)" * (cast_expression "(undefined4 *)(iVar1 + 300)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 300)" ( (binary_expression "iVar1 + 300" identifier + number_literal) )))) = identifier) ;) (expression_statement "cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);" (assignment_expression "cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" identifier = (call_expression "FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" identifier (argument_list "(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" ( (binary_expression "iVar1 + 0x108" identifier + number_literal) , identifier , identifier , (binary_expression "iVar1 + 0x130" identifier + number_literal) )))) ;) (if_statement "if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_001e5200(0x50);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5200(0x50)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x50)" identifier (argument_list "(0x50)" ( number_literal ))))) ;) (expression_statement "puVar4 = puVar3 + 2;" (assignment_expression "puVar4 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (do_statement "do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);" do (compound_statement "{\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar4 + 2;" (assignment_expression "puVar5 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar5 != puVar3 + 0x14)" ( (binary_expression "puVar5 != puVar3 + 0x14" identifier != (binary_expression "puVar3 + 0x14" identifier + number_literal)) )) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x4c8);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x4c8)" identifier = (pointer_expression "*(int *)(param_1 + 0x4c8)" * (cast_expression "(int *)(param_1 + 0x4c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c8)" ( (binary_expression "param_1 + 0x4c8" identifier + number_literal) ))))) ;) (expression_statement "puVar3[1] = param_9;" (assignment_expression "puVar3[1] = param_9" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 3;" (assignment_expression "iVar6 = 3" identifier = number_literal) ;) (expression_statement "*puVar3 = param_8;" (assignment_expression "*puVar3 = param_8" (pointer_expression "*puVar3" * identifier) = identifier) ;) (do_statement "do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);" do (compound_statement "{\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 4 + iVar6 * 8)" * (cast_expression "(undefined4 *)(iVar1 + 4 + iVar6 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4 + iVar6 * 8)" ( (binary_expression "iVar1 + 4 + iVar6 * 8" (binary_expression "iVar1 + 4" identifier + number_literal) + (binary_expression "iVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);" (assignment_expression "puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8)" (subscript_expression "puVar3[iVar6 * 2 + 2]" identifier [ (binary_expression "iVar6 * 2 + 2" (binary_expression "iVar6 * 2" identifier * number_literal) + number_literal) ]) = (pointer_expression "*(undefined4 *)(iVar1 + iVar6 * 8)" * (cast_expression "(undefined4 *)(iVar1 + iVar6 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar6 * 8)" ( (binary_expression "iVar1 + iVar6 * 8" identifier + (binary_expression "iVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "puVar3[iVar6 * 2 + 3] = uVar7;" (assignment_expression "puVar3[iVar6 * 2 + 3] = uVar7" (subscript_expression "puVar3[iVar6 * 2 + 3]" identifier [ (binary_expression "iVar6 * 2 + 3" (binary_expression "iVar6 * 2" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 9)" ( (binary_expression "iVar6 != 9" identifier != number_literal) )) ;) (expression_statement "__dest = (void *)FUN_001e5180(param_4);" (assignment_expression "__dest = (void *)FUN_001e5180(param_4)" identifier = (cast_expression "(void *)FUN_001e5180(param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(param_4)" identifier (argument_list "(param_4)" ( identifier ))))) ;) (expression_statement "__src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));" (assignment_expression "__src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" identifier = (cast_expression "(void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" ( (binary_expression "*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) )))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U)" ( (binary_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U" (call_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" ( (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)" (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c)" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) + (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ))) < (binary_expression "(int)__src + 1U" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) )) (compound_statement "{\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }" { (expression_statement "FUN_00056bf0(param_1);" (call_expression "FUN_00056bf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "__src = (void *)0x0;" (assignment_expression "__src = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "memcpy(__dest,__src,param_4);" (call_expression "memcpy(__dest,__src,param_4)" identifier (argument_list "(__dest,__src,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);" (assignment_expression "uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" identifier = (call_expression "FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "puVar3[6] = uVar7;" (assignment_expression "puVar3[6] = uVar7" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[7] = param_4;" (assignment_expression "puVar3[7] = param_4" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_000379d0();" (call_expression "FUN_000379d0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) < (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)\n\n{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00037ae0(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)" (identifier "FUN_00037ae0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,\n                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  void *__dest;\n  undefined4 uVar7;\n  void *__src;\n  \n  if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (if_statement "if (param_4 != 0 || param_5 != 0) {\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(param_4 != 0 || param_5 != 0)" (( "(") (binary_expression "param_4 != 0 || param_5 != 0" (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x4c4);\n    *(undefined4 *)(iVar1 + 0x128) = param_8;\n    *(undefined4 *)(iVar1 + 300) = param_9;\n    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);\n    if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x4c4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x4c4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x4c4)" (* "*") (cast_expression "(int *)(param_1 + 0x4c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x128) = param_8;" (assignment_expression "*(undefined4 *)(iVar1 + 0x128) = param_8" (pointer_expression "*(undefined4 *)(iVar1 + 0x128)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x128)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x128)" (( "(") (binary_expression "iVar1 + 0x128" (identifier "iVar1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (identifier "param_8")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 300) = param_9;" (assignment_expression "*(undefined4 *)(iVar1 + 300) = param_9" (pointer_expression "*(undefined4 *)(iVar1 + 300)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 300)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 300)" (( "(") (binary_expression "iVar1 + 300" (identifier "iVar1") (+ "+") (number_literal "300")) () ")")))) (= "=") (identifier "param_9")) (; ";")) (expression_statement "cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);" (assignment_expression "cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" (identifier "cVar2") (= "=") (call_expression "FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" (identifier "FUN_00035f40") (argument_list "(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130)" (( "(") (binary_expression "iVar1 + 0x108" (identifier "iVar1") (+ "+") (number_literal "0x108")) (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (binary_expression "iVar1 + 0x130" (identifier "iVar1") (+ "+") (number_literal "0x130")) () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_001e5200(0x50);\n      puVar4 = puVar3 + 2;\n      do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);\n      iVar1 = *(int *)(param_1 + 0x4c8);\n      puVar3[1] = param_9;\n      iVar6 = 3;\n      *puVar3 = param_8;\n      do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);\n      __dest = (void *)FUN_001e5180(param_4);\n      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));\n      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }\n      memcpy(__dest,__src,param_4);\n      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);\n      puVar3[6] = uVar7;\n      puVar3[7] = param_4;\n      FUN_000379d0();\n      return;\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)FUN_001e5200(0x50);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5200(0x50)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_001e5200(0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(0x50)" (identifier "FUN_001e5200") (argument_list "(0x50)" (( "(") (number_literal "0x50") () ")"))))) (; ";")) (expression_statement "puVar4 = puVar3 + 2;" (assignment_expression "puVar4 = puVar3 + 2" (identifier "puVar4") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (do_statement "do {\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      } while (puVar5 != puVar3 + 0x14);" (do "do") (compound_statement "{\n        *puVar4 = 0;\n        puVar5 = puVar4 + 2;\n        puVar4[1] = 0;\n        puVar4 = puVar5;\n      }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar4 + 2;" (assignment_expression "puVar5 = puVar4 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" (identifier "puVar4") (= "=") (identifier "puVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar5 != puVar3 + 0x14)" (( "(") (binary_expression "puVar5 != puVar3 + 0x14" (identifier "puVar5") (!= "!=") (binary_expression "puVar3 + 0x14" (identifier "puVar3") (+ "+") (number_literal "0x14"))) () ")")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x4c8);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x4c8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x4c8)" (* "*") (cast_expression "(int *)(param_1 + 0x4c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c8)" (( "(") (binary_expression "param_1 + 0x4c8" (identifier "param_1") (+ "+") (number_literal "0x4c8")) () ")"))))) (; ";")) (expression_statement "puVar3[1] = param_9;" (assignment_expression "puVar3[1] = param_9" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_9")) (; ";")) (expression_statement "iVar6 = 3;" (assignment_expression "iVar6 = 3" (identifier "iVar6") (= "=") (number_literal "3")) (; ";")) (expression_statement "*puVar3 = param_8;" (assignment_expression "*puVar3 = param_8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "param_8")) (; ";")) (do_statement "do {\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      } while (iVar6 != 9);" (do "do") (compound_statement "{\n        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);\n        puVar3[iVar6 * 2 + 3] = uVar7;\n        iVar6 = iVar6 + 1;\n      }" ({ "{") (expression_statement "uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 4 + iVar6 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4 + iVar6 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4 + iVar6 * 8)" (( "(") (binary_expression "iVar1 + 4 + iVar6 * 8" (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar6 * 8" (identifier "iVar6") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (expression_statement "puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);" (assignment_expression "puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8)" (subscript_expression "puVar3[iVar6 * 2 + 2]" (identifier "puVar3") ([ "[") (binary_expression "iVar6 * 2 + 2" (binary_expression "iVar6 * 2" (identifier "iVar6") (* "*") (number_literal "2")) (+ "+") (number_literal "2")) (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + iVar6 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar6 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar6 * 8)" (( "(") (binary_expression "iVar1 + iVar6 * 8" (identifier "iVar1") (+ "+") (binary_expression "iVar6 * 8" (identifier "iVar6") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (expression_statement "puVar3[iVar6 * 2 + 3] = uVar7;" (assignment_expression "puVar3[iVar6 * 2 + 3] = uVar7" (subscript_expression "puVar3[iVar6 * 2 + 3]" (identifier "puVar3") ([ "[") (binary_expression "iVar6 * 2 + 3" (binary_expression "iVar6 * 2" (identifier "iVar6") (* "*") (number_literal "2")) (+ "+") (number_literal "3")) (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 9)" (( "(") (binary_expression "iVar6 != 9" (identifier "iVar6") (!= "!=") (number_literal "9")) () ")")) (; ";")) (expression_statement "__dest = (void *)FUN_001e5180(param_4);" (assignment_expression "__dest = (void *)FUN_001e5180(param_4)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_001e5180(param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5180(param_4)" (identifier "FUN_001e5180") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))))) (; ";")) (expression_statement "__src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));" (assignment_expression "__src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" (identifier "__src") (= "=") (cast_expression "(void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34))" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34)" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) () ")")))) (; ";")) (if_statement "if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U) {\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U)" (( "(") (binary_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <\n          (int)__src + 1U" (call_expression "(uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c))" (( "(") (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)" (binary_expression "*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c)" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) () ")"))) (< "<") (binary_expression "(int)__src + 1U" (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")) (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n        FUN_00056bf0(param_1);\n        __src = (void *)0x0;\n      }" ({ "{") (expression_statement "FUN_00056bf0(param_1);" (call_expression "FUN_00056bf0(param_1)" (identifier "FUN_00056bf0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "__src = (void *)0x0;" (assignment_expression "__src = (void *)0x0" (identifier "__src") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "memcpy(__dest,__src,param_4);" (call_expression "memcpy(__dest,__src,param_4)" (identifier "memcpy") (argument_list "(__dest,__src,param_4)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);" (assignment_expression "uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" (identifier "uVar7") (= "=") (call_expression "FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" (identifier "FUN_00036e20") (argument_list "(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")")))) (, ",") (number_literal "2") (, ",") (identifier "__dest") (, ",") (identifier "param_4") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "puVar3[6] = uVar7;" (assignment_expression "puVar3[6] = uVar7" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar3[7] = param_4;" (assignment_expression "puVar3[7] = param_4" (subscript_expression "puVar3[7]" (identifier "puVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "FUN_000379d0();" (call_expression "FUN_000379d0()" (identifier "FUN_000379d0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DW_SECT": Some values do not have unique names */
/* DWARF original prototype: void visit_type_unit(Unit_reader * this, off_t param_1, off_t
   tu_length, off_t param_3, uint64_t signature, Dwarf_die * param_5) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 param_1,type_2 var_1,type_2 param_3,uint64_t signature,
          type_3 *param_5)

{
  type_4 *pDVar1;
  type_5 sVar2;
  type_6 *var_8;
  bool bVar4;
  type_7 *var_5;
  type_8 *var_4;
  type_8 *pSVar6;
  int var_6;
  type_6 *contents;
  type_9 sVar8;
  type_6 *var_9;
  
  if (var_1 != 0) {
    pDVar1 = this->output_file_;
    pDVar1->last_type_sig_ = signature;
    bVar4 = type_4::Dwp_index::var_2
                      (&pDVar1->tu_index_,signature,&pDVar1->last_tu_slot_);
    if (!bVar4) {
      var_5 = (type_7 *)var_3(0x50);
      var_4 = var_5->sections;
      do {
        var_4->offset = 0;
        pSVar6 = var_4 + 1;
        var_4->size = 0;
        var_4 = pSVar6;
      } while ((type_7 *)pSVar6 != var_5 + 1);
      var_4 = this->sections_;
      var_6 = 3;
      var_5->signature = signature;
      do {
        sVar2 = var_4[var_6].size;
        var_5->sections[var_6].offset = var_4[var_6].offset;
        var_5->sections[var_6].size = sVar2;
        var_6 = var_6 + 1;
      } while (var_6 != 9);
      contents = (type_6 *)var_7((type_10)var_1);
      var_8 = (this->super_Dwarf_info_reader).buffer_;
      var_6 = (int)(this->super_Dwarf_info_reader).cu_offset_;
      var_9 = var_8 + var_6;
      if (var_8 + var_6 + (int)(this->super_Dwarf_info_reader).cu_length_ < var_9 + 1) {
        Dwarf_info_reader::var_10(&this->super_Dwarf_info_reader);
        var_9 = (type_6 *)0x0;
      }
      var_11(contents,var_9,(type_10)var_1);
      sVar8 = type_4::var_12
                        (this->output_file_,DW_SECT_TYPES,contents,(type_10)var_1,1);
      var_5->sections[2].offset = sVar8;
      var_5->sections[2].size = (type_10)var_1;
      Dwp_output_file::var_13(this->output_file_,var_5);
      return;
    }
  }
  return;
}


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

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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,size_t param_4,int param_5,
                 undefined4 param_6,undefined4 param_7,undefined4 param_8,undefined4 param_9)

{
  int iVar1;
  char cVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  int iVar6;
  void *__dest;
  undefined4 uVar7;
  void *__src;
  
  if (param_4 != 0 || param_5 != 0) {
    iVar1 = *(int *)(param_1 + 0x4c4);
    *(undefined4 *)(iVar1 + 0x128) = param_8;
    *(undefined4 *)(iVar1 + 300) = param_9;
    cVar2 = FUN_00035f40(iVar1 + 0x108,param_8,param_9,iVar1 + 0x130);
    if (cVar2 == '\0') {
      puVar3 = (undefined4 *)FUN_001e5200(0x50);
      puVar4 = puVar3 + 2;
      do {
        *puVar4 = 0;
        puVar5 = puVar4 + 2;
        puVar4[1] = 0;
        puVar4 = puVar5;
      } while (puVar5 != puVar3 + 0x14);
      iVar1 = *(int *)(param_1 + 0x4c8);
      puVar3[1] = param_9;
      iVar6 = 3;
      *puVar3 = param_8;
      do {
        uVar7 = *(undefined4 *)(iVar1 + 4 + iVar6 * 8);
        puVar3[iVar6 * 2 + 2] = *(undefined4 *)(iVar1 + iVar6 * 8);
        puVar3[iVar6 * 2 + 3] = uVar7;
        iVar6 = iVar6 + 1;
      } while (iVar6 != 9);
      __dest = (void *)FUN_001e5180(param_4);
      __src = (void *)(*(int *)(param_1 + 0x2c) + *(int *)(param_1 + 0x34));
      if ((uint)(*(int *)(param_1 + 0x34) + *(int *)(param_1 + 0x3c) + *(int *)(param_1 + 0x2c)) <
          (int)__src + 1U) {
        FUN_00056bf0(param_1);
        __src = (void *)0x0;
      }
      memcpy(__dest,__src,param_4);
      uVar7 = FUN_00036e20(*(undefined4 *)(param_1 + 0x4c4),2,__dest,param_4,1);
      puVar3[6] = uVar7;
      puVar3[7] = param_4;
      FUN_000379d0();
      return;
    }
  }
  return;
}

