
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void savres_define(Output_data_save_res<64,_false> * this, Symbol_table
   * symtab, char * name, uint lo, uint hi, _func_uchar_ptr_uchar_ptr_int * write_ent,
   _func_uchar_ptr_uchar_ptr_int * write_tail) */

void __thiscall
anon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::savres_define
          (Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,
          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)

{
  char sym [16];
  
}



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

void __regparm3
FUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,
            code *param_7)

{
  char cVar1;
  size_t __n;
  int iVar2;
  byte local_4a;
  byte local_49;
  int local_38;
  char local_2c [24];
  undefined4 uStack_14;
  
  uStack_14 = 0x505ad;
  __n = strlen(param_3);
  memcpy(local_2c,param_3,__n);
  local_2c[__n + 2] = '\0';
  local_49 = 0;
  if (param_5 < param_4) {
    return;
  }
  do {
    cVar1 = (char)(param_4 / 10);
    local_2c[__n] = cVar1 + '0';
    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';
    iVar2 = FUN_001e9100(param_2,local_2c,0);
    if (iVar2 == 0) {
LAB_00050627:
      if (local_49 != 0) {
        iVar2 = *(int *)(param_1 + 0x2c);
        local_4a = 0;
        goto joined_r0x00050752;
      }
    }
    else {
      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {
        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;
        if (local_4a == 0) goto LAB_00050627;
      }
      else {
        local_4a = 1;
        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;
      }
      iVar2 = *(int *)(param_1 + 0x2c);
joined_r0x00050752:
      if (iVar2 == 0) {
        iVar2 = FUN_002465f0(0x368);
        local_38 = *(int *)(param_1 + 0xc);
        *(int *)(param_1 + 0x2c) = iVar2;
        iVar2 = iVar2 + local_38;
        if (param_5 != param_4) goto LAB_000506b2;
LAB_00050780:
        iVar2 = (*param_7)(iVar2,param_5);
      }
      else {
        local_38 = *(int *)(param_1 + 0xc);
        iVar2 = iVar2 + local_38;
        if (param_5 == param_4) goto LAB_00050780;
LAB_000506b2:
        iVar2 = (*param_6)(iVar2,param_4);
      }
      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);
      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {
                    /* WARNING: Subroutine does not return */
        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");
      }
      *(int *)(param_1 + 0xc) = iVar2;
      *(undefined4 *)(param_1 + 0x10) = 0;
      local_49 = 1;
      if (local_4a != 0) {
        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);
        local_49 = local_4a;
      }
    }
    if (param_5 == param_4) {
      return;
    }
    param_4 = param_4 + 1;
  } while( true );
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x0003a210
ADD EBX,0x3c3a53
SUB ESP,0x48
MOV dword ptr [ESP + 0x10],EDX
MOV EDI,dword ptr [ESP + 0x5c]
PUSH ECX
CALL 0x0002c330
ADD ESP,0x10
LEA EDX,[ESP + 0x20]
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],EAX
PUSH EAX
PUSH ESI
PUSH EDX
CALL 0x0002c2d0
MOV EAX,dword ptr [ESP + 0x1c]
MOV byte ptr [ESP + EAX*0x1 + 0x32],0x0
ADD ESP,0x10
ADD EAX,0x1
MOV dword ptr [ESP + 0x10],EAX
MOV byte ptr [ESP + 0x3],0x0
CMP EDI,dword ptr [ESP + 0x54]
JA 0x0005073d
MOV ESI,dword ptr [ESP + 0x54]
JMP 0x0005063f
MOV EDX,dword ptr [EAX + 0xc]
MOVZX EAX,byte ptr [EAX + 0x2b]
TEST EDX,EDX
SETZ DL
SHR AL,0x5
AND AL,DL
MOV byte ptr [ESP + 0x2],AL
JNZ 0x00050696
CMP byte ptr [ESP + 0x3],0x0
JNZ 0x00050748
LEA EAX,[EDI + 0x1]
CMP ESI,EDI
JZ 0x0005073d
MOV EDI,EAX
MOV EAX,0xcccccccd
MOV ECX,dword ptr [ESP + 0xc]
SUB ESP,0x4
MUL EDI
SHR EDX,0x3
LEA EAX,[EDX + 0x30]
MOV byte ptr [ESP + ECX*0x1 + 0x24],AL
LEA EAX,[EDX + EDX*0x4]
MOV ECX,EDI
ADD EAX,EAX
SUB ECX,EAX
MOV EAX,ECX
MOV ECX,dword ptr [ESP + 0x14]
ADD EAX,0x30
MOV byte ptr [ESP + ECX*0x1 + 0x24],AL
PUSH 0x0
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
CALL 0x001e9100
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00050627
MOVZX EDX,byte ptr [EAX + 0x2a]
AND EDX,0x7
JZ 0x00050610
MOV byte ptr [ESP + 0x2],0x1
CMP DL,0x4
JNZ 0x00050627
MOV EAX,dword ptr [EBP + 0x2c]
TEST EAX,EAX
JZ 0x00050758
MOV ECX,dword ptr [EBP + 0xc]
MOV dword ptr [ESP + 0x14],ECX
ADD EAX,ECX
CMP ESI,EDI
JZ 0x00050780
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL dword ptr [ESP + 0x68]
ADD ESP,0x10
SUB EAX,dword ptr [EBP + 0x2c]
XOR EDX,EDX
MOV ECX,EAX
TEST byte ptr [EBP + 0x1c],0x2
JNZ 0x00050791
CMP byte ptr [ESP + 0x2],0x0
MOV dword ptr [EBP + 0xc],EAX
MOV dword ptr [EBP + 0x10],EDX
MOV byte ptr [ESP + 0x3],0x1
JZ 0x00050632
SUB ESP,0x4
XOR EDX,EDX
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH 0x2
PUSH 0x1
PUSH 0x2
SUB ECX,dword ptr [ESP + 0x30]
PUSH EDX
PUSH ECX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x40],0x0
MOV dword ptr [ESP + 0x3c],EAX
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
PUSH EBP
PUSH 0x5
PUSH 0x0
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x40]
CALL 0x001e98f0
ADD ESP,0x40
MOVZX EAX,byte ptr [ESP + 0x2]
MOV byte ptr [ESP + 0x3],AL
LEA EAX,[EDI + 0x1]
CMP ESI,EDI
JNZ 0x0005063d
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x2c]
MOV byte ptr [ESP + 0x2],0x0
TEST EAX,EAX
JNZ 0x000506a1
SUB ESP,0xc
PUSH 0x368
CALL 0x002465f0
MOV ECX,dword ptr [EBP + 0xc]
ADD ESP,0x10
MOV dword ptr [EBP + 0x2c],EAX
MOV dword ptr [ESP + 0x14],ECX
ADD EAX,ECX
CMP ESI,EDI
JNZ 0x000506b2
LEA ESI,[ESI]
SUB ESP,0x8
PUSH ESI
PUSH EAX
CALL dword ptr [ESP + 0x6c]
ADD ESP,0x10
JMP 0x000506be
SUB ESP,0x4
LEA EAX,[EBX + 0xffee1e60]
PUSH EAX
LEA EAX,[EBX + 0xffee2e5c]
PUSH 0x231
PUSH EAX
CALL 0x000da200
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)\n\n{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3\nFUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)\n\n{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)" identifier (parameter_list "(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "code *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "code *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte local_4a;" type_identifier identifier ;) (declaration "byte local_49;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "char local_2c [24];" primitive_type (array_declarator "local_2c [24]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x505ad;" (assignment_expression "uStack_14 = 0x505ad" identifier = number_literal) ;) (expression_statement "__n = strlen(param_3);" (assignment_expression "__n = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "memcpy(local_2c,param_3,__n);" (call_expression "memcpy(local_2c,param_3,__n)" identifier (argument_list "(local_2c,param_3,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_2c[__n + 2] = '\0';" (assignment_expression "local_2c[__n + 2] = '\0'" (subscript_expression "local_2c[__n + 2]" identifier [ (binary_expression "__n + 2" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_49 = 0;" (assignment_expression "local_49 = 0" identifier = number_literal) ;) (if_statement "if (param_5 < param_4) {\n    return;\n  }" if (parenthesized_expression "(param_5 < param_4)" ( (binary_expression "param_5 < param_4" identifier < identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );" do (compound_statement "{\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  }" { (expression_statement "cVar1 = (char)(param_4 / 10);" (assignment_expression "cVar1 = (char)(param_4 / 10)" identifier = (cast_expression "(char)(param_4 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_4 / 10)" ( (binary_expression "param_4 / 10" identifier / number_literal) )))) ;) (expression_statement "local_2c[__n] = cVar1 + '0';" (assignment_expression "local_2c[__n] = cVar1 + '0'" (subscript_expression "local_2c[__n]" identifier [ identifier ]) = (binary_expression "cVar1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';" (assignment_expression "local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0'" (subscript_expression "local_2c[__n + 1]" identifier [ (binary_expression "__n + 1" identifier + number_literal) ]) = (binary_expression "(char)param_4 + cVar1 * -10 + '0'" (binary_expression "(char)param_4 + cVar1 * -10" (cast_expression "(char)param_4" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "cVar1 * -10" identifier * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "iVar2 = FUN_001e9100(param_2,local_2c,0);" (assignment_expression "iVar2 = FUN_001e9100(param_2,local_2c,0)" identifier = (call_expression "FUN_001e9100(param_2,local_2c,0)" identifier (argument_list "(param_2,local_2c,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }" { (labeled_statement "LAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" statement_identifier : (if_statement "if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" if (parenthesized_expression "(local_49 != 0)" ( (binary_expression "local_49 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c)" identifier = (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) ))))) ;) (expression_statement "local_4a = 0;" (assignment_expression "local_4a = 0" identifier = number_literal) ;) (goto_statement "goto joined_r0x00050752;" goto statement_identifier ;) }))) }) (else_clause "else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" else (compound_statement "{\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" { (if_statement "if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" if (parenthesized_expression "((*(byte *)(iVar2 + 0x2a) & 7) == 0)" ( (binary_expression "(*(byte *)(iVar2 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar2 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar2 + 0x2a)" * (cast_expression "(byte *)(iVar2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2a)" ( (binary_expression "iVar2 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }" { (expression_statement "local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;" (assignment_expression "local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0" identifier = (binary_expression "*(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0" (binary_expression "*(byte *)(iVar2 + 0x2b) >> 5" (pointer_expression "*(byte *)(iVar2 + 0x2b)" * (cast_expression "(byte *)(iVar2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2b)" ( (binary_expression "iVar2 + 0x2b" identifier + number_literal) )))) >> number_literal) & (binary_expression "*(int *)(iVar2 + 0xc) == 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) == number_literal))) ;) (if_statement "if (local_4a == 0) goto LAB_00050627;" if (parenthesized_expression "(local_4a == 0)" ( (binary_expression "local_4a == 0" identifier == number_literal) )) (goto_statement "goto LAB_00050627;" goto statement_identifier ;)) }) (else_clause "else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" else (compound_statement "{\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" { (expression_statement "local_4a = 1;" (assignment_expression "local_4a = 1" identifier = number_literal) ;) (if_statement "if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;" if (parenthesized_expression "((*(byte *)(iVar2 + 0x2a) & 7) != 4)" ( (binary_expression "(*(byte *)(iVar2 + 0x2a) & 7) != 4" (parenthesized_expression "(*(byte *)(iVar2 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar2 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar2 + 0x2a)" * (cast_expression "(byte *)(iVar2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2a)" ( (binary_expression "iVar2 + 0x2a" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00050627;" goto statement_identifier ;)) }))) (expression_statement "iVar2 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c)" identifier = (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) ))))) ;) (labeled_statement "joined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" statement_identifier : (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }" { (expression_statement "iVar2 = FUN_002465f0(0x368);" (assignment_expression "iVar2 = FUN_002465f0(0x368)" identifier = (call_expression "FUN_002465f0(0x368)" identifier (argument_list "(0x368)" ( number_literal )))) ;) (expression_statement "local_38 = *(int *)(param_1 + 0xc);" (assignment_expression "local_38 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar2" (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) )))) = identifier) ;) (expression_statement "iVar2 = iVar2 + local_38;" (assignment_expression "iVar2 = iVar2 + local_38" identifier = (binary_expression "iVar2 + local_38" identifier + identifier)) ;) (if_statement "if (param_5 != param_4) goto LAB_000506b2;" if (parenthesized_expression "(param_5 != param_4)" ( (binary_expression "param_5 != param_4" identifier != identifier) )) (goto_statement "goto LAB_000506b2;" goto statement_identifier ;)) (labeled_statement "LAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);" statement_identifier : (expression_statement "iVar2 = (*param_7)(iVar2,param_5);" (assignment_expression "iVar2 = (*param_7)(iVar2,param_5)" identifier = (call_expression "(*param_7)(iVar2,param_5)" (parenthesized_expression "(*param_7)" ( (pointer_expression "*param_7" * identifier) )) (argument_list "(iVar2,param_5)" ( identifier , identifier )))) ;)) }) (else_clause "else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" else (compound_statement "{\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" { (expression_statement "local_38 = *(int *)(param_1 + 0xc);" (assignment_expression "local_38 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = iVar2 + local_38;" (assignment_expression "iVar2 = iVar2 + local_38" identifier = (binary_expression "iVar2 + local_38" identifier + identifier)) ;) (if_statement "if (param_5 == param_4) goto LAB_00050780;" if (parenthesized_expression "(param_5 == param_4)" ( (binary_expression "param_5 == param_4" identifier == identifier) )) (goto_statement "goto LAB_00050780;" goto statement_identifier ;)) (labeled_statement "LAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);" statement_identifier : (expression_statement "iVar2 = (*param_6)(iVar2,param_4);" (assignment_expression "iVar2 = (*param_6)(iVar2,param_4)" identifier = (call_expression "(*param_6)(iVar2,param_4)" (parenthesized_expression "(*param_6)" ( (pointer_expression "*param_6" * identifier) )) (argument_list "(iVar2,param_4)" ( identifier , identifier )))) ;)) })))) (expression_statement "iVar2 = iVar2 - *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = iVar2 - *(int *)(param_1 + 0x2c)" identifier = (binary_expression "iVar2 - *(int *)(param_1 + 0x2c)" identifier - (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) )))))) ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 2) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 2) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 2" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }" { comment (expression_statement "FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");" (call_expression "FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child")" identifier (argument_list "("../../gold/output.h",0x231,"set_current_data_size_for_child")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""set_current_data_size_for_child"" " string_content ") ))) ;) })) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_49 = 1;" (assignment_expression "local_49 = 1" identifier = number_literal) ;) (if_statement "if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }" if (parenthesized_expression "(local_4a != 0)" ( (binary_expression "local_4a != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }" { (expression_statement "FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);" (call_expression "FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0)" identifier (argument_list "(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0)" ( identifier , identifier , number_literal , number_literal , identifier , identifier , number_literal , (binary_expression "iVar2 - local_38" identifier - identifier) , number_literal , number_literal , number_literal , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_49 = local_4a;" (assignment_expression "local_49 = local_4a" identifier = identifier) ;) })) }))) (if_statement "if (param_5 == param_4) {\n      return;\n    }" if (parenthesized_expression "(param_5 == param_4)" ( (binary_expression "param_5 == param_4" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void savres_define(Output_data_save_res<64,_false> * this, Symbol_table\n   * symtab, char * name, uint lo, uint hi, _func_uchar_ptr_uchar_ptr_int * write_ent,\n   _func_uchar_ptr_uchar_ptr_int * write_tail) */\n\nvoid __thiscall\nanon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::savres_define\n          (Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,\n          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)\n\n{\n  char sym [16];\n  \n}\n\n" comment comment (declaration "void __thiscall\nanon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::savres_define\n          (Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,\n          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)\n\n{\n  char sym [16];" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_2af53c::" identifier . identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::savres_define\n          (Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,\n          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)\n\n{\n  char" identifier > : : (function_declarator "savres_define\n          (Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,\n          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)" identifier (parameter_list "(Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,\n          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)" ( (parameter_declaration "Output_data_save_res" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol_table *symtab" type_identifier (pointer_declarator "*symtab" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "uint lo" type_identifier identifier) , (parameter_declaration "uint hi" type_identifier identifier) , (parameter_declaration "_func_uchar_ptr_uchar_ptr_int *write_ent" type_identifier (pointer_declarator "*write_ent" * identifier)) , (parameter_declaration "_func_uchar_ptr_uchar_ptr_int *write_tail" type_identifier (pointer_declarator "*write_tail" * identifier)) ))) { primitive_type) (array_declarator "sym [16]" identifier [ number_literal ]) ;) (ERROR "}" }))
(translation_unit "void __regparm3\nFUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)\n\n{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}\n\n" (function_definition "void __regparm3\nFUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)\n\n{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)" identifier (parameter_list "(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "code *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "code *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte local_4a;" type_identifier identifier ;) (declaration "byte local_49;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "char local_2c [24];" primitive_type (array_declarator "local_2c [24]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x505ad;" (assignment_expression "uStack_14 = 0x505ad" identifier = number_literal) ;) (expression_statement "__n = strlen(param_3);" (assignment_expression "__n = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "memcpy(local_2c,param_3,__n);" (call_expression "memcpy(local_2c,param_3,__n)" identifier (argument_list "(local_2c,param_3,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_2c[__n + 2] = '\0';" (assignment_expression "local_2c[__n + 2] = '\0'" (subscript_expression "local_2c[__n + 2]" identifier [ (binary_expression "__n + 2" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_49 = 0;" (assignment_expression "local_49 = 0" identifier = number_literal) ;) (if_statement "if (param_5 < param_4) {\n    return;\n  }" if (parenthesized_expression "(param_5 < param_4)" ( (binary_expression "param_5 < param_4" identifier < identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );" do (compound_statement "{\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  }" { (expression_statement "cVar1 = (char)(param_4 / 10);" (assignment_expression "cVar1 = (char)(param_4 / 10)" identifier = (cast_expression "(char)(param_4 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_4 / 10)" ( (binary_expression "param_4 / 10" identifier / number_literal) )))) ;) (expression_statement "local_2c[__n] = cVar1 + '0';" (assignment_expression "local_2c[__n] = cVar1 + '0'" (subscript_expression "local_2c[__n]" identifier [ identifier ]) = (binary_expression "cVar1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';" (assignment_expression "local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0'" (subscript_expression "local_2c[__n + 1]" identifier [ (binary_expression "__n + 1" identifier + number_literal) ]) = (binary_expression "(char)param_4 + cVar1 * -10 + '0'" (binary_expression "(char)param_4 + cVar1 * -10" (cast_expression "(char)param_4" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "cVar1 * -10" identifier * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "iVar2 = FUN_001e9100(param_2,local_2c,0);" (assignment_expression "iVar2 = FUN_001e9100(param_2,local_2c,0)" identifier = (call_expression "FUN_001e9100(param_2,local_2c,0)" identifier (argument_list "(param_2,local_2c,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }" { (labeled_statement "LAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" statement_identifier : (if_statement "if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" if (parenthesized_expression "(local_49 != 0)" ( (binary_expression "local_49 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c)" identifier = (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) ))))) ;) (expression_statement "local_4a = 0;" (assignment_expression "local_4a = 0" identifier = number_literal) ;) (goto_statement "goto joined_r0x00050752;" goto statement_identifier ;) }))) }) (else_clause "else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" else (compound_statement "{\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" { (if_statement "if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" if (parenthesized_expression "((*(byte *)(iVar2 + 0x2a) & 7) == 0)" ( (binary_expression "(*(byte *)(iVar2 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar2 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar2 + 0x2a)" * (cast_expression "(byte *)(iVar2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2a)" ( (binary_expression "iVar2 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }" { (expression_statement "local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;" (assignment_expression "local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0" identifier = (binary_expression "*(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0" (binary_expression "*(byte *)(iVar2 + 0x2b) >> 5" (pointer_expression "*(byte *)(iVar2 + 0x2b)" * (cast_expression "(byte *)(iVar2 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2b)" ( (binary_expression "iVar2 + 0x2b" identifier + number_literal) )))) >> number_literal) & (binary_expression "*(int *)(iVar2 + 0xc) == 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) == number_literal))) ;) (if_statement "if (local_4a == 0) goto LAB_00050627;" if (parenthesized_expression "(local_4a == 0)" ( (binary_expression "local_4a == 0" identifier == number_literal) )) (goto_statement "goto LAB_00050627;" goto statement_identifier ;)) }) (else_clause "else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" else (compound_statement "{\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" { (expression_statement "local_4a = 1;" (assignment_expression "local_4a = 1" identifier = number_literal) ;) (if_statement "if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;" if (parenthesized_expression "((*(byte *)(iVar2 + 0x2a) & 7) != 4)" ( (binary_expression "(*(byte *)(iVar2 + 0x2a) & 7) != 4" (parenthesized_expression "(*(byte *)(iVar2 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar2 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar2 + 0x2a)" * (cast_expression "(byte *)(iVar2 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2a)" ( (binary_expression "iVar2 + 0x2a" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00050627;" goto statement_identifier ;)) }))) (expression_statement "iVar2 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c)" identifier = (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) ))))) ;) (labeled_statement "joined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" statement_identifier : (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }" { (expression_statement "iVar2 = FUN_002465f0(0x368);" (assignment_expression "iVar2 = FUN_002465f0(0x368)" identifier = (call_expression "FUN_002465f0(0x368)" identifier (argument_list "(0x368)" ( number_literal )))) ;) (expression_statement "local_38 = *(int *)(param_1 + 0xc);" (assignment_expression "local_38 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar2" (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) )))) = identifier) ;) (expression_statement "iVar2 = iVar2 + local_38;" (assignment_expression "iVar2 = iVar2 + local_38" identifier = (binary_expression "iVar2 + local_38" identifier + identifier)) ;) (if_statement "if (param_5 != param_4) goto LAB_000506b2;" if (parenthesized_expression "(param_5 != param_4)" ( (binary_expression "param_5 != param_4" identifier != identifier) )) (goto_statement "goto LAB_000506b2;" goto statement_identifier ;)) (labeled_statement "LAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);" statement_identifier : (expression_statement "iVar2 = (*param_7)(iVar2,param_5);" (assignment_expression "iVar2 = (*param_7)(iVar2,param_5)" identifier = (call_expression "(*param_7)(iVar2,param_5)" (parenthesized_expression "(*param_7)" ( (pointer_expression "*param_7" * identifier) )) (argument_list "(iVar2,param_5)" ( identifier , identifier )))) ;)) }) (else_clause "else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" else (compound_statement "{\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" { (expression_statement "local_38 = *(int *)(param_1 + 0xc);" (assignment_expression "local_38 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = iVar2 + local_38;" (assignment_expression "iVar2 = iVar2 + local_38" identifier = (binary_expression "iVar2 + local_38" identifier + identifier)) ;) (if_statement "if (param_5 == param_4) goto LAB_00050780;" if (parenthesized_expression "(param_5 == param_4)" ( (binary_expression "param_5 == param_4" identifier == identifier) )) (goto_statement "goto LAB_00050780;" goto statement_identifier ;)) (labeled_statement "LAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);" statement_identifier : (expression_statement "iVar2 = (*param_6)(iVar2,param_4);" (assignment_expression "iVar2 = (*param_6)(iVar2,param_4)" identifier = (call_expression "(*param_6)(iVar2,param_4)" (parenthesized_expression "(*param_6)" ( (pointer_expression "*param_6" * identifier) )) (argument_list "(iVar2,param_4)" ( identifier , identifier )))) ;)) })))) (expression_statement "iVar2 = iVar2 - *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = iVar2 - *(int *)(param_1 + 0x2c)" identifier = (binary_expression "iVar2 - *(int *)(param_1 + 0x2c)" identifier - (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) )))))) ;) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 2) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 2) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 2" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }" { (expression_statement "FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");" (call_expression "FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child")" identifier (argument_list "("../../gold/output.h",0x231,"set_current_data_size_for_child")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""set_current_data_size_for_child"" " string_content ") ))) ;) })) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_49 = 1;" (assignment_expression "local_49 = 1" identifier = number_literal) ;) (if_statement "if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }" if (parenthesized_expression "(local_4a != 0)" ( (binary_expression "local_4a != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }" { (expression_statement "FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);" (call_expression "FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0)" identifier (argument_list "(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0)" ( identifier , identifier , number_literal , number_literal , identifier , identifier , number_literal , (binary_expression "iVar2 - local_38" identifier - identifier) , number_literal , number_literal , number_literal , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_49 = local_4a;" (assignment_expression "local_49 = local_4a" identifier = identifier) ;) })) }))) (if_statement "if (param_5 == param_4) {\n      return;\n    }" if (parenthesized_expression "(param_5 == param_4)" ( (binary_expression "param_5 == param_4" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT / LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression IDENT + (char_literal ' character '))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (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 IDENT = LIT) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) ;)) }) (else_clause else (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 IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) ;)) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , IDENT , IDENT , LIT , (binary_expression IDENT - IDENT) , LIT , LIT , LIT , LIT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3\nFUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)\n\n{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000505a0(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)" (identifier "FUN_000505a0") (parameter_list "(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,\n            code *param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "code *param_6" (type_identifier "code") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) (, ",") (parameter_declaration "code *param_7" (type_identifier "code") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) () ")"))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int iVar2;\n  byte local_4a;\n  byte local_49;\n  int local_38;\n  char local_2c [24];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x505ad;\n  __n = strlen(param_3);\n  memcpy(local_2c,param_3,__n);\n  local_2c[__n + 2] = '\0';\n  local_49 = 0;\n  if (param_5 < param_4) {\n    return;\n  }\n  do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte local_4a;" (type_identifier "byte") (identifier "local_4a") (; ";")) (declaration "byte local_49;" (type_identifier "byte") (identifier "local_49") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "char local_2c [24];" (primitive_type "char") (array_declarator "local_2c [24]" (identifier "local_2c") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x505ad;" (assignment_expression "uStack_14 = 0x505ad" (identifier "uStack_14") (= "=") (number_literal "0x505ad")) (; ";")) (expression_statement "__n = strlen(param_3);" (assignment_expression "__n = strlen(param_3)" (identifier "__n") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "memcpy(local_2c,param_3,__n);" (call_expression "memcpy(local_2c,param_3,__n)" (identifier "memcpy") (argument_list "(local_2c,param_3,__n)" (( "(") (identifier "local_2c") (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "local_2c[__n + 2] = '\0';" (assignment_expression "local_2c[__n + 2] = '\0'" (subscript_expression "local_2c[__n + 2]" (identifier "local_2c") ([ "[") (binary_expression "__n + 2" (identifier "__n") (+ "+") (number_literal "2")) (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "local_49 = 0;" (assignment_expression "local_49 = 0" (identifier "local_49") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_5 < param_4) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_5 < param_4)" (( "(") (binary_expression "param_5 < param_4" (identifier "param_5") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    cVar1 = (char)(param_4 / 10);\n    local_2c[__n] = cVar1 + '0';\n    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';\n    iVar2 = FUN_001e9100(param_2,local_2c,0);\n    if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }\n    if (param_5 == param_4) {\n      return;\n    }\n    param_4 = param_4 + 1;\n  }" ({ "{") (expression_statement "cVar1 = (char)(param_4 / 10);" (assignment_expression "cVar1 = (char)(param_4 / 10)" (identifier "cVar1") (= "=") (cast_expression "(char)(param_4 / 10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_4 / 10)" (( "(") (binary_expression "param_4 / 10" (identifier "param_4") (/ "/") (number_literal "10")) () ")")))) (; ";")) (expression_statement "local_2c[__n] = cVar1 + '0';" (assignment_expression "local_2c[__n] = cVar1 + '0'" (subscript_expression "local_2c[__n]" (identifier "local_2c") ([ "[") (identifier "__n") (] "]")) (= "=") (binary_expression "cVar1 + '0'" (identifier "cVar1") (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';" (assignment_expression "local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0'" (subscript_expression "local_2c[__n + 1]" (identifier "local_2c") ([ "[") (binary_expression "__n + 1" (identifier "__n") (+ "+") (number_literal "1")) (] "]")) (= "=") (binary_expression "(char)param_4 + cVar1 * -10 + '0'" (binary_expression "(char)param_4 + cVar1 * -10" (cast_expression "(char)param_4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_4")) (+ "+") (binary_expression "cVar1 * -10" (identifier "cVar1") (* "*") (number_literal "-10"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "iVar2 = FUN_001e9100(param_2,local_2c,0);" (assignment_expression "iVar2 = FUN_001e9100(param_2,local_2c,0)" (identifier "iVar2") (= "=") (call_expression "FUN_001e9100(param_2,local_2c,0)" (identifier "FUN_001e9100") (argument_list "(param_2,local_2c,0)" (( "(") (identifier "param_2") (, ",") (identifier "local_2c") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }\n    else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }\n    }" ({ "{") (labeled_statement "LAB_00050627:\n      if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" (statement_identifier "LAB_00050627") (: ":") (if_statement "if (local_49 != 0) {\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" (if "if") (parenthesized_expression "(local_49 != 0)" (( "(") (binary_expression "local_49 != 0" (identifier "local_49") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = *(int *)(param_1 + 0x2c);\n        local_4a = 0;\n        goto joined_r0x00050752;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "local_4a = 0;" (assignment_expression "local_4a = 0" (identifier "local_4a") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto joined_r0x00050752;" (goto "goto") (statement_identifier "joined_r0x00050752") (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" (else "else") (compound_statement "{\n      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }\n      iVar2 = *(int *)(param_1 + 0x2c);\njoined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }\n      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);\n      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }\n      *(int *)(param_1 + 0xc) = iVar2;\n      *(undefined4 *)(param_1 + 0x10) = 0;\n      local_49 = 1;\n      if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }\n    }" ({ "{") (if_statement "if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }\n      else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" (if "if") (parenthesized_expression "((*(byte *)(iVar2 + 0x2a) & 7) == 0)" (( "(") (binary_expression "(*(byte *)(iVar2 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(iVar2 + 0x2a) & 7)" (( "(") (binary_expression "*(byte *)(iVar2 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar2 + 0x2a)" (* "*") (cast_expression "(byte *)(iVar2 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2a)" (( "(") (binary_expression "iVar2 + 0x2a" (identifier "iVar2") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "7")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;\n        if (local_4a == 0) goto LAB_00050627;\n      }" ({ "{") (expression_statement "local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;" (assignment_expression "local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0" (identifier "local_4a") (= "=") (binary_expression "*(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0" (binary_expression "*(byte *)(iVar2 + 0x2b) >> 5" (pointer_expression "*(byte *)(iVar2 + 0x2b)" (* "*") (cast_expression "(byte *)(iVar2 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2b)" (( "(") (binary_expression "iVar2 + 0x2b" (identifier "iVar2") (+ "+") (number_literal "0x2b")) () ")")))) (>> ">>") (number_literal "5")) (& "&") (binary_expression "*(int *)(iVar2 + 0xc) == 0" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")))) (; ";")) (if_statement "if (local_4a == 0) goto LAB_00050627;" (if "if") (parenthesized_expression "(local_4a == 0)" (( "(") (binary_expression "local_4a == 0" (identifier "local_4a") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00050627;" (goto "goto") (statement_identifier "LAB_00050627") (; ";"))) (} "}")) (else_clause "else {\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" (else "else") (compound_statement "{\n        local_4a = 1;\n        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;\n      }" ({ "{") (expression_statement "local_4a = 1;" (assignment_expression "local_4a = 1" (identifier "local_4a") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;" (if "if") (parenthesized_expression "((*(byte *)(iVar2 + 0x2a) & 7) != 4)" (( "(") (binary_expression "(*(byte *)(iVar2 + 0x2a) & 7) != 4" (parenthesized_expression "(*(byte *)(iVar2 + 0x2a) & 7)" (( "(") (binary_expression "*(byte *)(iVar2 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar2 + 0x2a)" (* "*") (cast_expression "(byte *)(iVar2 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2a)" (( "(") (binary_expression "iVar2 + 0x2a" (identifier "iVar2") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "4")) () ")")) (goto_statement "goto LAB_00050627;" (goto "goto") (statement_identifier "LAB_00050627") (; ";"))) (} "}")))) (expression_statement "iVar2 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2c)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00050752:\n      if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" (statement_identifier "joined_r0x00050752") (: ":") (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }\n      else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = FUN_002465f0(0x368);\n        local_38 = *(int *)(param_1 + 0xc);\n        *(int *)(param_1 + 0x2c) = iVar2;\n        iVar2 = iVar2 + local_38;\n        if (param_5 != param_4) goto LAB_000506b2;\nLAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);\n      }" ({ "{") (expression_statement "iVar2 = FUN_002465f0(0x368);" (assignment_expression "iVar2 = FUN_002465f0(0x368)" (identifier "iVar2") (= "=") (call_expression "FUN_002465f0(0x368)" (identifier "FUN_002465f0") (argument_list "(0x368)" (( "(") (number_literal "0x368") () ")")))) (; ";")) (expression_statement "local_38 = *(int *)(param_1 + 0xc);" (assignment_expression "local_38 = *(int *)(param_1 + 0xc)" (identifier "local_38") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar2" (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")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = iVar2 + local_38;" (assignment_expression "iVar2 = iVar2 + local_38" (identifier "iVar2") (= "=") (binary_expression "iVar2 + local_38" (identifier "iVar2") (+ "+") (identifier "local_38"))) (; ";")) (if_statement "if (param_5 != param_4) goto LAB_000506b2;" (if "if") (parenthesized_expression "(param_5 != param_4)" (( "(") (binary_expression "param_5 != param_4" (identifier "param_5") (!= "!=") (identifier "param_4")) () ")")) (goto_statement "goto LAB_000506b2;" (goto "goto") (statement_identifier "LAB_000506b2") (; ";"))) (labeled_statement "LAB_00050780:\n        iVar2 = (*param_7)(iVar2,param_5);" (statement_identifier "LAB_00050780") (: ":") (expression_statement "iVar2 = (*param_7)(iVar2,param_5);" (assignment_expression "iVar2 = (*param_7)(iVar2,param_5)" (identifier "iVar2") (= "=") (call_expression "(*param_7)(iVar2,param_5)" (parenthesized_expression "(*param_7)" (( "(") (pointer_expression "*param_7" (* "*") (identifier "param_7")) () ")")) (argument_list "(iVar2,param_5)" (( "(") (identifier "iVar2") (, ",") (identifier "param_5") () ")")))) (; ";"))) (} "}")) (else_clause "else {\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" (else "else") (compound_statement "{\n        local_38 = *(int *)(param_1 + 0xc);\n        iVar2 = iVar2 + local_38;\n        if (param_5 == param_4) goto LAB_00050780;\nLAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);\n      }" ({ "{") (expression_statement "local_38 = *(int *)(param_1 + 0xc);" (assignment_expression "local_38 = *(int *)(param_1 + 0xc)" (identifier "local_38") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar2 = iVar2 + local_38;" (assignment_expression "iVar2 = iVar2 + local_38" (identifier "iVar2") (= "=") (binary_expression "iVar2 + local_38" (identifier "iVar2") (+ "+") (identifier "local_38"))) (; ";")) (if_statement "if (param_5 == param_4) goto LAB_00050780;" (if "if") (parenthesized_expression "(param_5 == param_4)" (( "(") (binary_expression "param_5 == param_4" (identifier "param_5") (== "==") (identifier "param_4")) () ")")) (goto_statement "goto LAB_00050780;" (goto "goto") (statement_identifier "LAB_00050780") (; ";"))) (labeled_statement "LAB_000506b2:\n        iVar2 = (*param_6)(iVar2,param_4);" (statement_identifier "LAB_000506b2") (: ":") (expression_statement "iVar2 = (*param_6)(iVar2,param_4);" (assignment_expression "iVar2 = (*param_6)(iVar2,param_4)" (identifier "iVar2") (= "=") (call_expression "(*param_6)(iVar2,param_4)" (parenthesized_expression "(*param_6)" (( "(") (pointer_expression "*param_6" (* "*") (identifier "param_6")) () ")")) (argument_list "(iVar2,param_4)" (( "(") (identifier "iVar2") (, ",") (identifier "param_4") () ")")))) (; ";"))) (} "}"))))) (expression_statement "iVar2 = iVar2 - *(int *)(param_1 + 0x2c);" (assignment_expression "iVar2 = iVar2 - *(int *)(param_1 + 0x2c)" (identifier "iVar2") (= "=") (binary_expression "iVar2 - *(int *)(param_1 + 0x2c)" (identifier "iVar2") (- "-") (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")) () ")")))))) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1c) & 2) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1c) & 2" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");\n      }" ({ "{") (expression_statement "FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");" (call_expression "FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child")" (identifier "FUN_000da200") (argument_list "("../../gold/output.h",0x231,"set_current_data_size_for_child")" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0x231") (, ",") (string_literal ""set_current_data_size_for_child"" (" """) (string_content "set_current_data_size_for_child") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0xc) = iVar2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_49 = 1;" (assignment_expression "local_49 = 1" (identifier "local_49") (= "=") (number_literal "1")) (; ";")) (if_statement "if (local_4a != 0) {\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }" (if "if") (parenthesized_expression "(local_4a != 0)" (( "(") (binary_expression "local_4a != 0" (identifier "local_4a") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);\n        local_49 = local_4a;\n      }" ({ "{") (expression_statement "FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);" (call_expression "FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0)" (identifier "FUN_001e98f0") (argument_list "(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0)" (( "(") (identifier "param_2") (, ",") (identifier "local_2c") (, ",") (number_literal "0") (, ",") (number_literal "5") (, ",") (identifier "param_1") (, ",") (identifier "local_38") (, ",") (number_literal "0") (, ",") (binary_expression "iVar2 - local_38" (identifier "iVar2") (- "-") (identifier "local_38")) (, ",") (number_literal "0") (, ",") (number_literal "2") (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_49 = local_4a;" (assignment_expression "local_49 = local_4a" (identifier "local_49") (= "=") (identifier "local_4a")) (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_5 == param_4) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_5 == param_4)" (( "(") (binary_expression "param_5 == param_4" (identifier "param_5") (== "==") (identifier "param_4")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" (identifier "param_4") (= "=") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void savres_define(Output_data_save_res<64,_false> * this, Symbol_table
   * symtab, char * name, uint lo, uint hi, _func_uchar_ptr_uchar_ptr_int * write_ent,
   _func_uchar_ptr_uchar_ptr_int * write_tail) */

void __thiscall
anon_unknown.dwarf_2af53c::Output_data_save_res<64,_false>::savres_define
          (Output_data_save_res<64,_false> *this,Symbol_table *symtab,char *name,uint lo,uint hi,
          _func_uchar_ptr_uchar_ptr_int *write_ent,_func_uchar_ptr_uchar_ptr_int *write_tail)

{
  char sym [16];
  
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (binary_expression left: (identifier) right: (char_literal (character))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (character))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (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: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_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: (number_literal)) right: (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: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (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))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier))))))) alternative: (else_clause (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: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_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: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (identifier) (identifier) (number_literal) (binary_expression left: (identifier) right: (identifier)) (number_literal) (number_literal) (number_literal) (number_literal) (number_literal) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

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

void __regparm3
MASKED(int param_1,undefined4 param_2,char *param_3,uint param_4,uint param_5,code *param_6,
            code *param_7)

{
  char cVar1;
  size_t __n;
  int iVar2;
  byte local_4a;
  byte local_49;
  int local_38;
  char local_2c [24];
  undefined4 uStack_14;
  
  uStack_14 = 0x505ad;
  __n = strlen(param_3);
  memcpy(local_2c,param_3,__n);
  local_2c[__n + 2] = '\0';
  local_49 = 0;
  if (param_5 < param_4) {
    return;
  }
  do {
    cVar1 = (char)(param_4 / 10);
    local_2c[__n] = cVar1 + '0';
    local_2c[__n + 1] = (char)param_4 + cVar1 * -10 + '0';
    iVar2 = FUN_001e9100(param_2,local_2c,0);
    if (iVar2 == 0) {
LAB_00050627:
      if (local_49 != 0) {
        iVar2 = *(int *)(param_1 + 0x2c);
        local_4a = 0;
        goto joined_r0x00050752;
      }
    }
    else {
      if ((*(byte *)(iVar2 + 0x2a) & 7) == 0) {
        local_4a = *(byte *)(iVar2 + 0x2b) >> 5 & *(int *)(iVar2 + 0xc) == 0;
        if (local_4a == 0) goto LAB_00050627;
      }
      else {
        local_4a = 1;
        if ((*(byte *)(iVar2 + 0x2a) & 7) != 4) goto LAB_00050627;
      }
      iVar2 = *(int *)(param_1 + 0x2c);
joined_r0x00050752:
      if (iVar2 == 0) {
        iVar2 = FUN_002465f0(0x368);
        local_38 = *(int *)(param_1 + 0xc);
        *(int *)(param_1 + 0x2c) = iVar2;
        iVar2 = iVar2 + local_38;
        if (param_5 != param_4) goto LAB_000506b2;
LAB_00050780:
        iVar2 = (*param_7)(iVar2,param_5);
      }
      else {
        local_38 = *(int *)(param_1 + 0xc);
        iVar2 = iVar2 + local_38;
        if (param_5 == param_4) goto LAB_00050780;
LAB_000506b2:
        iVar2 = (*param_6)(iVar2,param_4);
      }
      iVar2 = iVar2 - *(int *)(param_1 + 0x2c);
      if ((*(byte *)(param_1 + 0x1c) & 2) != 0) {
                    /* WARNING: Subroutine does not return */
        FUN_000da200("../../gold/output.h",0x231,"set_current_data_size_for_child");
      }
      *(int *)(param_1 + 0xc) = iVar2;
      *(undefined4 *)(param_1 + 0x10) = 0;
      local_49 = 1;
      if (local_4a != 0) {
        FUN_001e98f0(param_2,local_2c,0,5,param_1,local_38,0,iVar2 - local_38,0,2,1,2,0,0,0);
        local_49 = local_4a;
      }
    }
    if (param_5 == param_4) {
      return;
    }
    param_4 = param_4 + 1;
  } while( true );
}

