
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Output_section * create_shstrtab(Layout * this) */

Output_section * __thiscall gold::Layout::create_shstrtab(Layout *this)

{
  undefined1 *puVar1;
  char *name;
  Output_section *this_00;
  Output_section_data *posd;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  name = Stringpool_template<char>::add(&this->namepool_,".shstrtab",false,(Key *)0x0);
  this_00 = make_output_section(this,name,3,0,ORDER_INVALID,false);
  bVar5 = false;
  bVar6 = parameters->options_ == (General_options *)0x0;
  if (bVar6) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  iVar2 = 5;
  pbVar3 = (byte *)(parameters->options_->compress_debug_sections_).value;
  pbVar4 = (byte *)0x28e9b2;
  do {
    if (iVar2 == 0) break;
    iVar2 = iVar2 + -1;
    bVar5 = *pbVar3 < *pbVar4;
    bVar6 = *pbVar3 == *pbVar4;
    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
    pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;
  } while (bVar6);
  if ((!bVar5 && !bVar6) != bVar5) {
    this_00->field_0x90 = this_00->field_0x90 | 0x10;
  }
  posd = (Output_section_data *)operator_new(0x30);
  puVar1 = &(posd->super_Output_data).field_0x1c;
  *puVar1 = *puVar1 & 0xe0;
  posd[1].super_Output_data._vptr_Output_data = (_func_int_varargs **)&this->namepool_;
  *(undefined4 *)&(posd->super_Output_data).address_ = 0;
  *(undefined4 *)((int)&(posd->super_Output_data).address_ + 4) = 0;
  *(undefined4 *)&(posd->super_Output_data).data_size_ = 0;
  *(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4) = 0;
  *(undefined4 *)&(posd->super_Output_data).offset_ = 0xffffffff;
  *(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4) = 0xffffffff;
  posd->output_section_ = (Output_section *)0x0;
  *(undefined4 *)&posd->addralign_ = 1;
  *(undefined4 *)((int)&posd->addralign_ + 4) = 0;
  (posd->super_Output_data)._vptr_Output_data =
       (_func_int_varargs **)&PTR__Output_data_strtab_00383cdc;
  Output_section::add_output_section_data(this_00,posd);
  return this_00;
}



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

