
/* DWARF original prototype: bool add_global(Output_data_got<64,_false> * this, Symbol * gsym, uint
   got_type) */

bool __thiscall
gold::Output_data_got<64,_false>::add_global
          (Output_data_got<64,_false> *this,Symbol *gsym,uint got_type)

{
  uint uVar1;
  Got_entry got_entry;
  Got_entry got_entry_00;
  uint uVar2;
  Got_offset_list *pGVar3;
  Got_offset_list *pGVar4;
  undefined4 uStack_3c;
  
  pGVar4 = &gsym->got_offsets_;
  if (pGVar4 == (Got_offset_list *)0x0) {
    got_entry_00._12_4_ = uStack_3c;
    got_entry_00._8_4_ = 0x7fffffff;
    got_entry_00.u_.gsym = gsym;
    got_entry_00.addend_ = 0;
    uVar2 = add_got_entry(this,got_entry_00);
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) goto LAB_0027c29e;
  }
  else {
    uVar2 = (gsym->got_offsets_).got_type_;
    pGVar3 = pGVar4;
    while (got_type != uVar2) {
      pGVar3 = pGVar3->got_next_;
      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;
      uVar2 = pGVar3->got_type_;
    }
    if (pGVar3->got_offset_ != 0xffffffff) {
      return false;
    }
LAB_0027c21d:
    got_entry._12_4_ = uStack_3c;
    got_entry._8_4_ = 0x7fffffff;
    got_entry.u_.gsym = gsym;
    got_entry.addend_ = 0;
    uVar2 = add_got_entry(this,got_entry);
    uVar1 = (gsym->got_offsets_).got_type_;
    if (uVar1 != 0xffffffff) {
      while( true ) {
        if (got_type == uVar1) {
          pGVar4->got_offset_ = uVar2;
          return true;
        }
        pGVar4 = pGVar4->got_next_;
        if (pGVar4 == (Got_offset_list *)0x0) break;
        uVar1 = pGVar4->got_type_;
      }
LAB_0027c29e:
      pGVar3 = (Got_offset_list *)operator_new(0x10);
      pGVar4 = (gsym->got_offsets_).got_next_;
      pGVar3->got_type_ = got_type;
      pGVar3->got_offset_ = uVar2;
      pGVar3->got_next_ = pGVar4;
      (gsym->got_offsets_).got_next_ = pGVar3;
      return true;
    }
  }
  (gsym->got_offsets_).got_type_ = got_type;
  (gsym->got_offsets_).got_offset_ = uVar2;
  return true;
}



undefined8 FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = (int *)(param_2 + 0x28);
  if (piVar5 == (int *)0x0) {
    iVar4 = FUN_0027c080();
    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;
  }
  else {
    iVar4 = *(int *)(param_2 + 0x28);
    piVar2 = piVar5;
    while (param_3 != iVar4) {
      piVar2 = *(int **)(piVar2 + 2);
      if (piVar2 == (int *)0x0) goto LAB_0027c21d;
      iVar4 = *piVar2;
    }
    if (piVar2[1] != -1) {
      return 0;
    }
LAB_0027c21d:
    iVar4 = FUN_0027c080();
    iVar1 = *(int *)(param_2 + 0x28);
    if (iVar1 != -1) {
      while( true ) {
        if (param_3 == iVar1) {
          piVar5[1] = iVar4;
          return 1;
        }
        piVar5 = *(int **)(piVar5 + 2);
        if (piVar5 == (int *)0x0) break;
        iVar1 = *piVar5;
      }
LAB_0027c29e:
      piVar5 = (int *)FUN_00337280(0x10);
      uVar3 = *(undefined8 *)(param_2 + 0x30);
      *piVar5 = param_3;
      piVar5[1] = iVar4;
      *(undefined8 *)(piVar5 + 2) = uVar3;
      *(int **)(param_2 + 0x30) = piVar5;
      return 1;
    }
  }
  *(int *)(param_2 + 0x28) = param_3;
  *(int *)(param_2 + 0x2c) = iVar4;
  return 1;
}


