
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void reserve_global(Output_data_got<64,_true> * this, uint i, Symbol *
   gsym, uint got_type) */

void __thiscall
gold::Output_data_got<64,_true>::reserve_global
          (Output_data_got<64,_true> *this,uint i,Symbol *gsym,uint got_type)

{
  uint uVar1;
  _func_int_varargs *p_Var2;
  uint uVar3;
  Got_offset_list *pGVar4;
  Got_offset_list *pGVar5;
  
  p_Var2 = (this->super_Output_data_got_base).super_Output_section_data_build.
           super_Output_section_data.super_Output_data._vptr_Output_data[0x19];
  if (p_Var2 == do_reserve_slot) {
    Free_list::remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3));
  }
  else {
    (*p_Var2)(this,i);
  }
  uVar3 = (gsym->got_offsets_).got_type_;
  uVar1 = i * 8;
  if (uVar3 != 0xffffffff) {
    pGVar4 = &gsym->got_offsets_;
    while( true ) {
      if (got_type == uVar3) {
        pGVar4->got_offset_ = uVar1;
        return;
      }
      pGVar4 = pGVar4->got_next_;
      if (pGVar4 == (Got_offset_list *)0x0) break;
      uVar3 = pGVar4->got_type_;
    }
    pGVar5 = (Got_offset_list *)operator_new(0xc);
    pGVar4 = (gsym->got_offsets_).got_next_;
    pGVar5->got_type_ = got_type;
    pGVar5->got_offset_ = uVar1;
    pGVar5->got_next_ = pGVar4;
    (gsym->got_offsets_).got_next_ = pGVar5;
    return;
  }
  (gsym->got_offsets_).got_type_ = got_type;
  (gsym->got_offsets_).got_offset_ = uVar1;
  return;
}



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

void FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  
  if (*(code **)(*param_1 + 100) == FUN_000f2830) {
    uVar3 = (param_2 + 1) * 0x40;
    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);
  }
  else {
    (**(code **)(*param_1 + 100))(param_1,param_2);
  }
  iVar1 = *(int *)(param_3 + 0x1c);
  param_2 = param_2 * 8;
  if (iVar1 != -1) {
    piVar2 = (int *)(param_3 + 0x1c);
    while( true ) {
      if (param_4 == iVar1) {
        piVar2[1] = param_2;
        return;
      }
      piVar2 = (int *)piVar2[2];
      if (piVar2 == (int *)0x0) break;
      iVar1 = *piVar2;
    }
    piVar2 = (int *)FUN_001aa8c0(0xc);
    iVar1 = *(int *)(param_3 + 0x24);
    *piVar2 = param_4;
    piVar2[1] = param_2;
    piVar2[2] = iVar1;
    *(int **)(param_3 + 0x24) = piVar2;
    return;
  }
  *(int *)(param_3 + 0x1c) = param_4;
  *(int *)(param_3 + 0x20) = param_2;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x245317
