
/* 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;
  Got_offset_list *pGVar3;
  Got_offset_list *pGVar4;
  uint uVar5;
  
  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 *)(ulong)((i + 1) * 0x40 - 0x40 >> 3));
  }
  else {
    (*p_Var2)();
  }
  uVar1 = (gsym->got_offsets_).got_type_;
  uVar5 = i << 3;
  if (uVar1 != 0xffffffff) {
    pGVar3 = &gsym->got_offsets_;
    while( true ) {
      if (got_type == uVar1) {
        pGVar3->got_offset_ = uVar5;
        return;
      }
      pGVar3 = pGVar3->got_next_;
      if (pGVar3 == (Got_offset_list *)0x0) break;
      uVar1 = pGVar3->got_type_;
    }
    pGVar4 = (Got_offset_list *)operator_new(0x10);
    pGVar3 = (gsym->got_offsets_).got_next_;
    pGVar4->got_type_ = got_type;
    pGVar4->got_offset_ = uVar5;
    pGVar4->got_next_ = pGVar3;
    (gsym->got_offsets_).got_next_ = pGVar4;
    return;
  }
  (gsym->got_offsets_).got_type_ = got_type;
  (gsym->got_offsets_).got_offset_ = uVar5;
  return;
}



void FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)

{
  int iVar1;
  undefined8 uVar2;
  int *piVar3;
  uint uVar4;
  
  if (*(code **)(*param_1 + 200) == FUN_001fea40) {
    uVar4 = (param_2 + 1) * 0x40;
    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);
  }
  else {
    (**(code **)(*param_1 + 200))();
  }
  iVar1 = *(int *)(param_3 + 0x28);
  param_2 = param_2 << 3;
  if (iVar1 != -1) {
    piVar3 = (int *)(param_3 + 0x28);
    while( true ) {
      if (param_4 == iVar1) {
        piVar3[1] = param_2;
        return;
      }
      piVar3 = *(int **)(piVar3 + 2);
      if (piVar3 == (int *)0x0) break;
      iVar1 = *piVar3;
    }
    piVar3 = (int *)FUN_002d94a0(0x10);
    uVar2 = *(undefined8 *)(param_3 + 0x30);
    *piVar3 = param_4;
    piVar3[1] = param_2;
    *(undefined8 *)(piVar3 + 2) = uVar2;
    *(int **)(param_3 + 0x30) = piVar3;
    return;
  }
  *(int *)(param_3 + 0x28) = param_4;
  *(int *)(param_3 + 0x2c) = param_2;
  return;
}


PUSH R12
MOV R12D,ECX
PUSH RBP
MOV RBP,RDX
LEA RDX,[0x1fea40]
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV EBX,ESI
MOV RAX,qword ptr [RAX + 0xc8]
CMP RAX,RDX
JNZ 0x00209850
LEA ESI,[RSI + 0x1]
ADD RDI,0x50
SHL ESI,0x6
MOV EDX,ESI
SUB ESI,0x40
SHR EDX,0x3
SHR ESI,0x3
CALL 0x001a46a0
MOV EDX,dword ptr [RBP + 0x28]
SHL EBX,0x3
CMP EDX,-0x1
JZ 0x00209830
LEA RAX,[RBP + 0x28]
CMP R12D,EDX
JNZ 0x00209805
JMP 0x00209840
CMP R12D,dword ptr [RAX]
JZ 0x00209840
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JNZ 0x00209800
MOV EDI,0x10
CALL 0x002d94a0
MOV RDX,qword ptr [RBP + 0x30]
MOV dword ptr [RAX],R12D
MOV dword ptr [RAX + 0x4],EBX
MOV qword ptr [RAX + 0x8],RDX
POP RBX
MOV qword ptr [RBP + 0x30],RAX
POP RBP
POP R12
RET
MOV dword ptr [RBP + 0x28],R12D
MOV dword ptr [RBP + 0x2c],EBX
POP RBX
POP RBP
POP R12
RET
MOV dword ptr [RAX + 0x4],EBX
POP RBX
POP RBP
POP R12
RET
CALL RAX
JMP 0x002097e0
(translation_unit "void FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)" identifier (parameter_list "(long *param_1,int param_2,long param_3,int param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 200) == FUN_001fea40)" ( (binary_expression "*(code **)(*param_1 + 200) == FUN_001fea40" (pointer_expression "*(code **)(*param_1 + 200)" * (cast_expression "(code **)(*param_1 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 200)" ( (binary_expression "*param_1 + 200" (pointer_expression "*param_1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }" { (expression_statement "uVar4 = (param_2 + 1) * 0x40;" (assignment_expression "uVar4 = (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_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);" (call_expression "FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3)" identifier (argument_list "(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3)" ( (binary_expression "param_1 + 10" identifier + number_literal) , (binary_expression "uVar4 - 0x40 >> 3" (binary_expression "uVar4 - 0x40" identifier - number_literal) >> number_literal) , (binary_expression "uVar4 >> 3" identifier >> number_literal) ))) ;) }) (else_clause "else {\n    (**(code **)(*param_1 + 200))();\n  }" else (compound_statement "{\n    (**(code **)(*param_1 + 200))();\n  }" { (expression_statement "(**(code **)(*param_1 + 200))();" (call_expression "(**(code **)(*param_1 + 200))()" (parenthesized_expression "(**(code **)(*param_1 + 200))" ( (pointer_expression "**(code **)(*param_1 + 200)" * (pointer_expression "*(code **)(*param_1 + 200)" * (cast_expression "(code **)(*param_1 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 200)" ( (binary_expression "*param_1 + 200" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (expression_statement "iVar1 = *(int *)(param_3 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x28)" identifier = (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 << 3;" (assignment_expression "param_2 = param_2 << 3" identifier = (binary_expression "param_2 << 3" identifier << number_literal)) ;) (if_statement "if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }" { (expression_statement "piVar3 = (int *)(param_3 + 0x28);" (assignment_expression "piVar3 = (int *)(param_3 + 0x28)" identifier = (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }" { (if_statement "if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }" if (parenthesized_expression "(param_4 == iVar1)" ( (binary_expression "param_4 == iVar1" identifier == identifier) )) (compound_statement "{\n        piVar3[1] = param_2;\n        return;\n      }" { (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = *(int **)(piVar3 + 2);" (assignment_expression "piVar3 = *(int **)(piVar3 + 2)" identifier = (pointer_expression "*(int **)(piVar3 + 2)" * (cast_expression "(int **)(piVar3 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "piVar3 = (int *)FUN_002d94a0(0x10);" (assignment_expression "piVar3 = (int *)FUN_002d94a0(0x10)" identifier = (cast_expression "(int *)FUN_002d94a0(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d94a0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "uVar2 = *(undefined8 *)(param_3 + 0x30);" (assignment_expression "uVar2 = *(undefined8 *)(param_3 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_3 + 0x30)" * (cast_expression "(undefined8 *)(param_3 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*piVar3 = param_4;" (assignment_expression "*piVar3 = param_4" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar2;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar2" (pointer_expression "*(undefined8 *)(piVar3 + 2)" * (cast_expression "(undefined8 *)(piVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_3 + 0x30) = piVar3;" (assignment_expression "*(int **)(param_3 + 0x30) = piVar3" (pointer_expression "*(int **)(param_3 + 0x30)" * (cast_expression "(int **)(param_3 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(param_3 + 0x28) = param_4;" (assignment_expression "*(int *)(param_3 + 0x28) = param_4" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0x2c) = param_2;" (assignment_expression "*(int *)(param_3 + 0x2c) = param_2" (pointer_expression "*(int *)(param_3 + 0x2c)" * (cast_expression "(int *)(param_3 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2c)" ( (binary_expression "param_3 + 0x2c" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* 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  Got_offset_list *pGVar3;\n  Got_offset_list *pGVar4;\n  uint uVar5;\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 *)(ulong)((i + 1) * 0x40 - 0x40 >> 3));\n  }\n  else {\n    (*p_Var2)();\n  }\n  uVar1 = (gsym->got_offsets_).got_type_;\n  uVar5 = i << 3;\n  if (uVar1 != 0xffffffff) {\n    pGVar3 = &gsym->got_offsets_;\n    while( true ) {\n      if (got_type == uVar1) {\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) break;\n      uVar1 = pGVar3->got_type_;\n    }\n    pGVar4 = (Got_offset_list *)operator_new(0x10);\n    pGVar3 = (gsym->got_offsets_).got_next_;\n    pGVar4->got_type_ = got_type;\n    pGVar4->got_offset_ = uVar5;\n    pGVar4->got_next_ = pGVar3;\n    (gsym->got_offsets_).got_next_ = pGVar4;\n    return;\n  }\n  (gsym->got_offsets_).got_type_ = got_type;\n  (gsym->got_offsets_).got_offset_ = uVar5;\n  return;\n}\n\n" 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 "Got_offset_list *pGVar3;" type_identifier (pointer_declarator "*pGVar3" * identifier) ;) (declaration "Got_offset_list *pGVar4;" type_identifier (pointer_declarator "*pGVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier 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 *)(ulong)((i + 1) * 0x40 - 0x40 >> 3));\n  }\n  else {\n    (*p_Var2)();\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 *)(ulong)((i + 1) * 0x40 - 0x40 >> 3));\n  }" { (labeled_statement "Free_list::remove(&this->free_list_,(char *)(ulong)((i + 1) * 0x40 - 0x40 >> 3));" statement_identifier : (ERROR ":" :) (expression_statement "remove(&this->free_list_,(char *)(ulong)((i + 1) * 0x40 - 0x40 >> 3));" (call_expression "remove(&this->free_list_,(char *)(ulong)((i + 1) * 0x40 - 0x40 >> 3))" identifier (argument_list "(&this->free_list_,(char *)(ulong)((i + 1) * 0x40 - 0x40 >> 3))" ( (pointer_expression "&this->free_list_" & (field_expression "this->free_list_" identifier -> field_identifier)) , (cast_expression "(char *)(ulong)((i + 1) * 0x40 - 0x40 >> 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(ulong)((i + 1) * 0x40 - 0x40 >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((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)();\n  }" else (compound_statement "{\n    (*p_Var2)();\n  }" { (expression_statement "(*p_Var2)();" (call_expression "(*p_Var2)()" (parenthesized_expression "(*p_Var2)" ( (pointer_expression "*p_Var2" * identifier) )) (argument_list "()" ( ))) ;) }))) (expression_statement "uVar1 = (gsym->got_offsets_).got_type_;" (assignment_expression "uVar1 = (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 "uVar5 = i << 3;" (assignment_expression "uVar5 = i << 3" identifier = (binary_expression "i << 3" identifier << number_literal)) ;) (if_statement "if (uVar1 != 0xffffffff) {\n    pGVar3 = &gsym->got_offsets_;\n    while( true ) {\n      if (got_type == uVar1) {\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) break;\n      uVar1 = pGVar3->got_type_;\n    }\n    pGVar4 = (Got_offset_list *)operator_new(0x10);\n    pGVar3 = (gsym->got_offsets_).got_next_;\n    pGVar4->got_type_ = got_type;\n    pGVar4->got_offset_ = uVar5;\n    pGVar4->got_next_ = pGVar3;\n    (gsym->got_offsets_).got_next_ = pGVar4;\n    return;\n  }" if (parenthesized_expression "(uVar1 != 0xffffffff)" ( (binary_expression "uVar1 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    pGVar3 = &gsym->got_offsets_;\n    while( true ) {\n      if (got_type == uVar1) {\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) break;\n      uVar1 = pGVar3->got_type_;\n    }\n    pGVar4 = (Got_offset_list *)operator_new(0x10);\n    pGVar3 = (gsym->got_offsets_).got_next_;\n    pGVar4->got_type_ = got_type;\n    pGVar4->got_offset_ = uVar5;\n    pGVar4->got_next_ = pGVar3;\n    (gsym->got_offsets_).got_next_ = pGVar4;\n    return;\n  }" { (expression_statement "pGVar3 = &gsym->got_offsets_;" (assignment_expression "pGVar3 = &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 == uVar1) {\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) break;\n      uVar1 = pGVar3->got_type_;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (got_type == uVar1) {\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) break;\n      uVar1 = pGVar3->got_type_;\n    }" { (if_statement "if (got_type == uVar1) {\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }" if (parenthesized_expression "(got_type == uVar1)" ( (binary_expression "got_type == uVar1" identifier == identifier) )) (compound_statement "{\n        pGVar3->got_offset_ = uVar5;\n        return;\n      }" { (expression_statement "pGVar3->got_offset_ = uVar5;" (assignment_expression "pGVar3->got_offset_ = uVar5" (field_expression "pGVar3->got_offset_" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pGVar3 = pGVar3->got_next_;" (assignment_expression "pGVar3 = pGVar3->got_next_" identifier = (field_expression "pGVar3->got_next_" identifier -> field_identifier)) ;) (if_statement "if (pGVar3 == (Got_offset_list *)0x0) break;" if (parenthesized_expression "(pGVar3 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar3 == (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 "uVar1 = pGVar3->got_type_;" (assignment_expression "uVar1 = pGVar3->got_type_" identifier = (field_expression "pGVar3->got_type_" identifier -> field_identifier)) ;) })) (expression_statement "pGVar4 = (Got_offset_list *)operator_new(0x10);" (assignment_expression "pGVar4 = (Got_offset_list *)operator_new(0x10)" identifier = (cast_expression "(Got_offset_list *)operator_new(0x10)" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "pGVar3 = (gsym->got_offsets_).got_next_;" (assignment_expression "pGVar3 = (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 "pGVar4->got_type_ = got_type;" (assignment_expression "pGVar4->got_type_ = got_type" (field_expression "pGVar4->got_type_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar4->got_offset_ = uVar5;" (assignment_expression "pGVar4->got_offset_ = uVar5" (field_expression "pGVar4->got_offset_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar4->got_next_ = pGVar3;" (assignment_expression "pGVar4->got_next_ = pGVar3" (field_expression "pGVar4->got_next_" identifier -> field_identifier) = identifier) ;) (expression_statement "(gsym->got_offsets_).got_next_ = pGVar4;" (assignment_expression "(gsym->got_offsets_).got_next_ = pGVar4" (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_ = uVar5;" (assignment_expression "(gsym->got_offsets_).got_offset_ = uVar5" (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_002097a0(long *param_1,int param_2,long param_3,int param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)" identifier (parameter_list "(long *param_1,int param_2,long param_3,int param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 200) == FUN_001fea40)" ( (binary_expression "*(code **)(*param_1 + 200) == FUN_001fea40" (pointer_expression "*(code **)(*param_1 + 200)" * (cast_expression "(code **)(*param_1 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 200)" ( (binary_expression "*param_1 + 200" (pointer_expression "*param_1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }" { (expression_statement "uVar4 = (param_2 + 1) * 0x40;" (assignment_expression "uVar4 = (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_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);" (call_expression "FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3)" identifier (argument_list "(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3)" ( (binary_expression "param_1 + 10" identifier + number_literal) , (binary_expression "uVar4 - 0x40 >> 3" (binary_expression "uVar4 - 0x40" identifier - number_literal) >> number_literal) , (binary_expression "uVar4 >> 3" identifier >> number_literal) ))) ;) }) (else_clause "else {\n    (**(code **)(*param_1 + 200))();\n  }" else (compound_statement "{\n    (**(code **)(*param_1 + 200))();\n  }" { (expression_statement "(**(code **)(*param_1 + 200))();" (call_expression "(**(code **)(*param_1 + 200))()" (parenthesized_expression "(**(code **)(*param_1 + 200))" ( (pointer_expression "**(code **)(*param_1 + 200)" * (pointer_expression "*(code **)(*param_1 + 200)" * (cast_expression "(code **)(*param_1 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 200)" ( (binary_expression "*param_1 + 200" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (expression_statement "iVar1 = *(int *)(param_3 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x28)" identifier = (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 << 3;" (assignment_expression "param_2 = param_2 << 3" identifier = (binary_expression "param_2 << 3" identifier << number_literal)) ;) (if_statement "if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }" { (expression_statement "piVar3 = (int *)(param_3 + 0x28);" (assignment_expression "piVar3 = (int *)(param_3 + 0x28)" identifier = (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }" { (if_statement "if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }" if (parenthesized_expression "(param_4 == iVar1)" ( (binary_expression "param_4 == iVar1" identifier == identifier) )) (compound_statement "{\n        piVar3[1] = param_2;\n        return;\n      }" { (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = *(int **)(piVar3 + 2);" (assignment_expression "piVar3 = *(int **)(piVar3 + 2)" identifier = (pointer_expression "*(int **)(piVar3 + 2)" * (cast_expression "(int **)(piVar3 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "piVar3 = (int *)FUN_002d94a0(0x10);" (assignment_expression "piVar3 = (int *)FUN_002d94a0(0x10)" identifier = (cast_expression "(int *)FUN_002d94a0(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d94a0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "uVar2 = *(undefined8 *)(param_3 + 0x30);" (assignment_expression "uVar2 = *(undefined8 *)(param_3 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_3 + 0x30)" * (cast_expression "(undefined8 *)(param_3 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*piVar3 = param_4;" (assignment_expression "*piVar3 = param_4" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar2;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar2" (pointer_expression "*(undefined8 *)(piVar3 + 2)" * (cast_expression "(undefined8 *)(piVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_3 + 0x30) = piVar3;" (assignment_expression "*(int **)(param_3 + 0x30) = piVar3" (pointer_expression "*(int **)(param_3 + 0x30)" * (cast_expression "(int **)(param_3 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x30)" ( (binary_expression "param_3 + 0x30" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(param_3 + 0x28) = param_4;" (assignment_expression "*(int *)(param_3 + 0x28) = param_4" (pointer_expression "*(int *)(param_3 + 0x28)" * (cast_expression "(int *)(param_3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0x2c) = param_2;" (assignment_expression "*(int *)(param_3 + 0x2c) = param_2" (pointer_expression "*(int *)(param_3 + 0x2c)" * (cast_expression "(int *)(param_3 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2c)" ( (binary_expression "param_3 + 0x2c" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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) , (binary_expression IDENT >> 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 ( ))) ;) }))) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_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 (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 * (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_002097a0(long *param_1,int param_2,long param_3,int param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002097a0(long *param_1,int param_2,long param_3,int param_4)" (identifier "FUN_002097a0") (parameter_list "(long *param_1,int param_2,long param_3,int param_4)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }\n  iVar1 = *(int *)(param_3 + 0x28);\n  param_2 = param_2 << 3;\n  if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }\n  *(int *)(param_3 + 0x28) = param_4;\n  *(int *)(param_3 + 0x2c) = param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (*(code **)(*param_1 + 200) == FUN_001fea40) {\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }\n  else {\n    (**(code **)(*param_1 + 200))();\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 200) == FUN_001fea40)" (( "(") (binary_expression "*(code **)(*param_1 + 200) == FUN_001fea40" (pointer_expression "*(code **)(*param_1 + 200)" (* "*") (cast_expression "(code **)(*param_1 + 200)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 200)" (( "(") (binary_expression "*param_1 + 200" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "200")) () ")")))) (== "==") (identifier "FUN_001fea40")) () ")")) (compound_statement "{\n    uVar4 = (param_2 + 1) * 0x40;\n    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);\n  }" ({ "{") (expression_statement "uVar4 = (param_2 + 1) * 0x40;" (assignment_expression "uVar4 = (param_2 + 1) * 0x40" (identifier "uVar4") (= "=") (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_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);" (call_expression "FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3)" (identifier "FUN_001a46a0") (argument_list "(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) (, ",") (binary_expression "uVar4 - 0x40 >> 3" (binary_expression "uVar4 - 0x40" (identifier "uVar4") (- "-") (number_literal "0x40")) (>> ">>") (number_literal "3")) (, ",") (binary_expression "uVar4 >> 3" (identifier "uVar4") (>> ">>") (number_literal "3")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    (**(code **)(*param_1 + 200))();\n  }" (else "else") (compound_statement "{\n    (**(code **)(*param_1 + 200))();\n  }" ({ "{") (expression_statement "(**(code **)(*param_1 + 200))();" (call_expression "(**(code **)(*param_1 + 200))()" (parenthesized_expression "(**(code **)(*param_1 + 200))" (( "(") (pointer_expression "**(code **)(*param_1 + 200)" (* "*") (pointer_expression "*(code **)(*param_1 + 200)" (* "*") (cast_expression "(code **)(*param_1 + 200)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 200)" (( "(") (binary_expression "*param_1 + 200" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "200")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar1 = *(int *)(param_3 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x28)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 0x28)" (* "*") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "param_2 = param_2 << 3;" (assignment_expression "param_2 = param_2 << 3" (identifier "param_2") (= "=") (binary_expression "param_2 << 3" (identifier "param_2") (<< "<<") (number_literal "3"))) (; ";")) (if_statement "if (iVar1 != -1) {\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    piVar3 = (int *)(param_3 + 0x28);\n    while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }\n    piVar3 = (int *)FUN_002d94a0(0x10);\n    uVar2 = *(undefined8 *)(param_3 + 0x30);\n    *piVar3 = param_4;\n    piVar3[1] = param_2;\n    *(undefined8 *)(piVar3 + 2) = uVar2;\n    *(int **)(param_3 + 0x30) = piVar3;\n    return;\n  }" ({ "{") (expression_statement "piVar3 = (int *)(param_3 + 0x28);" (assignment_expression "piVar3 = (int *)(param_3 + 0x28)" (identifier "piVar3") (= "=") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (while_statement "while( true ) {\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (param_4 == iVar1) {\n        piVar3[1] = param_2;\n        return;\n      }\n      piVar3 = *(int **)(piVar3 + 2);\n      if (piVar3 == (int *)0x0) break;\n      iVar1 = *piVar3;\n    }" ({ "{") (if_statement "if (param_4 == iVar1) {\n        piVar3[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        piVar3[1] = param_2;\n        return;\n      }" ({ "{") (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar3 = *(int **)(piVar3 + 2);" (assignment_expression "piVar3 = *(int **)(piVar3 + 2)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(piVar3 + 2)" (* "*") (cast_expression "(int **)(piVar3 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar3 + 2)" (( "(") (binary_expression "piVar3 + 2" (identifier "piVar3") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)FUN_002d94a0(0x10);" (assignment_expression "piVar3 = (int *)FUN_002d94a0(0x10)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_002d94a0(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002d94a0(0x10)" (identifier "FUN_002d94a0") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined8 *)(param_3 + 0x30);" (assignment_expression "uVar2 = *(undefined8 *)(param_3 + 0x30)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined8 *)(param_3 + 0x30)" (* "*") (cast_expression "(undefined8 *)(param_3 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x30)" (( "(") (binary_expression "param_3 + 0x30" (identifier "param_3") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*piVar3 = param_4;" (assignment_expression "*piVar3 = param_4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar2;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar2" (pointer_expression "*(undefined8 *)(piVar3 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 2)" (( "(") (binary_expression "piVar3 + 2" (identifier "piVar3") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(int **)(param_3 + 0x30) = piVar3;" (assignment_expression "*(int **)(param_3 + 0x30) = piVar3" (pointer_expression "*(int **)(param_3 + 0x30)" (* "*") (cast_expression "(int **)(param_3 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x30)" (( "(") (binary_expression "param_3 + 0x30" (identifier "param_3") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(int *)(param_3 + 0x28) = param_4;" (assignment_expression "*(int *)(param_3 + 0x28) = param_4" (pointer_expression "*(int *)(param_3 + 0x28)" (* "*") (cast_expression "(int *)(param_3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(int *)(param_3 + 0x2c) = param_2;" (assignment_expression "*(int *)(param_3 + 0x2c) = param_2" (pointer_expression "*(int *)(param_3 + 0x2c)" (* "*") (cast_expression "(int *)(param_3 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2c)" (( "(") (binary_expression "param_3 + 0x2c" (identifier "param_3") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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_3 var_4,Symbol *gsym,type_3 var_6)

{
  type_3 var_5;
  type_1 *var_1;
  type_2 *var_7;
  type_2 *pGVar4;
  type_3 uVar5;
  
  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 *)(ulong)((var_4 + 1) * 0x40 - 0x40 >> 3));
  }
  else {
    (*var_1)();
  }
  var_5 = (gsym->got_offsets_).got_type_;
  uVar5 = var_4 << 3;
  if (var_5 != 0xffffffff) {
    var_7 = &gsym->got_offsets_;
    while( true ) {
      if (var_6 == var_5) {
        var_7->got_offset_ = uVar5;
        return;
      }
      var_7 = var_7->got_next_;
      if (var_7 == (type_2 *)0x0) break;
      var_5 = var_7->got_type_;
    }
    pGVar4 = (type_2 *)var_8(0x10);
    var_7 = (gsym->got_offsets_).got_next_;
    pGVar4->got_type_ = var_6;
    pGVar4->got_offset_ = uVar5;
    pGVar4->got_next_ = var_7;
    (gsym->got_offsets_).got_next_ = pGVar4;
    return;
  }
  (gsym->got_offsets_).got_type_ = var_6;
  (gsym->got_offsets_).got_offset_ = uVar5;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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)) (binary_expression left: (identifier) right: (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)))))) (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: (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))))))) (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: (type_identifier) 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: (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: (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))))

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

{
  int iVar1;
  undefined8 uVar2;
  int *piVar3;
  uint uVar4;
  
  if (*(code **)(*param_1 + 200) == FUN_001fea40) {
    uVar4 = (param_2 + 1) * 0x40;
    FUN_001a46a0(param_1 + 10,uVar4 - 0x40 >> 3,uVar4 >> 3);
  }
  else {
    (**(code **)(*param_1 + 200))();
  }
  iVar1 = *(int *)(param_3 + 0x28);
  param_2 = param_2 << 3;
  if (iVar1 != -1) {
    piVar3 = (int *)(param_3 + 0x28);
    while( true ) {
      if (param_4 == iVar1) {
        piVar3[1] = param_2;
        return;
      }
      piVar3 = *(int **)(piVar3 + 2);
      if (piVar3 == (int *)0x0) break;
      iVar1 = *piVar3;
    }
    piVar3 = (int *)FUN_002d94a0(0x10);
    uVar2 = *(undefined8 *)(param_3 + 0x30);
    *piVar3 = param_4;
    piVar3[1] = param_2;
    *(undefined8 *)(piVar3 + 2) = uVar2;
    *(int **)(param_3 + 0x30) = piVar3;
    return;
  }
  *(int *)(param_3 + 0x28) = param_4;
  *(int *)(param_3 + 0x2c) = param_2;
  return;
}

