
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

local_symbol * local_symbol_make(char *name,segT section,valueT val,fragS *frag)

{
  char *key;
  char *pcVar1;
  local_symbol *val_00;
  undefined4 local_2c;
  undefined4 local_28;
  
  local_symbol_count = local_symbol_count + 1;
  key = save_symbol_name(name);
  if ((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18) {
    _obstack_newchunk(&notes,0x18);
    pcVar1 = notes.next_free + 0x18;
    val_00 = (local_symbol *)notes.object_base;
    if (pcVar1 != notes.object_base) goto LAB_00036d1f;
  }
  else {
    pcVar1 = notes.next_free + 0x18;
    val_00 = (local_symbol *)notes.object_base;
    if (pcVar1 != notes.object_base) goto LAB_00036d1f;
  }
  notes._40_1_ = notes._40_1_ | 2;
  val_00 = (local_symbol *)notes.object_base;
LAB_00036d1f:
  local_28 = (undefined4)(val >> 0x20);
  local_2c = (undefined4)val;
  notes.object_base = (char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask);
  if ((uint)((int)notes.chunk_limit - (int)notes.chunk) <
      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk
            )) {
    notes.object_base = notes.chunk_limit;
  }
  notes.next_free = notes.object_base;
  val_00->lsy_name = key;
  *(byte *)&val_00->lsy_flags = *(byte *)&val_00->lsy_flags & 0xfa | 1;
  *(undefined4 *)((int)&val_00->lsy_value + 4) = local_28;
  val_00->lsy_section = section;
  (val_00->u).lsy_frag = frag;
  *(undefined4 *)&val_00->lsy_value = local_2c;
  hash_jam(local_hash,key,val_00);
  return val_00;
}



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

byte * FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                   undefined4 param_5)

{
  undefined4 uVar1;
  byte *pbVar2;
  byte *pbVar3;
  
  DAT_00077460 = DAT_00077460 + 1;
  uVar1 = FUN_00036890();
  if (DAT_000778f0 - DAT_000778ec < 0x18) {
    _obstack_newchunk(&DAT_000778e0,0x18);
    pbVar2 = (byte *)(DAT_000778ec + 0x18);
    pbVar3 = DAT_000778e8;
    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;
  }
  else {
    pbVar2 = (byte *)(DAT_000778ec + 0x18);
    pbVar3 = DAT_000778e8;
    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;
  }
  DAT_00077908 = DAT_00077908 | 2;
  pbVar3 = DAT_000778e8;
LAB_00036d1f:
  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);
  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)
  {
    DAT_000778e8 = (byte *)DAT_000778f0;
  }
  DAT_000778ec = (uint)DAT_000778e8;
  *(undefined4 *)(pbVar3 + 8) = uVar1;
  *pbVar3 = *pbVar3 & 0xfa | 1;
  *(undefined4 *)(pbVar3 + 0x14) = param_4;
  *(undefined4 *)(pbVar3 + 4) = param_2;
  *(undefined4 *)(pbVar3 + 0xc) = param_5;
  *(undefined4 *)(pbVar3 + 0x10) = param_3;
  FUN_000252f0(DAT_00077464,uVar1,pbVar3);
  return pbVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016040