SUB ESP,0xc
MOV ECX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [ESP + 0x2c]
MOV EAX,dword ptr [ECX]
LEA EDX,[EBX + 0xffdb3830]
MOV EAX,dword ptr [EAX + 0x64]
CMP EAX,EDX
JNZ 0x000f9db0
MOV EAX,dword ptr [ESP + 0x24]
XOR EDX,EDX
SUB ESP,0xc
ADD ECX,0x38
PUSH EDX
XOR EDX,EDX
LEA EBP,[EAX + 0x1]
SHL EBP,0x6
MOV EAX,EBP
SUB EBP,0x40
SHR EAX,0x3
SHR EBP,0x3
PUSH EAX
PUSH EDX
PUSH EBP
PUSH ECX
CALL 0x000a81a0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESI + 0x1c]
LEA EBP,[EAX*0x8 + 0x0]
CMP EDX,-0x1
JZ 0x000f9d90
LEA EAX,[ESI + 0x1c]
CMP EDI,EDX
JNZ 0x000f9d64
JMP 0x000f9da0
CMP EDI,dword ptr [EAX]
JZ 0x000f9da0
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JNZ 0x000f9d60
SUB ESP,0xc
PUSH 0xc
CALL 0x001aa8c0
MOV EDX,dword ptr [ESI + 0x24]
ADD ESP,0x10
MOV dword ptr [EAX],EDI
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [EAX + 0x8],EDX
MOV dword ptr [ESI + 0x24],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESI + 0x1c],EDI
MOV dword ptr [ESI + 0x20],EBP
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EAX + 0x4],EBP
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x2c]
PUSH ECX
CALL EAX
ADD ESP,0x10
JMP 0x000f9d3d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}\n\n" comment (function_definition "void FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 100) == FUN_000f2830)" ( (binary_expression "*(code **)(*param_1 + 100) == FUN_000f2830" (pointer_expression "*(code **)(*param_1 + 100)" * (cast_expression "(code **)(*param_1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 100)" ( (binary_expression "*param_1 + 100" (pointer_expression "*param_1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }" { (expression_statement "uVar3 = (param_2 + 1) * 0x40;" (assignment_expression "uVar3 = (param_2 + 1) * 0x40" identifier = (binary_expression "(param_2 + 1) * 0x40" (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);" (call_expression "FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0)" identifier (argument_list "(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) , (binary_expression "uVar3 - 0x40 >> 3" (binary_expression "uVar3 - 0x40" identifier - number_literal) >> number_literal) , number_literal , (binary_expression "uVar3 >> 3" identifier >> number_literal) , number_literal ))) ;) }) (else_clause "else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" else (compound_statement "{\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" { (expression_statement "(**(code **)(*param_1 + 100))(param_1,param_2);" (call_expression "(**(code **)(*param_1 + 100))(param_1,param_2)" (parenthesized_expression "(**(code **)(*param_1 + 100))" ( (pointer_expression "**(code **)(*param_1 + 100)" * (pointer_expression "*(code **)(*param_1 + 100)" * (cast_expression "(code **)(*param_1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 100)" ( (binary_expression "*param_1 + 100" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "iVar1 = *(int *)(param_3 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x1c)" identifier = (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 * 8;" (assignment_expression "param_2 = param_2 * 8" identifier = (binary_expression "param_2 * 8" identifier * number_literal)) ;) (if_statement "if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }" { (expression_statement "piVar2 = (int *)(param_3 + 0x1c);" (assignment_expression "piVar2 = (int *)(param_3 + 0x1c)" identifier = (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" { (if_statement "if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }" if (parenthesized_expression "(param_4 == iVar1)" ( (binary_expression "param_4 == iVar1" identifier == identifier) )) (compound_statement "{\n        piVar2[1] = param_2;\n        return;\n      }" { (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = (int *)piVar2[2];" (assignment_expression "piVar2 = (int *)piVar2[2]" identifier = (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (expression_statement "piVar2 = (int *)FUN_001aa8c0(0xc);" (assignment_expression "piVar2 = (int *)FUN_001aa8c0(0xc)" identifier = (cast_expression "(int *)FUN_001aa8c0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa8c0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x24)" identifier = (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = param_4;" (assignment_expression "*piVar2 = param_4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(param_3 + 0x24) = piVar2;" (assignment_expression "*(int **)(param_3 + 0x24) = piVar2" (pointer_expression "*(int **)(param_3 + 0x24)" * (cast_expression "(int **)(param_3 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(param_3 + 0x1c) = param_4;" (assignment_expression "*(int *)(param_3 + 0x1c) = param_4" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0x20) = param_2;" (assignment_expression "*(int *)(param_3 + 0x20) = param_2" (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: void reserve_global(Output_data_got<64,_true> * this, uint i, Symbol *\n   gsym, uint got_type) */\n\nvoid __thiscall\ngold::Output_data_got<64,_true>::reserve_global\n          (Output_data_got<64,_true> *this,uint i,Symbol *gsym,uint got_type)\n\n{\n  uint uVar1;\n  _func_int_varargs *p_Var2;\n  uint uVar3;\n  Got_offset_list *pGVar4;\n  Got_offset_list *pGVar5;\n  \n  p_Var2 = (this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data.super_Output_data._vptr_Output_data[0x19];\n  if (p_Var2 == do_reserve_slot) {\n    Free_list::remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3));\n  }\n  else {\n    (*p_Var2)(this,i);\n  }\n  uVar3 = (gsym->got_offsets_).got_type_;\n  uVar1 = i * 8;\n  if (uVar3 != 0xffffffff) {\n    pGVar4 = &gsym->got_offsets_;\n    while( true ) {\n      if (got_type == uVar3) {\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }\n      pGVar4 = pGVar4->got_next_;\n      if (pGVar4 == (Got_offset_list *)0x0) break;\n      uVar3 = pGVar4->got_type_;\n    }\n    pGVar5 = (Got_offset_list *)operator_new(0xc);\n    pGVar4 = (gsym->got_offsets_).got_next_;\n    pGVar5->got_type_ = got_type;\n    pGVar5->got_offset_ = uVar1;\n    pGVar5->got_next_ = pGVar4;\n    (gsym->got_offsets_).got_next_ = pGVar5;\n    return;\n  }\n  (gsym->got_offsets_).got_type_ = got_type;\n  (gsym->got_offsets_).got_offset_ = uVar1;\n  return;\n}\n\n" comment comment comment (declaration "void __thiscall\ngold::Output_data_got<64,_true>::reserve_global\n          (Output_data_got<64,_true> *this,uint i,Symbol *gsym,uint got_type)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::reserve_global\n          (Output_data_got<64,_true> *this,uint i,Symbol *gsym,uint got_type)\n\n{\n  uint" identifier > : : (function_declarator "reserve_global\n          (Output_data_got<64,_true> *this,uint i,Symbol *gsym,uint got_type)" identifier (parameter_list "(Output_data_got<64,_true> *this,uint i,Symbol *gsym,uint got_type)" ( (parameter_declaration "Output_data_got" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint i" type_identifier identifier) , (parameter_declaration "Symbol *gsym" type_identifier (pointer_declarator "*gsym" * identifier)) , (parameter_declaration "uint got_type" type_identifier identifier) ))) { identifier) identifier ;) (declaration "_func_int_varargs *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "Got_offset_list *pGVar4;" type_identifier (pointer_declarator "*pGVar4" * identifier) ;) (declaration "Got_offset_list *pGVar5;" type_identifier (pointer_declarator "*pGVar5" * identifier) ;) (expression_statement "p_Var2 = (this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data.super_Output_data._vptr_Output_data[0x19];" (assignment_expression "p_Var2 = (this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data.super_Output_data._vptr_Output_data[0x19]" identifier = (subscript_expression "(this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data.super_Output_data._vptr_Output_data[0x19]" (field_expression "(this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data.super_Output_data._vptr_Output_data" (field_expression "(this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data.super_Output_data" (field_expression "(this->super_Output_data_got_base).super_Output_section_data_build.\n           super_Output_section_data" (field_expression "(this->super_Output_data_got_base).super_Output_section_data_build" (parenthesized_expression "(this->super_Output_data_got_base)" ( (field_expression "this->super_Output_data_got_base" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier) [ number_literal ])) ;) (if_statement "if (p_Var2 == do_reserve_slot) {\n    Free_list::remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3));\n  }\n  else {\n    (*p_Var2)(this,i);\n  }" if (parenthesized_expression "(p_Var2 == do_reserve_slot)" ( (binary_expression "p_Var2 == do_reserve_slot" identifier == identifier) )) (compound_statement "{\n    Free_list::remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3));\n  }" { (labeled_statement "Free_list::remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3));" statement_identifier : (ERROR ":" :) (expression_statement "remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3));" (call_expression "remove(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3))" identifier (argument_list "(&this->free_list_,(char *)((i + 1) * 0x40 - 0x40 >> 3))" ( (pointer_expression "&this->free_list_" & (field_expression "this->free_list_" identifier -> field_identifier)) , (cast_expression "(char *)((i + 1) * 0x40 - 0x40 >> 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((i + 1) * 0x40 - 0x40 >> 3)" ( (binary_expression "(i + 1) * 0x40 - 0x40 >> 3" (binary_expression "(i + 1) * 0x40 - 0x40" (binary_expression "(i + 1) * 0x40" (parenthesized_expression "(i + 1)" ( (binary_expression "i + 1" identifier + number_literal) )) * number_literal) - number_literal) >> number_literal) ))) ))) ;)) }) (else_clause "else {\n    (*p_Var2)(this,i);\n  }" else (compound_statement "{\n    (*p_Var2)(this,i);\n  }" { (expression_statement "(*p_Var2)(this,i);" (call_expression "(*p_Var2)(this,i)" (parenthesized_expression "(*p_Var2)" ( (pointer_expression "*p_Var2" * identifier) )) (argument_list "(this,i)" ( identifier , identifier ))) ;) }))) (expression_statement "uVar3 = (gsym->got_offsets_).got_type_;" (assignment_expression "uVar3 = (gsym->got_offsets_).got_type_" identifier = (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar1 = i * 8;" (assignment_expression "uVar1 = i * 8" identifier = (binary_expression "i * 8" identifier * number_literal)) ;) (if_statement "if (uVar3 != 0xffffffff) {\n    pGVar4 = &gsym->got_offsets_;\n    while( true ) {\n      if (got_type == uVar3) {\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }\n      pGVar4 = pGVar4->got_next_;\n      if (pGVar4 == (Got_offset_list *)0x0) break;\n      uVar3 = pGVar4->got_type_;\n    }\n    pGVar5 = (Got_offset_list *)operator_new(0xc);\n    pGVar4 = (gsym->got_offsets_).got_next_;\n    pGVar5->got_type_ = got_type;\n    pGVar5->got_offset_ = uVar1;\n    pGVar5->got_next_ = pGVar4;\n    (gsym->got_offsets_).got_next_ = pGVar5;\n    return;\n  }" if (parenthesized_expression "(uVar3 != 0xffffffff)" ( (binary_expression "uVar3 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    pGVar4 = &gsym->got_offsets_;\n    while( true ) {\n      if (got_type == uVar3) {\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }\n      pGVar4 = pGVar4->got_next_;\n      if (pGVar4 == (Got_offset_list *)0x0) break;\n      uVar3 = pGVar4->got_type_;\n    }\n    pGVar5 = (Got_offset_list *)operator_new(0xc);\n    pGVar4 = (gsym->got_offsets_).got_next_;\n    pGVar5->got_type_ = got_type;\n    pGVar5->got_offset_ = uVar1;\n    pGVar5->got_next_ = pGVar4;\n    (gsym->got_offsets_).got_next_ = pGVar5;\n    return;\n  }" { (expression_statement "pGVar4 = &gsym->got_offsets_;" (assignment_expression "pGVar4 = &gsym->got_offsets_" identifier = (pointer_expression "&gsym->got_offsets_" & (field_expression "gsym->got_offsets_" identifier -> field_identifier))) ;) (while_statement "while( true ) {\n      if (got_type == uVar3) {\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }\n      pGVar4 = pGVar4->got_next_;\n      if (pGVar4 == (Got_offset_list *)0x0) break;\n      uVar3 = pGVar4->got_type_;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (got_type == uVar3) {\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }\n      pGVar4 = pGVar4->got_next_;\n      if (pGVar4 == (Got_offset_list *)0x0) break;\n      uVar3 = pGVar4->got_type_;\n    }" { (if_statement "if (got_type == uVar3) {\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }" if (parenthesized_expression "(got_type == uVar3)" ( (binary_expression "got_type == uVar3" identifier == identifier) )) (compound_statement "{\n        pGVar4->got_offset_ = uVar1;\n        return;\n      }" { (expression_statement "pGVar4->got_offset_ = uVar1;" (assignment_expression "pGVar4->got_offset_ = uVar1" (field_expression "pGVar4->got_offset_" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pGVar4 = pGVar4->got_next_;" (assignment_expression "pGVar4 = pGVar4->got_next_" identifier = (field_expression "pGVar4->got_next_" identifier -> field_identifier)) ;) (if_statement "if (pGVar4 == (Got_offset_list *)0x0) break;" if (parenthesized_expression "(pGVar4 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar4 == (Got_offset_list *)0x0" identifier == (cast_expression "(Got_offset_list *)0x0" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = pGVar4->got_type_;" (assignment_expression "uVar3 = pGVar4->got_type_" identifier = (field_expression "pGVar4->got_type_" identifier -> field_identifier)) ;) })) (expression_statement "pGVar5 = (Got_offset_list *)operator_new(0xc);" (assignment_expression "pGVar5 = (Got_offset_list *)operator_new(0xc)" identifier = (cast_expression "(Got_offset_list *)operator_new(0xc)" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "pGVar4 = (gsym->got_offsets_).got_next_;" (assignment_expression "pGVar4 = (gsym->got_offsets_).got_next_" identifier = (field_expression "(gsym->got_offsets_).got_next_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pGVar5->got_type_ = got_type;" (assignment_expression "pGVar5->got_type_ = got_type" (field_expression "pGVar5->got_type_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar5->got_offset_ = uVar1;" (assignment_expression "pGVar5->got_offset_ = uVar1" (field_expression "pGVar5->got_offset_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar5->got_next_ = pGVar4;" (assignment_expression "pGVar5->got_next_ = pGVar4" (field_expression "pGVar5->got_next_" identifier -> field_identifier) = identifier) ;) (expression_statement "(gsym->got_offsets_).got_next_ = pGVar5;" (assignment_expression "(gsym->got_offsets_).got_next_ = pGVar5" (field_expression "(gsym->got_offsets_).got_next_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "(gsym->got_offsets_).got_type_ = got_type;" (assignment_expression "(gsym->got_offsets_).got_type_ = got_type" (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(gsym->got_offsets_).got_offset_ = uVar1;" (assignment_expression "(gsym->got_offsets_).got_offset_ = uVar1" (field_expression "(gsym->got_offsets_).got_offset_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 100) == FUN_000f2830)" ( (binary_expression "*(code **)(*param_1 + 100) == FUN_000f2830" (pointer_expression "*(code **)(*param_1 + 100)" * (cast_expression "(code **)(*param_1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 100)" ( (binary_expression "*param_1 + 100" (pointer_expression "*param_1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }" { (expression_statement "uVar3 = (param_2 + 1) * 0x40;" (assignment_expression "uVar3 = (param_2 + 1) * 0x40" identifier = (binary_expression "(param_2 + 1) * 0x40" (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);" (call_expression "FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0)" identifier (argument_list "(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) , (binary_expression "uVar3 - 0x40 >> 3" (binary_expression "uVar3 - 0x40" identifier - number_literal) >> number_literal) , number_literal , (binary_expression "uVar3 >> 3" identifier >> number_literal) , number_literal ))) ;) }) (else_clause "else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" else (compound_statement "{\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" { (expression_statement "(**(code **)(*param_1 + 100))(param_1,param_2);" (call_expression "(**(code **)(*param_1 + 100))(param_1,param_2)" (parenthesized_expression "(**(code **)(*param_1 + 100))" ( (pointer_expression "**(code **)(*param_1 + 100)" * (pointer_expression "*(code **)(*param_1 + 100)" * (cast_expression "(code **)(*param_1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 100)" ( (binary_expression "*param_1 + 100" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "iVar1 = *(int *)(param_3 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x1c)" identifier = (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 * 8;" (assignment_expression "param_2 = param_2 * 8" identifier = (binary_expression "param_2 * 8" identifier * number_literal)) ;) (if_statement "if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }" { (expression_statement "piVar2 = (int *)(param_3 + 0x1c);" (assignment_expression "piVar2 = (int *)(param_3 + 0x1c)" identifier = (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" { (if_statement "if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }" if (parenthesized_expression "(param_4 == iVar1)" ( (binary_expression "param_4 == iVar1" identifier == identifier) )) (compound_statement "{\n        piVar2[1] = param_2;\n        return;\n      }" { (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = (int *)piVar2[2];" (assignment_expression "piVar2 = (int *)piVar2[2]" identifier = (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (expression_statement "piVar2 = (int *)FUN_001aa8c0(0xc);" (assignment_expression "piVar2 = (int *)FUN_001aa8c0(0xc)" identifier = (cast_expression "(int *)FUN_001aa8c0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa8c0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x24)" identifier = (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = param_4;" (assignment_expression "*piVar2 = param_4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(param_3 + 0x24) = piVar2;" (assignment_expression "*(int **)(param_3 + 0x24) = piVar2" (pointer_expression "*(int **)(param_3 + 0x24)" * (cast_expression "(int **)(param_3 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(param_3 + 0x1c) = param_4;" (assignment_expression "*(int *)(param_3 + 0x1c) = param_4" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0x20) = param_2;" (assignment_expression "*(int *)(param_3 + 0x20) = param_2" (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression (binary_expression IDENT - LIT) >> LIT) , LIT , (binary_expression IDENT >> LIT) , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (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) ;) (return_statement return ;) })))
(function_definition "void FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000f9ce0(int *param_1,int param_2,int param_3,int param_4)" (identifier "FUN_000f9ce0") (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }\n  iVar1 = *(int *)(param_3 + 0x1c);\n  param_2 = param_2 * 8;\n  if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }\n  *(int *)(param_3 + 0x1c) = param_4;\n  *(int *)(param_3 + 0x20) = param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (*(code **)(*param_1 + 100) == FUN_000f2830) {\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }\n  else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 100) == FUN_000f2830)" (( "(") (binary_expression "*(code **)(*param_1 + 100) == FUN_000f2830" (pointer_expression "*(code **)(*param_1 + 100)" (* "*") (cast_expression "(code **)(*param_1 + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 100)" (( "(") (binary_expression "*param_1 + 100" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "100")) () ")")))) (== "==") (identifier "FUN_000f2830")) () ")")) (compound_statement "{\n    uVar3 = (param_2 + 1) * 0x40;\n    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);\n  }" ({ "{") (expression_statement "uVar3 = (param_2 + 1) * 0x40;" (assignment_expression "uVar3 = (param_2 + 1) * 0x40" (identifier "uVar3") (= "=") (binary_expression "(param_2 + 1) * 0x40" (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "0x40"))) (; ";")) (expression_statement "FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);" (call_expression "FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0)" (identifier "FUN_000a81a0") (argument_list "(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0)" (( "(") (binary_expression "param_1 + 0xe" (identifier "param_1") (+ "+") (number_literal "0xe")) (, ",") (binary_expression "uVar3 - 0x40 >> 3" (binary_expression "uVar3 - 0x40" (identifier "uVar3") (- "-") (number_literal "0x40")) (>> ">>") (number_literal "3")) (, ",") (number_literal "0") (, ",") (binary_expression "uVar3 >> 3" (identifier "uVar3") (>> ">>") (number_literal "3")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" (else "else") (compound_statement "{\n    (**(code **)(*param_1 + 100))(param_1,param_2);\n  }" ({ "{") (expression_statement "(**(code **)(*param_1 + 100))(param_1,param_2);" (call_expression "(**(code **)(*param_1 + 100))(param_1,param_2)" (parenthesized_expression "(**(code **)(*param_1 + 100))" (( "(") (pointer_expression "**(code **)(*param_1 + 100)" (* "*") (pointer_expression "*(code **)(*param_1 + 100)" (* "*") (cast_expression "(code **)(*param_1 + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 100)" (( "(") (binary_expression "*param_1 + 100" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar1 = *(int *)(param_3 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "param_2 = param_2 * 8;" (assignment_expression "param_2 = param_2 * 8" (identifier "param_2") (= "=") (binary_expression "param_2 * 8" (identifier "param_2") (* "*") (number_literal "8"))) (; ";")) (if_statement "if (iVar1 != -1) {\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    piVar2 = (int *)(param_3 + 0x1c);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n    piVar2 = (int *)FUN_001aa8c0(0xc);\n    iVar1 = *(int *)(param_3 + 0x24);\n    *piVar2 = param_4;\n    piVar2[1] = param_2;\n    piVar2[2] = iVar1;\n    *(int **)(param_3 + 0x24) = piVar2;\n    return;\n  }" ({ "{") (expression_statement "piVar2 = (int *)(param_3 + 0x1c);" (assignment_expression "piVar2 = (int *)(param_3 + 0x1c)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (while_statement "while( true ) {\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }\n      piVar2 = (int *)piVar2[2];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" ({ "{") (if_statement "if (param_4 == iVar1) {\n        piVar2[1] = param_2;\n        return;\n      }" (if "if") (parenthesized_expression "(param_4 == iVar1)" (( "(") (binary_expression "param_4 == iVar1" (identifier "param_4") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n        piVar2[1] = param_2;\n        return;\n      }" ({ "{") (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)piVar2[2];" (assignment_expression "piVar2 = (int *)piVar2[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar2[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)FUN_001aa8c0(0xc);" (assignment_expression "piVar2 = (int *)FUN_001aa8c0(0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_001aa8c0(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001aa8c0(0xc)" (identifier "FUN_001aa8c0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 0x24)" (* "*") (cast_expression "(int *)(param_3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*piVar2 = param_4;" (assignment_expression "*piVar2 = param_4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int **)(param_3 + 0x24) = piVar2;" (assignment_expression "*(int **)(param_3 + 0x24) = piVar2" (pointer_expression "*(int **)(param_3 + 0x24)" (* "*") (cast_expression "(int **)(param_3 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(int *)(param_3 + 0x1c) = param_4;" (assignment_expression "*(int *)(param_3 + 0x1c) = param_4" (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(int *)(param_3 + 0x20) = param_2;" (assignment_expression "*(int *)(param_3 + 0x20) = param_2" (pointer_expression "*(int *)(param_3 + 0x20)" (* "*") (cast_expression "(int *)(param_3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: void reserve_global(Output_data_got<64,_true> * this, uint i, Symbol *
   gsym, uint got_type) */

void __thiscall
gold::Output_data_got<64,_true>::reserve_global
          (Output_data_got<64,_true> *this,type_2 var_4,Symbol *gsym,type_2 var_6)

{
  type_2 uVar1;
  type_1 *var_1;
  type_2 var_5;
  type_3 *var_7;
  type_3 *pGVar5;
  
  var_1 = (this->super_Output_data_got_base).super_Output_section_data_build.
           super_Output_section_data.super_Output_data._vptr_Output_data[0x19];
  if (var_1 == var_2) {
    Free_list::var_3(&this->free_list_,(char *)((var_4 + 1) * 0x40 - 0x40 >> 3));
  }
  else {
    (*var_1)(this,var_4);
  }
  var_5 = (gsym->got_offsets_).got_type_;
  uVar1 = var_4 * 8;
  if (var_5 != 0xffffffff) {
    var_7 = &gsym->got_offsets_;
    while( true ) {
      if (var_6 == var_5) {
        var_7->got_offset_ = uVar1;
        return;
      }
      var_7 = var_7->got_next_;
      if (var_7 == (type_3 *)0x0) break;
      var_5 = var_7->got_type_;
    }
    pGVar5 = (type_3 *)var_8(0xc);
    var_7 = (gsym->got_offsets_).got_next_;
    pGVar5->got_type_ = var_6;
    pGVar5->got_offset_ = uVar1;
    pGVar5->got_next_ = var_7;
    (gsym->got_offsets_).got_next_ = pGVar5;
    return;
  }
  (gsym->got_offsets_).got_type_ = var_6;
  (gsym->got_offsets_).got_offset_ = uVar1;
  return;
}


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

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

void MASKED(int *param_1,int param_2,int param_3,int param_4)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  
  if (*(code **)(*param_1 + 100) == FUN_000f2830) {
    uVar3 = (param_2 + 1) * 0x40;
    FUN_000a81a0(param_1 + 0xe,uVar3 - 0x40 >> 3,0,uVar3 >> 3,0);
  }
  else {
    (**(code **)(*param_1 + 100))(param_1,param_2);
  }
  iVar1 = *(int *)(param_3 + 0x1c);
  param_2 = param_2 * 8;
  if (iVar1 != -1) {
    piVar2 = (int *)(param_3 + 0x1c);
    while( true ) {
      if (param_4 == iVar1) {
        piVar2[1] = param_2;
        return;
      }
      piVar2 = (int *)piVar2[2];
      if (piVar2 == (int *)0x0) break;
      iVar1 = *piVar2;
    }
    piVar2 = (int *)FUN_001aa8c0(0xc);
    iVar1 = *(int *)(param_3 + 0x24);
    *piVar2 = param_4;
    piVar2[1] = param_2;
    piVar2[2] = iVar1;
    *(int **)(param_3 + 0x24) = piVar2;
    return;
  }
  *(int *)(param_3 + 0x1c) = param_4;
  *(int *)(param_3 + 0x20) = param_2;
  return;
}