PUSH R13
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV EBX,EDX
SUB RSP,0x28
ADD RBP,0x28
JZ 0x0027c2cc
MOV RAX,RBP
CMP EDX,dword ptr [RSI + 0x28]
JNZ 0x0027c214
JMP 0x0027c278
CMP EBX,dword ptr [RAX]
JZ 0x0027c278
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JNZ 0x0027c210
MOV dword ptr [RSP + 0x8],0x7fffffff
SUB RSP,0x8
MOV qword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x8],R12
PUSH qword ptr [RSP + 0x18]
PUSH qword ptr [RSP + 0x18]
PUSH R12
CALL 0x0027c080
ADD RSP,0x20
MOV R13D,EAX
MOV EAX,dword ptr [R12 + 0x28]
CMP EAX,-0x1
JZ 0x0027c2fb
CMP EBX,EAX
JNZ 0x0027c295
MOV dword ptr [RBP + 0x4],R13D
ADD RSP,0x28
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
RET
CMP dword ptr [RAX + 0x4],-0x1
JZ 0x0027c21d
ADD RSP,0x28
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
RET
CMP EBX,dword ptr [RBP]
JZ 0x0027c25f
MOV RBP,qword ptr [RBP + 0x8]
TEST RBP,RBP
JNZ 0x0027c290
MOV EDI,0x10
CALL 0x00337280
MOV RDX,qword ptr [R12 + 0x30]
MOV dword ptr [RAX],EBX
MOV dword ptr [RAX + 0x4],R13D
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [R12 + 0x30],RAX
ADD RSP,0x28
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
RET
MOV dword ptr [RSP + 0x8],0x7fffffff
MOV qword ptr [RSP + 0x10],0x0
PUSH RAX
PUSH qword ptr [RSP + 0x18]
PUSH qword ptr [RSP + 0x18]
PUSH RSI
CALL 0x0027c080
ADD RSP,0x20
CMP dword ptr [R12 + 0x28],-0x1
MOV R13D,EAX
JNZ 0x0027c29e
MOV dword ptr [R12 + 0x28],EBX
MOV EAX,0x1
MOV dword ptr [R12 + 0x2c],R13D
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "undefined8 FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}" type_identifier (function_declarator "FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)(param_2 + 0x28);" (assignment_expression "piVar5 = (int *)(param_2 + 0x28)" identifier = (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }" { (expression_statement "iVar4 = FUN_0027c080();" (assignment_expression "iVar4 = FUN_0027c080()" identifier = (call_expression "FUN_0027c080()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;" if (parenthesized_expression "(*(int *)(param_2 + 0x28) != -1)" ( (binary_expression "*(int *)(param_2 + 0x28) != -1" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0027c29e;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = piVar5;" (assignment_expression "piVar2 = piVar5" identifier = identifier) ;) (while_statement "while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }" while (parenthesized_expression "(param_3 != iVar4)" ( (binary_expression "param_3 != iVar4" identifier != identifier) )) (compound_statement "{\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }" { (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" identifier = (pointer_expression "*(int **)(piVar2 + 2)" * (cast_expression "(int **)(piVar2 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) goto LAB_0027c21d;" 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)) )) (goto_statement "goto LAB_0027c21d;" goto statement_identifier ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (if_statement "if (piVar2[1] != -1) {\n      return 0;\n    }" if (parenthesized_expression "(piVar2[1] != -1)" ( (binary_expression "piVar2[1] != -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0027c21d:\n    iVar4 = FUN_0027c080();" statement_identifier : (expression_statement "iVar4 = FUN_0027c080();" (assignment_expression "iVar4 = FUN_0027c080()" identifier = (call_expression "FUN_0027c080()" identifier (argument_list "()" ( )))) ;)) (expression_statement "iVar1 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }" { (while_statement "while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }" { (if_statement "if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }" if (parenthesized_expression "(param_3 == iVar1)" ( (binary_expression "param_3 == iVar1" identifier == identifier) )) (compound_statement "{\n          piVar5[1] = iVar4;\n          return 1;\n        }" { (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar5 = *(int **)(piVar5 + 2);" (assignment_expression "piVar5 = *(int **)(piVar5 + 2)" identifier = (pointer_expression "*(int **)(piVar5 + 2)" * (cast_expression "(int **)(piVar5 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) break;" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (labeled_statement "LAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_00337280(0x10);" (assignment_expression "piVar5 = (int *)FUN_00337280(0x10)" identifier = (cast_expression "(int *)FUN_00337280(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00337280(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;)) (expression_statement "uVar3 = *(undefined8 *)(param_2 + 0x30);" (assignment_expression "uVar3 = *(undefined8 *)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_2 + 0x30)" * (cast_expression "(undefined8 *)(param_2 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 *)(piVar5 + 2) = uVar3;" (assignment_expression "*(undefined8 *)(piVar5 + 2) = uVar3" (pointer_expression "*(undefined8 *)(piVar5 + 2)" * (cast_expression "(undefined8 *)(piVar5 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x30) = piVar5;" (assignment_expression "*(int **)(param_2 + 0x30) = piVar5" (pointer_expression "*(int **)(param_2 + 0x30)" * (cast_expression "(int **)(param_2 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "*(int *)(param_2 + 0x28) = param_3;" (assignment_expression "*(int *)(param_2 + 0x28) = param_3" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x2c) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x2c) = iVar4" (pointer_expression "*(int *)(param_2 + 0x2c)" * (cast_expression "(int *)(param_2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: bool add_global(Output_data_got<64,_false> * this, Symbol * gsym, uint\n   got_type) */\n\nbool __thiscall\ngold::Output_data_got<64,_false>::add_global\n          (Output_data_got<64,_false> *this,Symbol *gsym,uint got_type)\n\n{\n  uint uVar1;\n  Got_entry got_entry;\n  Got_entry got_entry_00;\n  uint uVar2;\n  Got_offset_list *pGVar3;\n  Got_offset_list *pGVar4;\n  undefined4 uStack_3c;\n  \n  pGVar4 = &gsym->got_offsets_;\n  if (pGVar4 == (Got_offset_list *)0x0) {\n    got_entry_00._12_4_ = uStack_3c;\n    got_entry_00._8_4_ = 0x7fffffff;\n    got_entry_00.u_.gsym = gsym;\n    got_entry_00.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry_00);\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) goto LAB_0027c29e;\n  }\n  else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return false;\n    }\nLAB_0027c21d:\n    got_entry._12_4_ = uStack_3c;\n    got_entry._8_4_ = 0x7fffffff;\n    got_entry.u_.gsym = gsym;\n    got_entry.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry);\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }\nLAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      return true;\n    }\n  }\n  (gsym->got_offsets_).got_type_ = got_type;\n  (gsym->got_offsets_).got_offset_ = uVar2;\n  return true;\n}\n\n" comment (declaration "bool __thiscall\ngold::Output_data_got<64,_false>::add_global\n          (Output_data_got<64,_false> *this,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 "_false>::add_global\n          (Output_data_got<64,_false> *this,Symbol *gsym,uint got_type)\n\n{\n  uint" identifier > : : (function_declarator "add_global\n          (Output_data_got<64,_false> *this,Symbol *gsym,uint got_type)" identifier (parameter_list "(Output_data_got<64,_false> *this,Symbol *gsym,uint got_type)" ( (parameter_declaration "Output_data_got" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol *gsym" type_identifier (pointer_declarator "*gsym" * identifier)) , (parameter_declaration "uint got_type" type_identifier identifier) ))) { identifier) identifier ;) (declaration "Got_entry got_entry;" type_identifier identifier ;) (declaration "Got_entry got_entry_00;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Got_offset_list *pGVar3;" type_identifier (pointer_declarator "*pGVar3" * identifier) ;) (declaration "Got_offset_list *pGVar4;" type_identifier (pointer_declarator "*pGVar4" * identifier) ;) (declaration "undefined4 uStack_3c;" type_identifier identifier ;) (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))) ;) (if_statement "if (pGVar4 == (Got_offset_list *)0x0) {\n    got_entry_00._12_4_ = uStack_3c;\n    got_entry_00._8_4_ = 0x7fffffff;\n    got_entry_00.u_.gsym = gsym;\n    got_entry_00.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry_00);\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) goto LAB_0027c29e;\n  }\n  else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return false;\n    }\nLAB_0027c21d:\n    got_entry._12_4_ = uStack_3c;\n    got_entry._8_4_ = 0x7fffffff;\n    got_entry.u_.gsym = gsym;\n    got_entry.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry);\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }\nLAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      return true;\n    }\n  }" 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)) )) (compound_statement "{\n    got_entry_00._12_4_ = uStack_3c;\n    got_entry_00._8_4_ = 0x7fffffff;\n    got_entry_00.u_.gsym = gsym;\n    got_entry_00.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry_00);\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) goto LAB_0027c29e;\n  }" { (expression_statement "got_entry_00._12_4_ = uStack_3c;" (assignment_expression "got_entry_00._12_4_ = uStack_3c" (field_expression "got_entry_00._12_4_" identifier . field_identifier) = identifier) ;) (expression_statement "got_entry_00._8_4_ = 0x7fffffff;" (assignment_expression "got_entry_00._8_4_ = 0x7fffffff" (field_expression "got_entry_00._8_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "got_entry_00.u_.gsym = gsym;" (assignment_expression "got_entry_00.u_.gsym = gsym" (field_expression "got_entry_00.u_.gsym" (field_expression "got_entry_00.u_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "got_entry_00.addend_ = 0;" (assignment_expression "got_entry_00.addend_ = 0" (field_expression "got_entry_00.addend_" identifier . field_identifier) = number_literal) ;) (expression_statement "uVar2 = add_got_entry(this,got_entry_00);" (assignment_expression "uVar2 = add_got_entry(this,got_entry_00)" identifier = (call_expression "add_got_entry(this,got_entry_00)" identifier (argument_list "(this,got_entry_00)" ( identifier , identifier )))) ;) (if_statement "if ((gsym->got_offsets_).got_type_ != 0xffffffff) goto LAB_0027c29e;" if (parenthesized_expression "((gsym->got_offsets_).got_type_ != 0xffffffff)" ( (binary_expression "(gsym->got_offsets_).got_type_ != 0xffffffff" (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) != number_literal) )) (goto_statement "goto LAB_0027c29e;" goto statement_identifier ;)) }) (else_clause "else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return false;\n    }\nLAB_0027c21d:\n    got_entry._12_4_ = uStack_3c;\n    got_entry._8_4_ = 0x7fffffff;\n    got_entry.u_.gsym = gsym;\n    got_entry.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry);\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }\nLAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      return true;\n    }\n  }" else (compound_statement "{\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return false;\n    }\nLAB_0027c21d:\n    got_entry._12_4_ = uStack_3c;\n    got_entry._8_4_ = 0x7fffffff;\n    got_entry.u_.gsym = gsym;\n    got_entry.addend_ = 0;\n    uVar2 = add_got_entry(this,got_entry);\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }\nLAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      return true;\n    }\n  }" { (expression_statement "uVar2 = (gsym->got_offsets_).got_type_;" (assignment_expression "uVar2 = (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 "pGVar3 = pGVar4;" (assignment_expression "pGVar3 = pGVar4" identifier = identifier) ;) (while_statement "while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;\n      uVar2 = pGVar3->got_type_;\n    }" while (parenthesized_expression "(got_type != uVar2)" ( (binary_expression "got_type != uVar2" identifier != identifier) )) (compound_statement "{\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_0027c21d;\n      uVar2 = pGVar3->got_type_;\n    }" { (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) goto LAB_0027c21d;" 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)) )) (goto_statement "goto LAB_0027c21d;" goto statement_identifier ;)) (expression_statement "uVar2 = pGVar3->got_type_;" (assignment_expression "uVar2 = pGVar3->got_type_" identifier = (field_expression "pGVar3->got_type_" identifier -> field_identifier)) ;) })) (if_statement "if (pGVar3->got_offset_ != 0xffffffff) {\n      return false;\n    }" if (parenthesized_expression "(pGVar3->got_offset_ != 0xffffffff)" ( (binary_expression "pGVar3->got_offset_ != 0xffffffff" (field_expression "pGVar3->got_offset_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (labeled_statement "LAB_0027c21d:\n    got_entry._12_4_ = uStack_3c;" statement_identifier : (expression_statement "got_entry._12_4_ = uStack_3c;" (assignment_expression "got_entry._12_4_ = uStack_3c" (field_expression "got_entry._12_4_" identifier . field_identifier) = identifier) ;)) (expression_statement "got_entry._8_4_ = 0x7fffffff;" (assignment_expression "got_entry._8_4_ = 0x7fffffff" (field_expression "got_entry._8_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "got_entry.u_.gsym = gsym;" (assignment_expression "got_entry.u_.gsym = gsym" (field_expression "got_entry.u_.gsym" (field_expression "got_entry.u_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "got_entry.addend_ = 0;" (assignment_expression "got_entry.addend_ = 0" (field_expression "got_entry.addend_" identifier . field_identifier) = number_literal) ;) (expression_statement "uVar2 = add_got_entry(this,got_entry);" (assignment_expression "uVar2 = add_got_entry(this,got_entry)" identifier = (call_expression "add_got_entry(this,got_entry)" identifier (argument_list "(this,got_entry)" ( identifier , identifier )))) ;) (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)) ;) (if_statement "if (uVar1 != 0xffffffff) {\n      while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }\nLAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      return true;\n    }" if (parenthesized_expression "(uVar1 != 0xffffffff)" ( (binary_expression "uVar1 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n      while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }\nLAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      return true;\n    }" { (while_statement "while( true ) {\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) break;\n        uVar1 = pGVar4->got_type_;\n      }" { (if_statement "if (got_type == uVar1) {\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }" if (parenthesized_expression "(got_type == uVar1)" ( (binary_expression "got_type == uVar1" identifier == identifier) )) (compound_statement "{\n          pGVar4->got_offset_ = uVar2;\n          return true;\n        }" { (expression_statement "pGVar4->got_offset_ = uVar2;" (assignment_expression "pGVar4->got_offset_ = uVar2" (field_expression "pGVar4->got_offset_" identifier -> field_identifier) = identifier) ;) (return_statement "return true;" return true ;) })) (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 "uVar1 = pGVar4->got_type_;" (assignment_expression "uVar1 = pGVar4->got_type_" identifier = (field_expression "pGVar4->got_type_" identifier -> field_identifier)) ;) })) (labeled_statement "LAB_0027c29e:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);" statement_identifier : (expression_statement "pGVar3 = (Got_offset_list *)operator_new(0x10);" (assignment_expression "pGVar3 = (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 "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 "pGVar3->got_type_ = got_type;" (assignment_expression "pGVar3->got_type_ = got_type" (field_expression "pGVar3->got_type_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar3->got_offset_ = uVar2;" (assignment_expression "pGVar3->got_offset_ = uVar2" (field_expression "pGVar3->got_offset_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar3->got_next_ = pGVar4;" (assignment_expression "pGVar3->got_next_ = pGVar4" (field_expression "pGVar3->got_next_" identifier -> field_identifier) = identifier) ;) (expression_statement "(gsym->got_offsets_).got_next_ = pGVar3;" (assignment_expression "(gsym->got_offsets_).got_next_ = pGVar3" (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 true;" return true ;) })) }))) (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_ = uVar2;" (assignment_expression "(gsym->got_offsets_).got_offset_ = uVar2" (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 true;" return true ;) (ERROR "}" }))
(translation_unit "undefined8 FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}" type_identifier (function_declarator "FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)(param_2 + 0x28);" (assignment_expression "piVar5 = (int *)(param_2 + 0x28)" identifier = (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }" { (expression_statement "iVar4 = FUN_0027c080();" (assignment_expression "iVar4 = FUN_0027c080()" identifier = (call_expression "FUN_0027c080()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;" if (parenthesized_expression "(*(int *)(param_2 + 0x28) != -1)" ( (binary_expression "*(int *)(param_2 + 0x28) != -1" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0027c29e;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = piVar5;" (assignment_expression "piVar2 = piVar5" identifier = identifier) ;) (while_statement "while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }" while (parenthesized_expression "(param_3 != iVar4)" ( (binary_expression "param_3 != iVar4" identifier != identifier) )) (compound_statement "{\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }" { (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" identifier = (pointer_expression "*(int **)(piVar2 + 2)" * (cast_expression "(int **)(piVar2 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) goto LAB_0027c21d;" 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)) )) (goto_statement "goto LAB_0027c21d;" goto statement_identifier ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (if_statement "if (piVar2[1] != -1) {\n      return 0;\n    }" if (parenthesized_expression "(piVar2[1] != -1)" ( (binary_expression "piVar2[1] != -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0027c21d:\n    iVar4 = FUN_0027c080();" statement_identifier : (expression_statement "iVar4 = FUN_0027c080();" (assignment_expression "iVar4 = FUN_0027c080()" identifier = (call_expression "FUN_0027c080()" identifier (argument_list "()" ( )))) ;)) (expression_statement "iVar1 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }" { (while_statement "while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }" { (if_statement "if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }" if (parenthesized_expression "(param_3 == iVar1)" ( (binary_expression "param_3 == iVar1" identifier == identifier) )) (compound_statement "{\n          piVar5[1] = iVar4;\n          return 1;\n        }" { (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar5 = *(int **)(piVar5 + 2);" (assignment_expression "piVar5 = *(int **)(piVar5 + 2)" identifier = (pointer_expression "*(int **)(piVar5 + 2)" * (cast_expression "(int **)(piVar5 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) break;" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (labeled_statement "LAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_00337280(0x10);" (assignment_expression "piVar5 = (int *)FUN_00337280(0x10)" identifier = (cast_expression "(int *)FUN_00337280(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00337280(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;)) (expression_statement "uVar3 = *(undefined8 *)(param_2 + 0x30);" (assignment_expression "uVar3 = *(undefined8 *)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_2 + 0x30)" * (cast_expression "(undefined8 *)(param_2 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 *)(piVar5 + 2) = uVar3;" (assignment_expression "*(undefined8 *)(piVar5 + 2) = uVar3" (pointer_expression "*(undefined8 *)(piVar5 + 2)" * (cast_expression "(undefined8 *)(piVar5 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x30) = piVar5;" (assignment_expression "*(int **)(param_2 + 0x30) = piVar5" (pointer_expression "*(int **)(param_2 + 0x30)" * (cast_expression "(int **)(param_2 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "*(int *)(param_2 + 0x28) = param_3;" (assignment_expression "*(int *)(param_2 + 0x28) = param_3" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x2c) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x2c) = iVar4" (pointer_expression "*(int *)(param_2 + 0x2c)" * (cast_expression "(int *)(param_2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (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)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 LIT ;) })) (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)) ;) })) (labeled_statement statement_identifier : (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 LIT ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_0027c1e0(undefined8 param_1,long param_2,int param_3)" (identifier "FUN_0027c1e0") (parameter_list "(undefined8 param_1,long param_2,int param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar5 = (int *)(param_2 + 0x28);" (assignment_expression "piVar5 = (int *)(param_2 + 0x28)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar4 = FUN_0027c080();\n    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;\n  }" ({ "{") (expression_statement "iVar4 = FUN_0027c080();" (assignment_expression "iVar4 = FUN_0027c080()" (identifier "iVar4") (= "=") (call_expression "FUN_0027c080()" (identifier "FUN_0027c080") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x28) != -1)" (( "(") (binary_expression "*(int *)(param_2 + 0x28) != -1" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0027c29e;" (goto "goto") (statement_identifier "LAB_0027c29e") (; ";"))) (} "}")) (else_clause "else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return 0;\n    }\nLAB_0027c21d:\n    iVar4 = FUN_0027c080();\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x28)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "piVar2 = piVar5;" (assignment_expression "piVar2 = piVar5" (identifier "piVar2") (= "=") (identifier "piVar5")) (; ";")) (while_statement "while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }" (while "while") (parenthesized_expression "(param_3 != iVar4)" (( "(") (binary_expression "param_3 != iVar4" (identifier "param_3") (!= "!=") (identifier "iVar4")) () ")")) (compound_statement "{\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_0027c21d;\n      iVar4 = *piVar2;\n    }" ({ "{") (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(piVar2 + 2)" (* "*") (cast_expression "(int **)(piVar2 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) goto LAB_0027c21d;" (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"))) () ")")) (goto_statement "goto LAB_0027c21d;" (goto "goto") (statement_identifier "LAB_0027c21d") (; ";"))) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (if_statement "if (piVar2[1] != -1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(piVar2[1] != -1)" (( "(") (binary_expression "piVar2[1] != -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0027c21d:\n    iVar4 = FUN_0027c080();" (statement_identifier "LAB_0027c21d") (: ":") (expression_statement "iVar4 = FUN_0027c080();" (assignment_expression "iVar4 = FUN_0027c080()" (identifier "iVar4") (= "=") (call_expression "FUN_0027c080()" (identifier "FUN_0027c080") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "iVar1 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x28)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }\nLAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      return 1;\n    }" ({ "{") (while_statement "while( true ) {\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) break;\n        iVar1 = *piVar5;\n      }" ({ "{") (if_statement "if (param_3 == iVar1) {\n          piVar5[1] = iVar4;\n          return 1;\n        }" (if "if") (parenthesized_expression "(param_3 == iVar1)" (( "(") (binary_expression "param_3 == iVar1" (identifier "param_3") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n          piVar5[1] = iVar4;\n          return 1;\n        }" ({ "{") (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar5 = *(int **)(piVar5 + 2);" (assignment_expression "piVar5 = *(int **)(piVar5 + 2)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(piVar5 + 2)" (* "*") (cast_expression "(int **)(piVar5 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" (identifier "iVar1") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}"))) (labeled_statement "LAB_0027c29e:\n      piVar5 = (int *)FUN_00337280(0x10);" (statement_identifier "LAB_0027c29e") (: ":") (expression_statement "piVar5 = (int *)FUN_00337280(0x10);" (assignment_expression "piVar5 = (int *)FUN_00337280(0x10)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_00337280(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00337280(0x10)" (identifier "FUN_00337280") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";"))) (expression_statement "uVar3 = *(undefined8 *)(param_2 + 0x30);" (assignment_expression "uVar3 = *(undefined8 *)(param_2 + 0x30)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined8 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined8 *)(piVar5 + 2) = uVar3;" (assignment_expression "*(undefined8 *)(piVar5 + 2) = uVar3" (pointer_expression "*(undefined8 *)(piVar5 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar5 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(int **)(param_2 + 0x30) = piVar5;" (assignment_expression "*(int **)(param_2 + 0x30) = piVar5" (pointer_expression "*(int **)(param_2 + 0x30)" (* "*") (cast_expression "(int **)(param_2 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "piVar5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)(param_2 + 0x28) = param_3;" (assignment_expression "*(int *)(param_2 + 0x28) = param_3" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(param_2 + 0x2c) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x2c) = iVar4" (pointer_expression "*(int *)(param_2 + 0x2c)" (* "*") (cast_expression "(int *)(param_2 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* DWARF original prototype: bool add_global(Output_data_got<64,_false> * this, Symbol * gsym, uint
   got_type) */

bool __thiscall
gold::Output_data_got<64,_false>::add_global
          (Output_data_got<64,_false> *this,Symbol *gsym,type_2 var_3)

{
  type_2 var_6;
  type_1 got_entry;
  type_1 got_entry_00;
  type_2 var_4;
  type_3 *var_5;
  type_3 *var_1;
  type_4 uStack_3c;
  
  var_1 = &gsym->got_offsets_;
  if (var_1 == (type_3 *)0x0) {
    got_entry_00._12_4_ = uStack_3c;
    got_entry_00._8_4_ = 0x7fffffff;
    got_entry_00.u_.gsym = gsym;
    got_entry_00.addend_ = 0;
    var_4 = var_2(this,got_entry_00);
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) goto LAB_0027c29e;
  }
  else {
    var_4 = (gsym->got_offsets_).got_type_;
    var_5 = var_1;
    while (var_3 != var_4) {
      var_5 = var_5->got_next_;
      if (var_5 == (type_3 *)0x0) goto LAB_0027c21d;
      var_4 = var_5->got_type_;
    }
    if (var_5->got_offset_ != 0xffffffff) {
      return false;
    }
LAB_0027c21d:
    got_entry._12_4_ = uStack_3c;
    got_entry._8_4_ = 0x7fffffff;
    got_entry.u_.gsym = gsym;
    got_entry.addend_ = 0;
    var_4 = var_2(this,got_entry);
    var_6 = (gsym->got_offsets_).got_type_;
    if (var_6 != 0xffffffff) {
      while( true ) {
        if (var_3 == var_6) {
          var_1->got_offset_ = var_4;
          return true;
        }
        var_1 = var_1->got_next_;
        if (var_1 == (type_3 *)0x0) break;
        var_6 = var_1->got_type_;
      }
LAB_0027c29e:
      var_5 = (type_3 *)var_7(0x10);
      var_1 = (gsym->got_offsets_).got_next_;
      var_5->got_type_ = var_3;
      var_5->got_offset_ = var_4;
      var_5->got_next_ = var_1;
      (gsym->got_offsets_).got_next_ = var_5;
      return true;
    }
  }
  (gsym->got_offsets_).got_type_ = var_3;
  (gsym->got_offsets_).got_offset_ = var_4;
  return true;
}


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

undefined8 MASKED(undefined8 param_1,long param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = (int *)(param_2 + 0x28);
  if (piVar5 == (int *)0x0) {
    iVar4 = FUN_0027c080();
    if (*(int *)(param_2 + 0x28) != -1) goto LAB_0027c29e;
  }
  else {
    iVar4 = *(int *)(param_2 + 0x28);
    piVar2 = piVar5;
    while (param_3 != iVar4) {
      piVar2 = *(int **)(piVar2 + 2);
      if (piVar2 == (int *)0x0) goto LAB_0027c21d;
      iVar4 = *piVar2;
    }
    if (piVar2[1] != -1) {
      return 0;
    }
LAB_0027c21d:
    iVar4 = FUN_0027c080();
    iVar1 = *(int *)(param_2 + 0x28);
    if (iVar1 != -1) {
      while( true ) {
        if (param_3 == iVar1) {
          piVar5[1] = iVar4;
          return 1;
        }
        piVar5 = *(int **)(piVar5 + 2);
        if (piVar5 == (int *)0x0) break;
        iVar1 = *piVar5;
      }
LAB_0027c29e:
      piVar5 = (int *)FUN_00337280(0x10);
      uVar3 = *(undefined8 *)(param_2 + 0x30);
      *piVar5 = param_3;
      piVar5[1] = iVar4;
      *(undefined8 *)(piVar5 + 2) = uVar3;
      *(int **)(param_2 + 0x30) = piVar5;
      return 1;
    }
  }
  *(int *)(param_2 + 0x28) = param_3;
  *(int *)(param_2 + 0x2c) = iVar4;
  return 1;
}