int FUN_0009cf30(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);
  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);
  bVar7 = false;
  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;
  if (bVar8) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/parameters.h",0x5c,"options");
  }
  iVar4 = 5;
  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);
  pbVar6 = (byte *)0x28e9b2;
  do {
    if (iVar4 == 0) break;
    iVar4 = iVar4 + -1;
    bVar7 = *pbVar5 < *pbVar6;
    bVar8 = *pbVar5 == *pbVar6;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  if ((!bVar7 && !bVar8) != bVar7) {
    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;
  }
  puVar3 = (undefined4 *)FUN_001e5200(0x30);
  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;
  puVar3[0xb] = param_1 + 8;
  puVar3[1] = 0;
  puVar3[2] = 0;
  puVar3[3] = 0;
  puVar3[4] = 0;
  puVar3[5] = 0xffffffff;
  puVar3[6] = 0xffffffff;
  puVar3[8] = 0;
  puVar3[9] = 1;
  puVar3[10] = 0;
  *puVar3 = &PTR_FUN_00383cdc;
  FUN_000f2600(iVar2,puVar3);
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x2f20c7
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x30]
LEA EAX,[EBP + 0x8]
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,EAX
LEA EAX,[EBX + 0xffef1579]
PUSH 0x0
PUSH 0x0
PUSH EAX
PUSH ECX
CALL 0x00174930
ADD ESP,0xc
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH 0x3
PUSH EAX
PUSH EBP
CALL 0x0009b860
ADD ESP,0x20
MOV EBP,EAX
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0009d021
MOV ESI,dword ptr [EAX + 0x99c]
MOV ECX,0x5
LEA EDI,[EBX + 0xffeff9b2]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x0009cfaf
OR byte ptr [EBP + 0x90],0x10
SUB ESP,0xc
PUSH 0x30
CALL 0x001e5200
LEA EDX,[EBX + 0xffff4cd4]
MOV ESI,dword ptr [ESP + 0x1c]
AND byte ptr [EAX + 0x1c],0xe0
ADD EDX,0x8
MOV dword ptr [EAX + 0x2c],ESI
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EAX + 0x14],0xffffffff
MOV dword ptr [EAX + 0x18],0xffffffff
MOV dword ptr [EAX + 0x20],0x0
MOV dword ptr [EAX + 0x24],0x1
MOV dword ptr [EAX + 0x28],0x0
MOV dword ptr [EAX],EDX
POP EDX
POP ECX
PUSH EAX
PUSH EBP
CALL 0x000f2600
ADD ESP,0x2c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffefca48]
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xffef8210]
PUSH 0x5c
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0009cf30(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_0009cf30(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0009cf30(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);" (assignment_expression "uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0)" identifier = (call_expression "FUN_00174930(param_1 + 8,".shstrtab",0,0)" identifier (argument_list "(param_1 + 8,".shstrtab",0,0)" ( (binary_expression "param_1 + 8" identifier + number_literal) , (string_literal "".shstrtab"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);" (assignment_expression "iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0)" identifier = (call_expression "FUN_0009b860(param_1,uVar1,3,0,0,0,0)" identifier (argument_list "(param_1,uVar1,3,0,0,0,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , number_literal )))) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = *(int *)(DAT_0038f378 + 8) == 0;" (assignment_expression "bVar8 = *(int *)(DAT_0038f378 + 8) == 0" identifier = (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if (bVar8) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (expression_statement "iVar4 = 5;" (assignment_expression "iVar4 = 5" identifier = number_literal) ;) (expression_statement "pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);" (assignment_expression "pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" identifier = (pointer_expression "*(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" * (cast_expression "(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x99c)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x99c" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pbVar6 = (byte *)0x28e9b2;" (assignment_expression "pbVar6 = (byte *)0x28e9b2" identifier = (cast_expression "(byte *)0x28e9b2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }" if (parenthesized_expression "((!bVar7 && !bVar8) != bVar7)" ( (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) != identifier) )) (compound_statement "{\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }" { (expression_statement "*(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;" (assignment_expression "*(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10" (pointer_expression "*(byte *)(iVar2 + 0x90)" * (cast_expression "(byte *)(iVar2 + 0x90)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x90)" ( (binary_expression "iVar2 + 0x90" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 0x90) | 0x10" (pointer_expression "*(byte *)(iVar2 + 0x90)" * (cast_expression "(byte *)(iVar2 + 0x90)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x90)" ( (binary_expression "iVar2 + 0x90" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "puVar3 = (undefined4 *)FUN_001e5200(0x30);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5200(0x30)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (expression_statement "*(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;" (assignment_expression "*(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0" (pointer_expression "*(byte *)(puVar3 + 7)" * (cast_expression "(byte *)(puVar3 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 7)" ( (binary_expression "puVar3 + 7" identifier + number_literal) )))) = (binary_expression "*(byte *)(puVar3 + 7) & 0xe0" (pointer_expression "*(byte *)(puVar3 + 7)" * (cast_expression "(byte *)(puVar3 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 7)" ( (binary_expression "puVar3 + 7" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "puVar3[0xb] = param_1 + 8;" (assignment_expression "puVar3[0xb] = param_1 + 8" (subscript_expression "puVar3[0xb]" identifier [ number_literal ]) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[8] = 0;" (assignment_expression "puVar3[8] = 0" (subscript_expression "puVar3[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[9] = 1;" (assignment_expression "puVar3[9] = 1" (subscript_expression "puVar3[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[10] = 0;" (assignment_expression "puVar3[10] = 0" (subscript_expression "puVar3[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = &PTR_FUN_00383cdc;" (assignment_expression "*puVar3 = &PTR_FUN_00383cdc" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&PTR_FUN_00383cdc" & identifier)) ;) (expression_statement "FUN_000f2600(iVar2,puVar3);" (call_expression "FUN_000f2600(iVar2,puVar3)" identifier (argument_list "(iVar2,puVar3)" ( identifier , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: Output_section * create_shstrtab(Layout * this) */\n\nOutput_section * __thiscall gold::Layout::create_shstrtab(Layout *this)\n\n{\n  undefined1 *puVar1;\n  char *name;\n  Output_section *this_00;\n  Output_section_data *posd;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  name = Stringpool_template<char>::add(&this->namepool_,".shstrtab",false,(Key *)0x0);\n  this_00 = make_output_section(this,name,3,0,ORDER_INVALID,false);\n  bVar5 = false;\n  bVar6 = parameters->options_ == (General_options *)0x0;\n  if (bVar6) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar2 = 5;\n  pbVar3 = (byte *)(parameters->options_->compress_debug_sections_).value;\n  pbVar4 = (byte *)0x28e9b2;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar5 = *pbVar3 < *pbVar4;\n    bVar6 = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  if ((!bVar5 && !bVar6) != bVar5) {\n    this_00->field_0x90 = this_00->field_0x90 | 0x10;\n  }\n  posd = (Output_section_data *)operator_new(0x30);\n  puVar1 = &(posd->super_Output_data).field_0x1c;\n  *puVar1 = *puVar1 & 0xe0;\n  posd[1].super_Output_data._vptr_Output_data = (_func_int_varargs **)&this->namepool_;\n  *(undefined4 *)&(posd->super_Output_data).address_ = 0;\n  *(undefined4 *)((int)&(posd->super_Output_data).address_ + 4) = 0;\n  *(undefined4 *)&(posd->super_Output_data).data_size_ = 0;\n  *(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4) = 0;\n  *(undefined4 *)&(posd->super_Output_data).offset_ = 0xffffffff;\n  *(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4) = 0xffffffff;\n  posd->output_section_ = (Output_section *)0x0;\n  *(undefined4 *)&posd->addralign_ = 1;\n  *(undefined4 *)((int)&posd->addralign_ + 4) = 0;\n  (posd->super_Output_data)._vptr_Output_data =\n       (_func_int_varargs **)&PTR__Output_data_strtab_00383cdc;\n  Output_section::add_output_section_data(this_00,posd);\n  return this_00;\n}\n\n" comment comment comment (ERROR "Output_section * __thiscall gold::Layout::create_shstrtab(Layout *this)" (binary_expression "Output_section * __thiscall gold::Layout::create_shstrtab(Layout *this" (binary_expression "Output_section * __thiscall" identifier * identifier) (ERROR "gold::Layout::create_shstrtab(Layout" identifier : : identifier : : identifier ( identifier) * identifier) )) (compound_statement "{\n  undefined1 *puVar1;\n  char *name;\n  Output_section *this_00;\n  Output_section_data *posd;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  name = Stringpool_template<char>::add(&this->namepool_,".shstrtab",false,(Key *)0x0);\n  this_00 = make_output_section(this,name,3,0,ORDER_INVALID,false);\n  bVar5 = false;\n  bVar6 = parameters->options_ == (General_options *)0x0;\n  if (bVar6) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar2 = 5;\n  pbVar3 = (byte *)(parameters->options_->compress_debug_sections_).value;\n  pbVar4 = (byte *)0x28e9b2;\n  do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar5 = *pbVar3 < *pbVar4;\n    bVar6 = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);\n  if ((!bVar5 && !bVar6) != bVar5) {\n    this_00->field_0x90 = this_00->field_0x90 | 0x10;\n  }\n  posd = (Output_section_data *)operator_new(0x30);\n  puVar1 = &(posd->super_Output_data).field_0x1c;\n  *puVar1 = *puVar1 & 0xe0;\n  posd[1].super_Output_data._vptr_Output_data = (_func_int_varargs **)&this->namepool_;\n  *(undefined4 *)&(posd->super_Output_data).address_ = 0;\n  *(undefined4 *)((int)&(posd->super_Output_data).address_ + 4) = 0;\n  *(undefined4 *)&(posd->super_Output_data).data_size_ = 0;\n  *(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4) = 0;\n  *(undefined4 *)&(posd->super_Output_data).offset_ = 0xffffffff;\n  *(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4) = 0xffffffff;\n  posd->output_section_ = (Output_section *)0x0;\n  *(undefined4 *)&posd->addralign_ = 1;\n  *(undefined4 *)((int)&posd->addralign_ + 4) = 0;\n  (posd->super_Output_data)._vptr_Output_data =\n       (_func_int_varargs **)&PTR__Output_data_strtab_00383cdc;\n  Output_section::add_output_section_data(this_00,posd);\n  return this_00;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "Output_section *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "Output_section_data *posd;" type_identifier (pointer_declarator "*posd" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "name = Stringpool_template<char>::add(&this->namepool_,".shstrtab",false,(Key *)0x0);" (assignment_expression "name = Stringpool_template<char>::add(&this->namepool_,".shstrtab",false,(Key *)0x0)" identifier = (binary_expression "Stringpool_template<char>::add(&this->namepool_,".shstrtab",false,(Key *)0x0)" (binary_expression "Stringpool_template<char" identifier < identifier) > (ERROR "::" : :) (call_expression "add(&this->namepool_,".shstrtab",false,(Key *)0x0)" identifier (argument_list "(&this->namepool_,".shstrtab",false,(Key *)0x0)" ( (pointer_expression "&this->namepool_" & (field_expression "this->namepool_" identifier -> field_identifier)) , (string_literal "".shstrtab"" " string_content ") , false , (cast_expression "(Key *)0x0" ( (type_descriptor "Key *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))))) ;) (expression_statement "this_00 = make_output_section(this,name,3,0,ORDER_INVALID,false);" (assignment_expression "this_00 = make_output_section(this,name,3,0,ORDER_INVALID,false)" identifier = (call_expression "make_output_section(this,name,3,0,ORDER_INVALID,false)" identifier (argument_list "(this,name,3,0,ORDER_INVALID,false)" ( identifier , identifier , number_literal , number_literal , identifier , false )))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar6 = parameters->options_ == (General_options *)0x0;" (assignment_expression "bVar6 = parameters->options_ == (General_options *)0x0" identifier = (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar6) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;) (expression_statement "pbVar3 = (byte *)(parameters->options_->compress_debug_sections_).value;" (assignment_expression "pbVar3 = (byte *)(parameters->options_->compress_debug_sections_).value" identifier = (cast_expression "(byte *)(parameters->options_->compress_debug_sections_).value" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(parameters->options_->compress_debug_sections_).value" (parenthesized_expression "(parameters->options_->compress_debug_sections_)" ( (field_expression "parameters->options_->compress_debug_sections_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier))) ;) (expression_statement "pbVar4 = (byte *)0x28e9b2;" (assignment_expression "pbVar4 = (byte *)0x28e9b2" identifier = (cast_expression "(byte *)0x28e9b2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar5 = *pbVar3 < *pbVar4;\n    bVar6 = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (iVar2 == 0) break;\n    iVar2 = iVar2 + -1;\n    bVar5 = *pbVar3 < *pbVar4;\n    bVar6 = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n    pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n  }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar6) != bVar5) {\n    this_00->field_0x90 = this_00->field_0x90 | 0x10;\n  }" if (parenthesized_expression "((!bVar5 && !bVar6) != bVar5)" ( (binary_expression "(!bVar5 && !bVar6) != bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) )) (compound_statement "{\n    this_00->field_0x90 = this_00->field_0x90 | 0x10;\n  }" { (expression_statement "this_00->field_0x90 = this_00->field_0x90 | 0x10;" (assignment_expression "this_00->field_0x90 = this_00->field_0x90 | 0x10" (field_expression "this_00->field_0x90" identifier -> field_identifier) = (binary_expression "this_00->field_0x90 | 0x10" (field_expression "this_00->field_0x90" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "posd = (Output_section_data *)operator_new(0x30);" (assignment_expression "posd = (Output_section_data *)operator_new(0x30)" identifier = (cast_expression "(Output_section_data *)operator_new(0x30)" ( (type_descriptor "Output_section_data *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (expression_statement "puVar1 = &(posd->super_Output_data).field_0x1c;" (assignment_expression "puVar1 = &(posd->super_Output_data).field_0x1c" identifier = (pointer_expression "&(posd->super_Output_data).field_0x1c" & (field_expression "(posd->super_Output_data).field_0x1c" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 & 0xe0;" (assignment_expression "*puVar1 = *puVar1 & 0xe0" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 & 0xe0" (pointer_expression "*puVar1" * identifier) & number_literal)) ;) (expression_statement "posd[1].super_Output_data._vptr_Output_data = (_func_int_varargs **)&this->namepool_;" (assignment_expression "posd[1].super_Output_data._vptr_Output_data = (_func_int_varargs **)&this->namepool_" (field_expression "posd[1].super_Output_data._vptr_Output_data" (field_expression "posd[1].super_Output_data" (subscript_expression "posd[1]" identifier [ number_literal ]) . field_identifier) . field_identifier) = (cast_expression "(_func_int_varargs **)&this->namepool_" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&this->namepool_" & (field_expression "this->namepool_" identifier -> field_identifier)))) ;) (expression_statement "*(undefined4 *)&(posd->super_Output_data).address_ = 0;" (assignment_expression "*(undefined4 *)&(posd->super_Output_data).address_ = 0" (pointer_expression "*(undefined4 *)&(posd->super_Output_data).address_" * (cast_expression "(undefined4 *)&(posd->super_Output_data).address_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(posd->super_Output_data).address_" & (field_expression "(posd->super_Output_data).address_" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&(posd->super_Output_data).address_ + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&(posd->super_Output_data).address_ + 4) = 0" (pointer_expression "*(undefined4 *)((int)&(posd->super_Output_data).address_ + 4)" * (cast_expression "(undefined4 *)((int)&(posd->super_Output_data).address_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(posd->super_Output_data).address_ + 4)" ( (binary_expression "(int)&(posd->super_Output_data).address_ + 4" (cast_expression "(int)&(posd->super_Output_data).address_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(posd->super_Output_data).address_" & (field_expression "(posd->super_Output_data).address_" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&(posd->super_Output_data).data_size_ = 0;" (assignment_expression "*(undefined4 *)&(posd->super_Output_data).data_size_ = 0" (pointer_expression "*(undefined4 *)&(posd->super_Output_data).data_size_" * (cast_expression "(undefined4 *)&(posd->super_Output_data).data_size_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(posd->super_Output_data).data_size_" & (field_expression "(posd->super_Output_data).data_size_" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4) = 0" (pointer_expression "*(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4)" * (cast_expression "(undefined4 *)((int)&(posd->super_Output_data).data_size_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(posd->super_Output_data).data_size_ + 4)" ( (binary_expression "(int)&(posd->super_Output_data).data_size_ + 4" (cast_expression "(int)&(posd->super_Output_data).data_size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(posd->super_Output_data).data_size_" & (field_expression "(posd->super_Output_data).data_size_" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&(posd->super_Output_data).offset_ = 0xffffffff;" (assignment_expression "*(undefined4 *)&(posd->super_Output_data).offset_ = 0xffffffff" (pointer_expression "*(undefined4 *)&(posd->super_Output_data).offset_" * (cast_expression "(undefined4 *)&(posd->super_Output_data).offset_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(posd->super_Output_data).offset_" & (field_expression "(posd->super_Output_data).offset_" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4)" * (cast_expression "(undefined4 *)((int)&(posd->super_Output_data).offset_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(posd->super_Output_data).offset_ + 4)" ( (binary_expression "(int)&(posd->super_Output_data).offset_ + 4" (cast_expression "(int)&(posd->super_Output_data).offset_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(posd->super_Output_data).offset_" & (field_expression "(posd->super_Output_data).offset_" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "posd->output_section_ = (Output_section *)0x0;" (assignment_expression "posd->output_section_ = (Output_section *)0x0" (field_expression "posd->output_section_" identifier -> field_identifier) = (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)&posd->addralign_ = 1;" (assignment_expression "*(undefined4 *)&posd->addralign_ = 1" (pointer_expression "*(undefined4 *)&posd->addralign_" * (cast_expression "(undefined4 *)&posd->addralign_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&posd->addralign_" & (field_expression "posd->addralign_" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&posd->addralign_ + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&posd->addralign_ + 4) = 0" (pointer_expression "*(undefined4 *)((int)&posd->addralign_ + 4)" * (cast_expression "(undefined4 *)((int)&posd->addralign_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&posd->addralign_ + 4)" ( (binary_expression "(int)&posd->addralign_ + 4" (cast_expression "(int)&posd->addralign_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&posd->addralign_" & (field_expression "posd->addralign_" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "(posd->super_Output_data)._vptr_Output_data =\n       (_func_int_varargs **)&PTR__Output_data_strtab_00383cdc;" (assignment_expression "(posd->super_Output_data)._vptr_Output_data =\n       (_func_int_varargs **)&PTR__Output_data_strtab_00383cdc" (field_expression "(posd->super_Output_data)._vptr_Output_data" (parenthesized_expression "(posd->super_Output_data)" ( (field_expression "posd->super_Output_data" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(_func_int_varargs **)&PTR__Output_data_strtab_00383cdc" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Output_data_strtab_00383cdc" & identifier))) ;) (labeled_statement "Output_section::add_output_section_data(this_00,posd);" statement_identifier : (ERROR ":" :) (expression_statement "add_output_section_data(this_00,posd);" (call_expression "add_output_section_data(this_00,posd)" identifier (argument_list "(this_00,posd)" ( identifier , identifier ))) ;)) (return_statement "return this_00;" return identifier ;) }))
(translation_unit "int FUN_0009cf30(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}\n\n" (function_definition "int FUN_0009cf30(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0009cf30(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);" (assignment_expression "uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0)" identifier = (call_expression "FUN_00174930(param_1 + 8,".shstrtab",0,0)" identifier (argument_list "(param_1 + 8,".shstrtab",0,0)" ( (binary_expression "param_1 + 8" identifier + number_literal) , (string_literal "".shstrtab"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);" (assignment_expression "iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0)" identifier = (call_expression "FUN_0009b860(param_1,uVar1,3,0,0,0,0)" identifier (argument_list "(param_1,uVar1,3,0,0,0,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , number_literal )))) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = *(int *)(DAT_0038f378 + 8) == 0;" (assignment_expression "bVar8 = *(int *)(DAT_0038f378 + 8) == 0" identifier = (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }" { (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (expression_statement "iVar4 = 5;" (assignment_expression "iVar4 = 5" identifier = number_literal) ;) (expression_statement "pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);" (assignment_expression "pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" identifier = (pointer_expression "*(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" * (cast_expression "(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x99c)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x99c" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pbVar6 = (byte *)0x28e9b2;" (assignment_expression "pbVar6 = (byte *)0x28e9b2" identifier = (cast_expression "(byte *)0x28e9b2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }" if (parenthesized_expression "((!bVar7 && !bVar8) != bVar7)" ( (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) != identifier) )) (compound_statement "{\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }" { (expression_statement "*(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;" (assignment_expression "*(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10" (pointer_expression "*(byte *)(iVar2 + 0x90)" * (cast_expression "(byte *)(iVar2 + 0x90)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x90)" ( (binary_expression "iVar2 + 0x90" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 0x90) | 0x10" (pointer_expression "*(byte *)(iVar2 + 0x90)" * (cast_expression "(byte *)(iVar2 + 0x90)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x90)" ( (binary_expression "iVar2 + 0x90" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "puVar3 = (undefined4 *)FUN_001e5200(0x30);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5200(0x30)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (expression_statement "*(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;" (assignment_expression "*(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0" (pointer_expression "*(byte *)(puVar3 + 7)" * (cast_expression "(byte *)(puVar3 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 7)" ( (binary_expression "puVar3 + 7" identifier + number_literal) )))) = (binary_expression "*(byte *)(puVar3 + 7) & 0xe0" (pointer_expression "*(byte *)(puVar3 + 7)" * (cast_expression "(byte *)(puVar3 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 7)" ( (binary_expression "puVar3 + 7" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "puVar3[0xb] = param_1 + 8;" (assignment_expression "puVar3[0xb] = param_1 + 8" (subscript_expression "puVar3[0xb]" identifier [ number_literal ]) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[8] = 0;" (assignment_expression "puVar3[8] = 0" (subscript_expression "puVar3[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[9] = 1;" (assignment_expression "puVar3[9] = 1" (subscript_expression "puVar3[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[10] = 0;" (assignment_expression "puVar3[10] = 0" (subscript_expression "puVar3[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = &PTR_FUN_00383cdc;" (assignment_expression "*puVar3 = &PTR_FUN_00383cdc" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&PTR_FUN_00383cdc" & identifier)) ;) (expression_statement "FUN_000f2600(iVar2,puVar3);" (call_expression "FUN_000f2600(iVar2,puVar3)" identifier (argument_list "(iVar2,puVar3)" ( identifier , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (string_literal " string_content ") , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0009cf30(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0009cf30(int param_1)" (identifier "FUN_0009cf30") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);\n  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);\n  bVar7 = false;\n  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;\n  if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }\n  iVar4 = 5;\n  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);\n  pbVar6 = (byte *)0x28e9b2;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }\n  puVar3 = (undefined4 *)FUN_001e5200(0x30);\n  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;\n  puVar3[0xb] = param_1 + 8;\n  puVar3[1] = 0;\n  puVar3[2] = 0;\n  puVar3[3] = 0;\n  puVar3[4] = 0;\n  puVar3[5] = 0xffffffff;\n  puVar3[6] = 0xffffffff;\n  puVar3[8] = 0;\n  puVar3[9] = 1;\n  puVar3[10] = 0;\n  *puVar3 = &PTR_FUN_00383cdc;\n  FUN_000f2600(iVar2,puVar3);\n  return iVar2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);" (assignment_expression "uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0)" (identifier "uVar1") (= "=") (call_expression "FUN_00174930(param_1 + 8,".shstrtab",0,0)" (identifier "FUN_00174930") (argument_list "(param_1 + 8,".shstrtab",0,0)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) (, ",") (string_literal "".shstrtab"" (" """) (string_content ".shstrtab") (" """)) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);" (assignment_expression "iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0)" (identifier "iVar2") (= "=") (call_expression "FUN_0009b860(param_1,uVar1,3,0,0,0,0)" (identifier "FUN_0009b860") (argument_list "(param_1,uVar1,3,0,0,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (number_literal "3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar8 = *(int *)(DAT_0038f378 + 8) == 0;" (assignment_expression "bVar8 = *(int *)(DAT_0038f378 + 8) == 0" (identifier "bVar8") (= "=") (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar8) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options");\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options");" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options")" (identifier "FUN_00069d00") (argument_list "("../../gold/parameters.h",0x5c,"options")" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = 5;" (assignment_expression "iVar4 = 5" (identifier "iVar4") (= "=") (number_literal "5")) (; ";")) (expression_statement "pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);" (assignment_expression "pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" (identifier "pbVar5") (= "=") (pointer_expression "*(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" (* "*") (cast_expression "(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x99c)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x99c" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x99c")) () ")"))))) (; ";")) (expression_statement "pbVar6 = (byte *)0x28e9b2;" (assignment_expression "pbVar6 = (byte *)0x28e9b2" (identifier "pbVar6") (= "=") (cast_expression "(byte *)0x28e9b2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x28e9b2"))) (; ";")) (do_statement "do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  } while (bVar8);" (do "do") (compound_statement "{\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n  }" ({ "{") (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" (identifier "bVar7") (= "=") (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (< "<") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")))) (; ";")) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" (identifier "bVar8") (= "=") (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (== "==") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" (identifier "pbVar6") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (if_statement "if ((!bVar7 && !bVar8) != bVar7) {\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }" (if "if") (parenthesized_expression "((!bVar7 && !bVar8) != bVar7)" (( "(") (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" (( "(") (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" (! "!") (identifier "bVar7")) (&& "&&") (unary_expression "!bVar8" (! "!") (identifier "bVar8"))) () ")")) (!= "!=") (identifier "bVar7")) () ")")) (compound_statement "{\n    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;\n  }" ({ "{") (expression_statement "*(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;" (assignment_expression "*(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10" (pointer_expression "*(byte *)(iVar2 + 0x90)" (* "*") (cast_expression "(byte *)(iVar2 + 0x90)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x90)" (( "(") (binary_expression "iVar2 + 0x90" (identifier "iVar2") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar2 + 0x90) | 0x10" (pointer_expression "*(byte *)(iVar2 + 0x90)" (* "*") (cast_expression "(byte *)(iVar2 + 0x90)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x90)" (( "(") (binary_expression "iVar2 + 0x90" (identifier "iVar2") (+ "+") (number_literal "0x90")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined4 *)FUN_001e5200(0x30);" (assignment_expression "puVar3 = (undefined4 *)FUN_001e5200(0x30)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_001e5200(0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(0x30)" (identifier "FUN_001e5200") (argument_list "(0x30)" (( "(") (number_literal "0x30") () ")"))))) (; ";")) (expression_statement "*(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;" (assignment_expression "*(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0" (pointer_expression "*(byte *)(puVar3 + 7)" (* "*") (cast_expression "(byte *)(puVar3 + 7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 7)" (( "(") (binary_expression "puVar3 + 7" (identifier "puVar3") (+ "+") (number_literal "7")) () ")")))) (= "=") (binary_expression "*(byte *)(puVar3 + 7) & 0xe0" (pointer_expression "*(byte *)(puVar3 + 7)" (* "*") (cast_expression "(byte *)(puVar3 + 7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 7)" (( "(") (binary_expression "puVar3 + 7" (identifier "puVar3") (+ "+") (number_literal "7")) () ")")))) (& "&") (number_literal "0xe0"))) (; ";")) (expression_statement "puVar3[0xb] = param_1 + 8;" (assignment_expression "puVar3[0xb] = param_1 + 8" (subscript_expression "puVar3[0xb]" (identifier "puVar3") ([ "[") (number_literal "0xb") (] "]")) (= "=") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[4] = 0;" (assignment_expression "puVar3[4] = 0" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar3[8] = 0;" (assignment_expression "puVar3[8] = 0" (subscript_expression "puVar3[8]" (identifier "puVar3") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[9] = 1;" (assignment_expression "puVar3[9] = 1" (subscript_expression "puVar3[9]" (identifier "puVar3") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar3[10] = 0;" (assignment_expression "puVar3[10] = 0" (subscript_expression "puVar3[10]" (identifier "puVar3") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = &PTR_FUN_00383cdc;" (assignment_expression "*puVar3 = &PTR_FUN_00383cdc" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "&PTR_FUN_00383cdc" (& "&") (identifier "PTR_FUN_00383cdc"))) (; ";")) (expression_statement "FUN_000f2600(iVar2,puVar3);" (call_expression "FUN_000f2600(iVar2,puVar3)" (identifier "FUN_000f2600") (argument_list "(iVar2,puVar3)" (( "(") (identifier "iVar2") (, ",") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Output_section * create_shstrtab(Layout * this) */

type_2 * __thiscall gold::Layout::create_shstrtab(Layout *this)

{
  type_1 *puVar1;
  char *name;
  type_2 *this_00;
  type_3 *posd;
  int var_6;
  type_4 *var_7;
  type_4 *var_8;
  bool var_9;
  bool bVar6;
  type_4 bVar7;
  
  bVar7 = 0;
  name = var_1<var_2>::var_3(&this->namepool_,".shstrtab",false,(type_5 *)0x0);
  this_00 = var_4(this,name,3,0,ORDER_INVALID,false);
  var_9 = false;
  bVar6 = parameters->options_ == (type_6 *)0x0;
  if (bVar6) {
                    /* WARNING: Subroutine does not return */
    var_5("../../gold/parameters.h",0x5c,"options");
  }
  var_6 = 5;
  var_7 = (type_4 *)(parameters->options_->compress_debug_sections_).value;
  var_8 = (type_4 *)0x28e9b2;
  do {
    if (var_6 == 0) break;
    var_6 = var_6 + -1;
    var_9 = *var_7 < *var_8;
    bVar6 = *var_7 == *var_8;
    var_7 = var_7 + (type_7)bVar7 * -2 + 1;
    var_8 = var_8 + (type_7)bVar7 * -2 + 1;
  } while (bVar6);
  if ((!var_9 && !bVar6) != var_9) {
    this_00->field_0x90 = this_00->field_0x90 | 0x10;
  }
  posd = (type_3 *)var_10(0x30);
  puVar1 = &(posd->super_Output_data).field_0x1c;
  *puVar1 = *puVar1 & 0xe0;
  posd[1].super_Output_data._vptr_Output_data = (type_8 **)&this->namepool_;
  *(type_9 *)&(posd->super_Output_data).address_ = 0;
  *(type_9 *)((int)&(posd->super_Output_data).address_ + 4) = 0;
  *(type_9 *)&(posd->super_Output_data).data_size_ = 0;
  *(type_9 *)((int)&(posd->super_Output_data).data_size_ + 4) = 0;
  *(type_9 *)&(posd->super_Output_data).offset_ = 0xffffffff;
  *(type_9 *)((int)&(posd->super_Output_data).offset_ + 4) = 0xffffffff;
  posd->output_section_ = (type_2 *)0x0;
  *(type_9 *)&posd->addralign_ = 1;
  *(type_9 *)((int)&posd->addralign_ + 4) = 0;
  (posd->super_Output_data)._vptr_Output_data =
       (type_8 **)&PTR__Output_data_strtab_00383cdc;
  Output_section::var_11(this_00,posd);
  return this_00;
}


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

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

int MASKED(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  uVar1 = FUN_00174930(param_1 + 8,".shstrtab",0,0);
  iVar2 = FUN_0009b860(param_1,uVar1,3,0,0,0,0);
  bVar7 = false;
  bVar8 = *(int *)(DAT_0038f378 + 8) == 0;
  if (bVar8) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/parameters.h",0x5c,"options");
  }
  iVar4 = 5;
  pbVar5 = *(byte **)(*(int *)(DAT_0038f378 + 8) + 0x99c);
  pbVar6 = (byte *)0x28e9b2;
  do {
    if (iVar4 == 0) break;
    iVar4 = iVar4 + -1;
    bVar7 = *pbVar5 < *pbVar6;
    bVar8 = *pbVar5 == *pbVar6;
    pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
    pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;
  } while (bVar8);
  if ((!bVar7 && !bVar8) != bVar7) {
    *(byte *)(iVar2 + 0x90) = *(byte *)(iVar2 + 0x90) | 0x10;
  }
  puVar3 = (undefined4 *)FUN_001e5200(0x30);
  *(byte *)(puVar3 + 7) = *(byte *)(puVar3 + 7) & 0xe0;
  puVar3[0xb] = param_1 + 8;
  puVar3[1] = 0;
  puVar3[2] = 0;
  puVar3[3] = 0;
  puVar3[4] = 0;
  puVar3[5] = 0xffffffff;
  puVar3[6] = 0xffffffff;
  puVar3[8] = 0;
  puVar3[9] = 1;
  puVar3[10] = 0;
  *puVar3 = &PTR_FUN_00383cdc;
  FUN_000f2600(iVar2,puVar3);
  return iVar2;
}