ADD EBX,0x37337
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x4],EDX
ADD dword ptr [EBX + 0x9460],0x1
CALL 0x00036890
LEA ESI,[EBX + 0x98e0]
MOV dword ptr [ESP + 0x8],EAX
MOV EDX,dword ptr [ESI + 0x10]
MOV ECX,dword ptr [ESI + 0xc]
MOV EAX,EDX
SUB EAX,ECX
CMP EAX,0x17
JBE 0x00036d98
MOV EDI,dword ptr [ESI + 0x8]
ADD ECX,0x18
MOV dword ptr [ESI + 0xc],ECX
CMP ECX,EDI
JZ 0x00036dbd
MOV EBP,dword ptr [ESI + 0x18]
LEA EAX,[ECX + EBP*0x1]
NOT EBP
MOV ECX,dword ptr [ESI + 0x4]
AND EAX,EBP
MOV EBP,EAX
MOV dword ptr [ESI + 0xc],EAX
SUB EBP,ECX
MOV dword ptr [ESP + 0xc],EBP
MOV EBP,EDX
SUB EBP,ECX
CMP dword ptr [ESP + 0xc],EBP
JBE 0x00036d46
MOV dword ptr [ESI + 0xc],EDX
MOV EAX,EDX
MOV dword ptr [ESI + 0x8],EAX
MOVZX EAX,byte ptr [EDI]
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x8]
AND EAX,0xfffffffa
OR EAX,0x1
MOV dword ptr [EDI + 0x8],ESI
MOV byte ptr [EDI],AL
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [EDI + 0x14],EDX
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [EDI + 0x10],EAX
PUSH EDI
PUSH ESI
PUSH dword ptr [EBX + 0x9464]
CALL 0x000252f0
ADD ESP,0x2c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x18
PUSH ESI
CALL 0x00014190
MOV ECX,dword ptr [ESI + 0xc]
MOV EDI,dword ptr [ESI + 0x8]
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0x10]
ADD ECX,0x18
MOV dword ptr [ESI + 0xc],ECX
CMP ECX,EDI
JNZ 0x00036d1f
OR byte ptr [ESI + 0x28],0x2
JMP 0x00036d1f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte * FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}\n\n" comment (function_definition "byte * FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}" type_identifier (pointer_declarator "* FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" * (function_declarator "FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "DAT_00077460 = DAT_00077460 + 1;" (assignment_expression "DAT_00077460 = DAT_00077460 + 1" identifier = (binary_expression "DAT_00077460 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00036890();" (assignment_expression "uVar1 = FUN_00036890()" identifier = (call_expression "FUN_00036890()" identifier (argument_list "()" ( )))) ;) (if_statement "if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" if (parenthesized_expression "(DAT_000778f0 - DAT_000778ec < 0x18)" ( (binary_expression "DAT_000778f0 - DAT_000778ec < 0x18" (binary_expression "DAT_000778f0 - DAT_000778ec" identifier - identifier) < number_literal) )) (compound_statement "{\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" { (expression_statement "_obstack_newchunk(&DAT_000778e0,0x18);" (call_expression "_obstack_newchunk(&DAT_000778e0,0x18)" identifier (argument_list "(&DAT_000778e0,0x18)" ( (pointer_expression "&DAT_000778e0" & identifier) , number_literal ))) ;) (expression_statement "pbVar2 = (byte *)(DAT_000778ec + 0x18);" (assignment_expression "pbVar2 = (byte *)(DAT_000778ec + 0x18)" identifier = (cast_expression "(byte *)(DAT_000778ec + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000778ec + 0x18)" ( (binary_expression "DAT_000778ec + 0x18" identifier + number_literal) )))) ;) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" identifier = identifier) ;) (if_statement "if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;" if (parenthesized_expression "(pbVar2 != DAT_000778e8)" ( (binary_expression "pbVar2 != DAT_000778e8" identifier != identifier) )) (goto_statement "goto LAB_00036d1f;" goto statement_identifier ;)) }) (else_clause "else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" else (compound_statement "{\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" { (expression_statement "pbVar2 = (byte *)(DAT_000778ec + 0x18);" (assignment_expression "pbVar2 = (byte *)(DAT_000778ec + 0x18)" identifier = (cast_expression "(byte *)(DAT_000778ec + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000778ec + 0x18)" ( (binary_expression "DAT_000778ec + 0x18" identifier + number_literal) )))) ;) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" identifier = identifier) ;) (if_statement "if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;" if (parenthesized_expression "(pbVar2 != DAT_000778e8)" ( (binary_expression "pbVar2 != DAT_000778e8" identifier != identifier) )) (goto_statement "goto LAB_00036d1f;" goto statement_identifier ;)) }))) (expression_statement "DAT_00077908 = DAT_00077908 | 2;" (assignment_expression "DAT_00077908 = DAT_00077908 | 2" identifier = (binary_expression "DAT_00077908 | 2" identifier | number_literal)) ;) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" identifier = identifier) ;) (labeled_statement "LAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);" statement_identifier : (expression_statement "DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);" (assignment_expression "DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" identifier = (cast_expression "(byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" ( (binary_expression "(uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8" (call_expression "(uint)(pbVar2 + DAT_000778f8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar2 + DAT_000778f8)" ( (binary_expression "pbVar2 + DAT_000778f8" identifier + identifier) ))) & (unary_expression "~DAT_000778f8" ~ identifier)) )))) ;)) (if_statement "if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }" if (parenthesized_expression "(DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)" ( (binary_expression "DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4" (binary_expression "DAT_000778f0 - DAT_000778e4" identifier - identifier) < (binary_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4" (parenthesized_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" ( (binary_expression "(uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8" (call_expression "(uint)(pbVar2 + DAT_000778f8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar2 + DAT_000778f8)" ( (binary_expression "pbVar2 + DAT_000778f8" identifier + identifier) ))) & (unary_expression "~DAT_000778f8" ~ identifier)) )) - identifier)) )) (compound_statement "{\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }" { (expression_statement "DAT_000778e8 = (byte *)DAT_000778f0;" (assignment_expression "DAT_000778e8 = (byte *)DAT_000778f0" identifier = (cast_expression "(byte *)DAT_000778f0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "DAT_000778ec = (uint)DAT_000778e8;" (assignment_expression "DAT_000778ec = (uint)DAT_000778e8" identifier = (cast_expression "(uint)DAT_000778e8" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined4 *)(pbVar3 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(pbVar3 + 8) = uVar1" (pointer_expression "*(undefined4 *)(pbVar3 + 8)" * (cast_expression "(undefined4 *)(pbVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 8)" ( (binary_expression "pbVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*pbVar3 = *pbVar3 & 0xfa | 1;" (assignment_expression "*pbVar3 = *pbVar3 & 0xfa | 1" (pointer_expression "*pbVar3" * identifier) = (binary_expression "*pbVar3 & 0xfa | 1" (binary_expression "*pbVar3 & 0xfa" (pointer_expression "*pbVar3" * identifier) & number_literal) | number_literal)) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x14) = param_4;" (assignment_expression "*(undefined4 *)(pbVar3 + 0x14) = param_4" (pointer_expression "*(undefined4 *)(pbVar3 + 0x14)" * (cast_expression "(undefined4 *)(pbVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x14)" ( (binary_expression "pbVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 4) = param_2;" (assignment_expression "*(undefined4 *)(pbVar3 + 4) = param_2" (pointer_expression "*(undefined4 *)(pbVar3 + 4)" * (cast_expression "(undefined4 *)(pbVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 4)" ( (binary_expression "pbVar3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0xc) = param_5;" (assignment_expression "*(undefined4 *)(pbVar3 + 0xc) = param_5" (pointer_expression "*(undefined4 *)(pbVar3 + 0xc)" * (cast_expression "(undefined4 *)(pbVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0xc)" ( (binary_expression "pbVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x10) = param_3;" (assignment_expression "*(undefined4 *)(pbVar3 + 0x10) = param_3" (pointer_expression "*(undefined4 *)(pbVar3 + 0x10)" * (cast_expression "(undefined4 *)(pbVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x10)" ( (binary_expression "pbVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000252f0(DAT_00077464,uVar1,pbVar3);" (call_expression "FUN_000252f0(DAT_00077464,uVar1,pbVar3)" identifier (argument_list "(DAT_00077464,uVar1,pbVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return pbVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nlocal_symbol * local_symbol_make(char *name,segT section,valueT val,fragS *frag)\n\n{\n  char *key;\n  char *pcVar1;\n  local_symbol *val_00;\n  undefined4 local_2c;\n  undefined4 local_28;\n  \n  local_symbol_count = local_symbol_count + 1;\n  key = save_symbol_name(name);\n  if ((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18) {\n    _obstack_newchunk(&notes,0x18);\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  else {\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  notes._40_1_ = notes._40_1_ | 2;\n  val_00 = (local_symbol *)notes.object_base;\nLAB_00036d1f:\n  local_28 = (undefined4)(val >> 0x20);\n  local_2c = (undefined4)val;\n  notes.object_base = (char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask);\n  if ((uint)((int)notes.chunk_limit - (int)notes.chunk) <\n      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )) {\n    notes.object_base = notes.chunk_limit;\n  }\n  notes.next_free = notes.object_base;\n  val_00->lsy_name = key;\n  *(byte *)&val_00->lsy_flags = *(byte *)&val_00->lsy_flags & 0xfa | 1;\n  *(undefined4 *)((int)&val_00->lsy_value + 4) = local_28;\n  val_00->lsy_section = section;\n  (val_00->u).lsy_frag = frag;\n  *(undefined4 *)&val_00->lsy_value = local_2c;\n  hash_jam(local_hash,key,val_00);\n  return val_00;\n}\n\n" comment comment (function_definition "local_symbol * local_symbol_make(char *name,segT section,valueT val,fragS *frag)\n\n{\n  char *key;\n  char *pcVar1;\n  local_symbol *val_00;\n  undefined4 local_2c;\n  undefined4 local_28;\n  \n  local_symbol_count = local_symbol_count + 1;\n  key = save_symbol_name(name);\n  if ((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18) {\n    _obstack_newchunk(&notes,0x18);\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  else {\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  notes._40_1_ = notes._40_1_ | 2;\n  val_00 = (local_symbol *)notes.object_base;\nLAB_00036d1f:\n  local_28 = (undefined4)(val >> 0x20);\n  local_2c = (undefined4)val;\n  notes.object_base = (char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask);\n  if ((uint)((int)notes.chunk_limit - (int)notes.chunk) <\n      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )) {\n    notes.object_base = notes.chunk_limit;\n  }\n  notes.next_free = notes.object_base;\n  val_00->lsy_name = key;\n  *(byte *)&val_00->lsy_flags = *(byte *)&val_00->lsy_flags & 0xfa | 1;\n  *(undefined4 *)((int)&val_00->lsy_value + 4) = local_28;\n  val_00->lsy_section = section;\n  (val_00->u).lsy_frag = frag;\n  *(undefined4 *)&val_00->lsy_value = local_2c;\n  hash_jam(local_hash,key,val_00);\n  return val_00;\n}" type_identifier (pointer_declarator "* local_symbol_make(char *name,segT section,valueT val,fragS *frag)" * (function_declarator "local_symbol_make(char *name,segT section,valueT val,fragS *frag)" identifier (parameter_list "(char *name,segT section,valueT val,fragS *frag)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "segT section" type_identifier identifier) , (parameter_declaration "valueT val" type_identifier identifier) , (parameter_declaration "fragS *frag" type_identifier (pointer_declarator "*frag" * identifier)) )))) (compound_statement "{\n  char *key;\n  char *pcVar1;\n  local_symbol *val_00;\n  undefined4 local_2c;\n  undefined4 local_28;\n  \n  local_symbol_count = local_symbol_count + 1;\n  key = save_symbol_name(name);\n  if ((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18) {\n    _obstack_newchunk(&notes,0x18);\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  else {\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  notes._40_1_ = notes._40_1_ | 2;\n  val_00 = (local_symbol *)notes.object_base;\nLAB_00036d1f:\n  local_28 = (undefined4)(val >> 0x20);\n  local_2c = (undefined4)val;\n  notes.object_base = (char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask);\n  if ((uint)((int)notes.chunk_limit - (int)notes.chunk) <\n      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )) {\n    notes.object_base = notes.chunk_limit;\n  }\n  notes.next_free = notes.object_base;\n  val_00->lsy_name = key;\n  *(byte *)&val_00->lsy_flags = *(byte *)&val_00->lsy_flags & 0xfa | 1;\n  *(undefined4 *)((int)&val_00->lsy_value + 4) = local_28;\n  val_00->lsy_section = section;\n  (val_00->u).lsy_frag = frag;\n  *(undefined4 *)&val_00->lsy_value = local_2c;\n  hash_jam(local_hash,key,val_00);\n  return val_00;\n}" { (declaration "char *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "local_symbol *val_00;" type_identifier (pointer_declarator "*val_00" * identifier) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (expression_statement "local_symbol_count = local_symbol_count + 1;" (assignment_expression "local_symbol_count = local_symbol_count + 1" identifier = (binary_expression "local_symbol_count + 1" identifier + number_literal)) ;) (expression_statement "key = save_symbol_name(name);" (assignment_expression "key = save_symbol_name(name)" identifier = (call_expression "save_symbol_name(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if ((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18) {\n    _obstack_newchunk(&notes,0x18);\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }\n  else {\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }" if (parenthesized_expression "((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18)" ( (binary_expression "(uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18" (call_expression "(uint)((int)notes.chunk_limit - (int)notes.next_free)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)notes.chunk_limit - (int)notes.next_free)" ( (binary_expression "(int)notes.chunk_limit - (int)notes.next_free" (cast_expression "(int)notes.chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "notes.chunk_limit" identifier . field_identifier)) - (cast_expression "(int)notes.next_free" ( (type_descriptor "int" primitive_type) ) (field_expression "notes.next_free" identifier . field_identifier))) ))) < number_literal) )) (compound_statement "{\n    _obstack_newchunk(&notes,0x18);\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }" { (expression_statement "_obstack_newchunk(&notes,0x18);" (call_expression "_obstack_newchunk(&notes,0x18)" identifier (argument_list "(&notes,0x18)" ( (pointer_expression "&notes" & identifier) , number_literal ))) ;) (expression_statement "pcVar1 = notes.next_free + 0x18;" (assignment_expression "pcVar1 = notes.next_free + 0x18" identifier = (binary_expression "notes.next_free + 0x18" (field_expression "notes.next_free" identifier . field_identifier) + number_literal)) ;) (expression_statement "val_00 = (local_symbol *)notes.object_base;" (assignment_expression "val_00 = (local_symbol *)notes.object_base" identifier = (cast_expression "(local_symbol *)notes.object_base" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "notes.object_base" identifier . field_identifier))) ;) (if_statement "if (pcVar1 != notes.object_base) goto LAB_00036d1f;" if (parenthesized_expression "(pcVar1 != notes.object_base)" ( (binary_expression "pcVar1 != notes.object_base" identifier != (field_expression "notes.object_base" identifier . field_identifier)) )) (goto_statement "goto LAB_00036d1f;" goto statement_identifier ;)) }) (else_clause "else {\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }" else (compound_statement "{\n    pcVar1 = notes.next_free + 0x18;\n    val_00 = (local_symbol *)notes.object_base;\n    if (pcVar1 != notes.object_base) goto LAB_00036d1f;\n  }" { (expression_statement "pcVar1 = notes.next_free + 0x18;" (assignment_expression "pcVar1 = notes.next_free + 0x18" identifier = (binary_expression "notes.next_free + 0x18" (field_expression "notes.next_free" identifier . field_identifier) + number_literal)) ;) (expression_statement "val_00 = (local_symbol *)notes.object_base;" (assignment_expression "val_00 = (local_symbol *)notes.object_base" identifier = (cast_expression "(local_symbol *)notes.object_base" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "notes.object_base" identifier . field_identifier))) ;) (if_statement "if (pcVar1 != notes.object_base) goto LAB_00036d1f;" if (parenthesized_expression "(pcVar1 != notes.object_base)" ( (binary_expression "pcVar1 != notes.object_base" identifier != (field_expression "notes.object_base" identifier . field_identifier)) )) (goto_statement "goto LAB_00036d1f;" goto statement_identifier ;)) }))) (expression_statement "notes._40_1_ = notes._40_1_ | 2;" (assignment_expression "notes._40_1_ = notes._40_1_ | 2" (field_expression "notes._40_1_" identifier . field_identifier) = (binary_expression "notes._40_1_ | 2" (field_expression "notes._40_1_" identifier . field_identifier) | number_literal)) ;) (expression_statement "val_00 = (local_symbol *)notes.object_base;" (assignment_expression "val_00 = (local_symbol *)notes.object_base" identifier = (cast_expression "(local_symbol *)notes.object_base" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "notes.object_base" identifier . field_identifier))) ;) (labeled_statement "LAB_00036d1f:\n  local_28 = (undefined4)(val >> 0x20);" statement_identifier : (expression_statement "local_28 = (undefined4)(val >> 0x20);" (assignment_expression "local_28 = (undefined4)(val >> 0x20)" identifier = (call_expression "(undefined4)(val >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "(val >> 0x20)" ( (binary_expression "val >> 0x20" identifier >> number_literal) )))) ;)) (expression_statement "local_2c = (undefined4)val;" (assignment_expression "local_2c = (undefined4)val" identifier = (cast_expression "(undefined4)val" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "notes.object_base = (char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask);" (assignment_expression "notes.object_base = (char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask)" (field_expression "notes.object_base" identifier . field_identifier) = (cast_expression "(char *)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask)" ( (binary_expression "(uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask" (call_expression "(uint)(pcVar1 + notes.alignment_mask)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar1 + notes.alignment_mask)" ( (binary_expression "pcVar1 + notes.alignment_mask" identifier + (field_expression "notes.alignment_mask" identifier . field_identifier)) ))) & (unary_expression "~notes.alignment_mask" ~ (field_expression "notes.alignment_mask" identifier . field_identifier))) )))) ;) (if_statement "if ((uint)((int)notes.chunk_limit - (int)notes.chunk) <\n      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )) {\n    notes.object_base = notes.chunk_limit;\n  }" if (parenthesized_expression "((uint)((int)notes.chunk_limit - (int)notes.chunk) <\n      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            ))" ( (binary_expression "(uint)((int)notes.chunk_limit - (int)notes.chunk) <\n      (uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )" (call_expression "(uint)((int)notes.chunk_limit - (int)notes.chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)notes.chunk_limit - (int)notes.chunk)" ( (binary_expression "(int)notes.chunk_limit - (int)notes.chunk" (cast_expression "(int)notes.chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "notes.chunk_limit" identifier . field_identifier)) - (cast_expression "(int)notes.chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "notes.chunk" identifier . field_identifier))) ))) < (call_expression "(uint)((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk\n            )" ( (binary_expression "(int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk" (cast_expression "(int)((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask)" ( (binary_expression "(uint)(pcVar1 + notes.alignment_mask) & ~notes.alignment_mask" (call_expression "(uint)(pcVar1 + notes.alignment_mask)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar1 + notes.alignment_mask)" ( (binary_expression "pcVar1 + notes.alignment_mask" identifier + (field_expression "notes.alignment_mask" identifier . field_identifier)) ))) & (unary_expression "~notes.alignment_mask" ~ (field_expression "notes.alignment_mask" identifier . field_identifier))) ))) - (cast_expression "(int)notes.chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "notes.chunk" identifier . field_identifier))) )))) )) (compound_statement "{\n    notes.object_base = notes.chunk_limit;\n  }" { (expression_statement "notes.object_base = notes.chunk_limit;" (assignment_expression "notes.object_base = notes.chunk_limit" (field_expression "notes.object_base" identifier . field_identifier) = (field_expression "notes.chunk_limit" identifier . field_identifier)) ;) })) (expression_statement "notes.next_free = notes.object_base;" (assignment_expression "notes.next_free = notes.object_base" (field_expression "notes.next_free" identifier . field_identifier) = (field_expression "notes.object_base" identifier . field_identifier)) ;) (expression_statement "val_00->lsy_name = key;" (assignment_expression "val_00->lsy_name = key" (field_expression "val_00->lsy_name" identifier -> field_identifier) = identifier) ;) (expression_statement "*(byte *)&val_00->lsy_flags = *(byte *)&val_00->lsy_flags & 0xfa | 1;" (assignment_expression "*(byte *)&val_00->lsy_flags = *(byte *)&val_00->lsy_flags & 0xfa | 1" (pointer_expression "*(byte *)&val_00->lsy_flags" * (cast_expression "(byte *)&val_00->lsy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&val_00->lsy_flags" & (field_expression "val_00->lsy_flags" identifier -> field_identifier)))) = (binary_expression "*(byte *)&val_00->lsy_flags & 0xfa | 1" (binary_expression "*(byte *)&val_00->lsy_flags & 0xfa" (pointer_expression "*(byte *)&val_00->lsy_flags" * (cast_expression "(byte *)&val_00->lsy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&val_00->lsy_flags" & (field_expression "val_00->lsy_flags" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) (expression_statement "*(undefined4 *)((int)&val_00->lsy_value + 4) = local_28;" (assignment_expression "*(undefined4 *)((int)&val_00->lsy_value + 4) = local_28" (pointer_expression "*(undefined4 *)((int)&val_00->lsy_value + 4)" * (cast_expression "(undefined4 *)((int)&val_00->lsy_value + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&val_00->lsy_value + 4)" ( (binary_expression "(int)&val_00->lsy_value + 4" (cast_expression "(int)&val_00->lsy_value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&val_00->lsy_value" & (field_expression "val_00->lsy_value" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "val_00->lsy_section = section;" (assignment_expression "val_00->lsy_section = section" (field_expression "val_00->lsy_section" identifier -> field_identifier) = identifier) ;) (expression_statement "(val_00->u).lsy_frag = frag;" (assignment_expression "(val_00->u).lsy_frag = frag" (field_expression "(val_00->u).lsy_frag" (parenthesized_expression "(val_00->u)" ( (field_expression "val_00->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&val_00->lsy_value = local_2c;" (assignment_expression "*(undefined4 *)&val_00->lsy_value = local_2c" (pointer_expression "*(undefined4 *)&val_00->lsy_value" * (cast_expression "(undefined4 *)&val_00->lsy_value" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&val_00->lsy_value" & (field_expression "val_00->lsy_value" identifier -> field_identifier)))) = identifier) ;) (expression_statement "hash_jam(local_hash,key,val_00);" (call_expression "hash_jam(local_hash,key,val_00)" identifier (argument_list "(local_hash,key,val_00)" ( identifier , identifier , identifier ))) ;) (return_statement "return val_00;" return identifier ;) })))
(translation_unit "byte * FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}\n\n" (function_definition "byte * FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}" type_identifier (pointer_declarator "* FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" * (function_declarator "FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "DAT_00077460 = DAT_00077460 + 1;" (assignment_expression "DAT_00077460 = DAT_00077460 + 1" identifier = (binary_expression "DAT_00077460 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00036890();" (assignment_expression "uVar1 = FUN_00036890()" identifier = (call_expression "FUN_00036890()" identifier (argument_list "()" ( )))) ;) (if_statement "if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" if (parenthesized_expression "(DAT_000778f0 - DAT_000778ec < 0x18)" ( (binary_expression "DAT_000778f0 - DAT_000778ec < 0x18" (binary_expression "DAT_000778f0 - DAT_000778ec" identifier - identifier) < number_literal) )) (compound_statement "{\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" { (expression_statement "_obstack_newchunk(&DAT_000778e0,0x18);" (call_expression "_obstack_newchunk(&DAT_000778e0,0x18)" identifier (argument_list "(&DAT_000778e0,0x18)" ( (pointer_expression "&DAT_000778e0" & identifier) , number_literal ))) ;) (expression_statement "pbVar2 = (byte *)(DAT_000778ec + 0x18);" (assignment_expression "pbVar2 = (byte *)(DAT_000778ec + 0x18)" identifier = (cast_expression "(byte *)(DAT_000778ec + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000778ec + 0x18)" ( (binary_expression "DAT_000778ec + 0x18" identifier + number_literal) )))) ;) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" identifier = identifier) ;) (if_statement "if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;" if (parenthesized_expression "(pbVar2 != DAT_000778e8)" ( (binary_expression "pbVar2 != DAT_000778e8" identifier != identifier) )) (goto_statement "goto LAB_00036d1f;" goto statement_identifier ;)) }) (else_clause "else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" else (compound_statement "{\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" { (expression_statement "pbVar2 = (byte *)(DAT_000778ec + 0x18);" (assignment_expression "pbVar2 = (byte *)(DAT_000778ec + 0x18)" identifier = (cast_expression "(byte *)(DAT_000778ec + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000778ec + 0x18)" ( (binary_expression "DAT_000778ec + 0x18" identifier + number_literal) )))) ;) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" identifier = identifier) ;) (if_statement "if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;" if (parenthesized_expression "(pbVar2 != DAT_000778e8)" ( (binary_expression "pbVar2 != DAT_000778e8" identifier != identifier) )) (goto_statement "goto LAB_00036d1f;" goto statement_identifier ;)) }))) (expression_statement "DAT_00077908 = DAT_00077908 | 2;" (assignment_expression "DAT_00077908 = DAT_00077908 | 2" identifier = (binary_expression "DAT_00077908 | 2" identifier | number_literal)) ;) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" identifier = identifier) ;) (labeled_statement "LAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);" statement_identifier : (expression_statement "DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);" (assignment_expression "DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" identifier = (cast_expression "(byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" ( (binary_expression "(uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8" (call_expression "(uint)(pbVar2 + DAT_000778f8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar2 + DAT_000778f8)" ( (binary_expression "pbVar2 + DAT_000778f8" identifier + identifier) ))) & (unary_expression "~DAT_000778f8" ~ identifier)) )))) ;)) (if_statement "if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }" if (parenthesized_expression "(DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)" ( (binary_expression "DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4" (binary_expression "DAT_000778f0 - DAT_000778e4" identifier - identifier) < (binary_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4" (parenthesized_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" ( (binary_expression "(uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8" (call_expression "(uint)(pbVar2 + DAT_000778f8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar2 + DAT_000778f8)" ( (binary_expression "pbVar2 + DAT_000778f8" identifier + identifier) ))) & (unary_expression "~DAT_000778f8" ~ identifier)) )) - identifier)) )) (compound_statement "{\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }" { (expression_statement "DAT_000778e8 = (byte *)DAT_000778f0;" (assignment_expression "DAT_000778e8 = (byte *)DAT_000778f0" identifier = (cast_expression "(byte *)DAT_000778f0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "DAT_000778ec = (uint)DAT_000778e8;" (assignment_expression "DAT_000778ec = (uint)DAT_000778e8" identifier = (cast_expression "(uint)DAT_000778e8" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined4 *)(pbVar3 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(pbVar3 + 8) = uVar1" (pointer_expression "*(undefined4 *)(pbVar3 + 8)" * (cast_expression "(undefined4 *)(pbVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 8)" ( (binary_expression "pbVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*pbVar3 = *pbVar3 & 0xfa | 1;" (assignment_expression "*pbVar3 = *pbVar3 & 0xfa | 1" (pointer_expression "*pbVar3" * identifier) = (binary_expression "*pbVar3 & 0xfa | 1" (binary_expression "*pbVar3 & 0xfa" (pointer_expression "*pbVar3" * identifier) & number_literal) | number_literal)) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x14) = param_4;" (assignment_expression "*(undefined4 *)(pbVar3 + 0x14) = param_4" (pointer_expression "*(undefined4 *)(pbVar3 + 0x14)" * (cast_expression "(undefined4 *)(pbVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x14)" ( (binary_expression "pbVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 4) = param_2;" (assignment_expression "*(undefined4 *)(pbVar3 + 4) = param_2" (pointer_expression "*(undefined4 *)(pbVar3 + 4)" * (cast_expression "(undefined4 *)(pbVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 4)" ( (binary_expression "pbVar3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0xc) = param_5;" (assignment_expression "*(undefined4 *)(pbVar3 + 0xc) = param_5" (pointer_expression "*(undefined4 *)(pbVar3 + 0xc)" * (cast_expression "(undefined4 *)(pbVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0xc)" ( (binary_expression "pbVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x10) = param_3;" (assignment_expression "*(undefined4 *)(pbVar3 + 0x10) = param_3" (pointer_expression "*(undefined4 *)(pbVar3 + 0x10)" * (cast_expression "(undefined4 *)(pbVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x10)" ( (binary_expression "pbVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000252f0(DAT_00077464,uVar1,pbVar3);" (call_expression "FUN_000252f0(DAT_00077464,uVar1,pbVar3)" identifier (argument_list "(DAT_00077464,uVar1,pbVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return pbVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) & (unary_expression ~ IDENT)) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) & (unary_expression ~ IDENT)) )) - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & LIT) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "byte * FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)\n\n{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}" (type_identifier "byte") (pointer_declarator "* FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" (* "*") (function_declarator "FUN_00036cc0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" (identifier "FUN_00036cc0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                   undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  DAT_00077460 = DAT_00077460 + 1;\n  uVar1 = FUN_00036890();\n  if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  DAT_00077908 = DAT_00077908 | 2;\n  pbVar3 = DAT_000778e8;\nLAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);\n  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }\n  DAT_000778ec = (uint)DAT_000778e8;\n  *(undefined4 *)(pbVar3 + 8) = uVar1;\n  *pbVar3 = *pbVar3 & 0xfa | 1;\n  *(undefined4 *)(pbVar3 + 0x14) = param_4;\n  *(undefined4 *)(pbVar3 + 4) = param_2;\n  *(undefined4 *)(pbVar3 + 0xc) = param_5;\n  *(undefined4 *)(pbVar3 + 0x10) = param_3;\n  FUN_000252f0(DAT_00077464,uVar1,pbVar3);\n  return pbVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (expression_statement "DAT_00077460 = DAT_00077460 + 1;" (assignment_expression "DAT_00077460 = DAT_00077460 + 1" (identifier "DAT_00077460") (= "=") (binary_expression "DAT_00077460 + 1" (identifier "DAT_00077460") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = FUN_00036890();" (assignment_expression "uVar1 = FUN_00036890()" (identifier "uVar1") (= "=") (call_expression "FUN_00036890()" (identifier "FUN_00036890") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (DAT_000778f0 - DAT_000778ec < 0x18) {\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }\n  else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" (if "if") (parenthesized_expression "(DAT_000778f0 - DAT_000778ec < 0x18)" (( "(") (binary_expression "DAT_000778f0 - DAT_000778ec < 0x18" (binary_expression "DAT_000778f0 - DAT_000778ec" (identifier "DAT_000778f0") (- "-") (identifier "DAT_000778ec")) (< "<") (number_literal "0x18")) () ")")) (compound_statement "{\n    _obstack_newchunk(&DAT_000778e0,0x18);\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" ({ "{") (expression_statement "_obstack_newchunk(&DAT_000778e0,0x18);" (call_expression "_obstack_newchunk(&DAT_000778e0,0x18)" (identifier "_obstack_newchunk") (argument_list "(&DAT_000778e0,0x18)" (( "(") (pointer_expression "&DAT_000778e0" (& "&") (identifier "DAT_000778e0")) (, ",") (number_literal "0x18") () ")"))) (; ";")) (expression_statement "pbVar2 = (byte *)(DAT_000778ec + 0x18);" (assignment_expression "pbVar2 = (byte *)(DAT_000778ec + 0x18)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(DAT_000778ec + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000778ec + 0x18)" (( "(") (binary_expression "DAT_000778ec + 0x18" (identifier "DAT_000778ec") (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" (identifier "pbVar3") (= "=") (identifier "DAT_000778e8")) (; ";")) (if_statement "if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;" (if "if") (parenthesized_expression "(pbVar2 != DAT_000778e8)" (( "(") (binary_expression "pbVar2 != DAT_000778e8" (identifier "pbVar2") (!= "!=") (identifier "DAT_000778e8")) () ")")) (goto_statement "goto LAB_00036d1f;" (goto "goto") (statement_identifier "LAB_00036d1f") (; ";"))) (} "}")) (else_clause "else {\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" (else "else") (compound_statement "{\n    pbVar2 = (byte *)(DAT_000778ec + 0x18);\n    pbVar3 = DAT_000778e8;\n    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)(DAT_000778ec + 0x18);" (assignment_expression "pbVar2 = (byte *)(DAT_000778ec + 0x18)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(DAT_000778ec + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000778ec + 0x18)" (( "(") (binary_expression "DAT_000778ec + 0x18" (identifier "DAT_000778ec") (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" (identifier "pbVar3") (= "=") (identifier "DAT_000778e8")) (; ";")) (if_statement "if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;" (if "if") (parenthesized_expression "(pbVar2 != DAT_000778e8)" (( "(") (binary_expression "pbVar2 != DAT_000778e8" (identifier "pbVar2") (!= "!=") (identifier "DAT_000778e8")) () ")")) (goto_statement "goto LAB_00036d1f;" (goto "goto") (statement_identifier "LAB_00036d1f") (; ";"))) (} "}")))) (expression_statement "DAT_00077908 = DAT_00077908 | 2;" (assignment_expression "DAT_00077908 = DAT_00077908 | 2" (identifier "DAT_00077908") (= "=") (binary_expression "DAT_00077908 | 2" (identifier "DAT_00077908") (| "|") (number_literal "2"))) (; ";")) (expression_statement "pbVar3 = DAT_000778e8;" (assignment_expression "pbVar3 = DAT_000778e8" (identifier "pbVar3") (= "=") (identifier "DAT_000778e8")) (; ";")) (labeled_statement "LAB_00036d1f:\n  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);" (statement_identifier "LAB_00036d1f") (: ":") (expression_statement "DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);" (assignment_expression "DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" (identifier "DAT_000778e8") (= "=") (cast_expression "(byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" (( "(") (binary_expression "(uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8" (call_expression "(uint)(pbVar2 + DAT_000778f8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(pbVar2 + DAT_000778f8)" (( "(") (binary_expression "pbVar2 + DAT_000778f8" (identifier "pbVar2") (+ "+") (identifier "DAT_000778f8")) () ")"))) (& "&") (unary_expression "~DAT_000778f8" (~ "~") (identifier "DAT_000778f8"))) () ")")))) (; ";"))) (if_statement "if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)\n  {\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }" (if "if") (parenthesized_expression "(DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)" (( "(") (binary_expression "DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4" (binary_expression "DAT_000778f0 - DAT_000778e4" (identifier "DAT_000778f0") (- "-") (identifier "DAT_000778e4")) (< "<") (binary_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4" (parenthesized_expression "((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8)" (( "(") (binary_expression "(uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8" (call_expression "(uint)(pbVar2 + DAT_000778f8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(pbVar2 + DAT_000778f8)" (( "(") (binary_expression "pbVar2 + DAT_000778f8" (identifier "pbVar2") (+ "+") (identifier "DAT_000778f8")) () ")"))) (& "&") (unary_expression "~DAT_000778f8" (~ "~") (identifier "DAT_000778f8"))) () ")")) (- "-") (identifier "DAT_000778e4"))) () ")")) (compound_statement "{\n    DAT_000778e8 = (byte *)DAT_000778f0;\n  }" ({ "{") (expression_statement "DAT_000778e8 = (byte *)DAT_000778f0;" (assignment_expression "DAT_000778e8 = (byte *)DAT_000778f0" (identifier "DAT_000778e8") (= "=") (cast_expression "(byte *)DAT_000778f0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "DAT_000778f0"))) (; ";")) (} "}"))) (expression_statement "DAT_000778ec = (uint)DAT_000778e8;" (assignment_expression "DAT_000778ec = (uint)DAT_000778e8" (identifier "DAT_000778ec") (= "=") (cast_expression "(uint)DAT_000778e8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "DAT_000778e8"))) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(pbVar3 + 8) = uVar1" (pointer_expression "*(undefined4 *)(pbVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 8)" (( "(") (binary_expression "pbVar3 + 8" (identifier "pbVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*pbVar3 = *pbVar3 & 0xfa | 1;" (assignment_expression "*pbVar3 = *pbVar3 & 0xfa | 1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (binary_expression "*pbVar3 & 0xfa | 1" (binary_expression "*pbVar3 & 0xfa" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (& "&") (number_literal "0xfa")) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 0x14) = param_4;" (assignment_expression "*(undefined4 *)(pbVar3 + 0x14) = param_4" (pointer_expression "*(undefined4 *)(pbVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 0x14)" (( "(") (binary_expression "pbVar3 + 0x14" (identifier "pbVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 4) = param_2;" (assignment_expression "*(undefined4 *)(pbVar3 + 4) = param_2" (pointer_expression "*(undefined4 *)(pbVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 4)" (( "(") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 0xc) = param_5;" (assignment_expression "*(undefined4 *)(pbVar3 + 0xc) = param_5" (pointer_expression "*(undefined4 *)(pbVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 0xc)" (( "(") (binary_expression "pbVar3 + 0xc" (identifier "pbVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 0x10) = param_3;" (assignment_expression "*(undefined4 *)(pbVar3 + 0x10) = param_3" (pointer_expression "*(undefined4 *)(pbVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 0x10)" (( "(") (binary_expression "pbVar3 + 0x10" (identifier "pbVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "FUN_000252f0(DAT_00077464,uVar1,pbVar3);" (call_expression "FUN_000252f0(DAT_00077464,uVar1,pbVar3)" (identifier "FUN_000252f0") (argument_list "(DAT_00077464,uVar1,pbVar3)" (( "(") (identifier "DAT_00077464") (, ",") (identifier "uVar1") (, ",") (identifier "pbVar3") () ")"))) (; ";")) (return_statement "return pbVar3;" (return "return") (identifier "pbVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(char *name,type_2 section,type_3 var_5,type_4 *frag)

{
  char *key;
  char *var_4;
  type_1 *val_00;
  type_5 local_2c;
  type_5 local_28;
  
  var_1 = var_1 + 1;
  key = var_2(name);
  if ((uint)((int)notes.chunk_limit - (int)notes.next_free) < 0x18) {
    var_3(&notes,0x18);
    var_4 = notes.next_free + 0x18;
    val_00 = (type_1 *)notes.object_base;
    if (var_4 != notes.object_base) goto LAB_00036d1f;
  }
  else {
    var_4 = notes.next_free + 0x18;
    val_00 = (type_1 *)notes.object_base;
    if (var_4 != notes.object_base) goto LAB_00036d1f;
  }
  notes._40_1_ = notes._40_1_ | 2;
  val_00 = (type_1 *)notes.object_base;
LAB_00036d1f:
  local_28 = (type_5)(var_5 >> 0x20);
  local_2c = (type_5)var_5;
  notes.object_base = (char *)((uint)(var_4 + notes.alignment_mask) & ~notes.alignment_mask);
  if ((uint)((int)notes.chunk_limit - (int)notes.chunk) <
      (uint)((int)((uint)(var_4 + notes.alignment_mask) & ~notes.alignment_mask) - (int)notes.chunk
            )) {
    notes.object_base = notes.chunk_limit;
  }
  notes.next_free = notes.object_base;
  val_00->lsy_name = key;
  *(type_6 *)&val_00->lsy_flags = *(type_6 *)&val_00->lsy_flags & 0xfa | 1;
  *(type_5 *)((int)&val_00->lsy_value + 4) = local_28;
  val_00->lsy_section = section;
  (val_00->u).lsy_frag = frag;
  *(type_5 *)&val_00->lsy_value = local_2c;
  var_6(local_hash,key,val_00);
  return val_00;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (unary_expression argument: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (unary_expression argument: (identifier)))) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement (identifier)))))

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

byte * MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                   undefined4 param_5)

{
  undefined4 uVar1;
  byte *pbVar2;
  byte *pbVar3;
  
  DAT_00077460 = DAT_00077460 + 1;
  uVar1 = FUN_00036890();
  if (DAT_000778f0 - DAT_000778ec < 0x18) {
    _obstack_newchunk(&DAT_000778e0,0x18);
    pbVar2 = (byte *)(DAT_000778ec + 0x18);
    pbVar3 = DAT_000778e8;
    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;
  }
  else {
    pbVar2 = (byte *)(DAT_000778ec + 0x18);
    pbVar3 = DAT_000778e8;
    if (pbVar2 != DAT_000778e8) goto LAB_00036d1f;
  }
  DAT_00077908 = DAT_00077908 | 2;
  pbVar3 = DAT_000778e8;
LAB_00036d1f:
  DAT_000778e8 = (byte *)((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8);
  if (DAT_000778f0 - DAT_000778e4 < ((uint)(pbVar2 + DAT_000778f8) & ~DAT_000778f8) - DAT_000778e4)
  {
    DAT_000778e8 = (byte *)DAT_000778f0;
  }
  DAT_000778ec = (uint)DAT_000778e8;
  *(undefined4 *)(pbVar3 + 8) = uVar1;
  *pbVar3 = *pbVar3 & 0xfa | 1;
  *(undefined4 *)(pbVar3 + 0x14) = param_4;
  *(undefined4 *)(pbVar3 + 4) = param_2;
  *(undefined4 *)(pbVar3 + 0xc) = param_5;
  *(undefined4 *)(pbVar3 + 0x10) = param_3;
  FUN_000252f0(DAT_00077464,uVar1,pbVar3);
  return pbVar3;
}

