
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bool add_global_tls(Output_data_got<32,_false> * this, Symbol * gsym,
   uint got_type) */

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

{
}



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

undefined4 thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  int aiStack_48 [7];
  int aiStack_2c [6];
  undefined4 uStack_14;
  
  uStack_14 = 0x1794f9;
  piVar3 = (int *)(param_2 + 0x1c);
  if (piVar3 == (int *)0x0) {
    aiStack_2c[1] = 0xffffffff;
    aiStack_2c[2] = 0;
    aiStack_2c[3] = 0;
    aiStack_2c[0] = param_2;
    piVar4 = aiStack_48;
    piVar3 = aiStack_2c;
    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
      *piVar4 = *piVar3;
      piVar4 = piVar4 + 1;
      piVar3 = piVar3 + 1;
    }
    iVar2 = FUN_00179220(param_1);
    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;
  }
  else {
    iVar2 = *(int *)(param_2 + 0x1c);
    piVar4 = piVar3;
    while (param_3 != iVar2) {
      piVar4 = (int *)piVar4[2];
      if (piVar4 == (int *)0x0) goto LAB_0017952b;
      iVar2 = *piVar4;
    }
    if (piVar4[1] != -1) {
      return 0;
    }
LAB_0017952b:
    aiStack_2c[1] = 0xffffffff;
    aiStack_2c[2] = 0;
    aiStack_2c[3] = 0;
    aiStack_2c[0] = param_2;
    aiStack_48[3] = 0;
    aiStack_48[2] = 0;
    aiStack_48[1] = 0xffffffff;
    aiStack_48[0] = param_2;
    iVar2 = FUN_00179220(param_1);
    iVar1 = *(int *)(param_2 + 0x1c);
    if (iVar1 != -1) {
      while( true ) {
        if (param_3 == iVar1) {
          piVar3[1] = iVar2;
          return 1;
        }
        piVar3 = (int *)piVar3[2];
        if (piVar3 == (int *)0x0) break;
        iVar1 = *piVar3;
      }
LAB_001795ab:
      aiStack_48[3] = 0xc;
      aiStack_48[2] = 0x1795b9;
      piVar3 = (int *)FUN_00246670();
      *piVar3 = param_3;
      iVar1 = *(int *)(param_2 + 0x24);
      piVar3[1] = iVar2;
      *(int **)(param_2 + 0x24) = piVar3;
      piVar3[2] = iVar1;
      return 1;
    }
  }
  *(int *)(param_2 + 0x1c) = param_3;
  *(int *)(param_2 + 0x20) = iVar2;
  return 1;
}


JMP 0x001794f0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}\n\n" comment (function_definition "undefined4 thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}" type_identifier (function_declarator "thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int aiStack_48 [7];" primitive_type (array_declarator "aiStack_48 [7]" identifier [ number_literal ]) ;) (declaration "int aiStack_2c [6];" primitive_type (array_declarator "aiStack_2c [6]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1794f9;" (assignment_expression "uStack_14 = 0x1794f9" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(param_2 + 0x1c);" (assignment_expression "piVar3 = (int *)(param_2 + 0x1c)" identifier = (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }" { (expression_statement "aiStack_2c[1] = 0xffffffff;" (assignment_expression "aiStack_2c[1] = 0xffffffff" (subscript_expression "aiStack_2c[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[2] = 0;" (assignment_expression "aiStack_2c[2] = 0" (subscript_expression "aiStack_2c[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[3] = 0;" (assignment_expression "aiStack_2c[3] = 0" (subscript_expression "aiStack_2c[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[0] = param_2;" (assignment_expression "aiStack_2c[0] = param_2" (subscript_expression "aiStack_2c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4 = aiStack_48;" (assignment_expression "piVar4 = aiStack_48" identifier = identifier) ;) (expression_statement "piVar3 = aiStack_2c;" (assignment_expression "piVar3 = aiStack_2c" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "*piVar4 = *piVar3;" (assignment_expression "*piVar4 = *piVar3" (pointer_expression "*piVar4" * identifier) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar2 = FUN_00179220(param_1);" (assignment_expression "iVar2 = FUN_00179220(param_1)" identifier = (call_expression "FUN_00179220(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -1)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -1" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_001795ab;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" identifier = identifier) ;) (while_statement "while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }" while (parenthesized_expression "(param_3 != iVar2)" ( (binary_expression "param_3 != iVar2" identifier != identifier) )) (compound_statement "{\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }" { (expression_statement "piVar4 = (int *)piVar4[2];" (assignment_expression "piVar4 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0017952b;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0017952b;" goto statement_identifier ;)) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) (if_statement "if (piVar4[1] != -1) {\n      return 0;\n    }" if (parenthesized_expression "(piVar4[1] != -1)" ( (binary_expression "piVar4[1] != -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;" statement_identifier : (expression_statement "aiStack_2c[1] = 0xffffffff;" (assignment_expression "aiStack_2c[1] = 0xffffffff" (subscript_expression "aiStack_2c[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_2c[2] = 0;" (assignment_expression "aiStack_2c[2] = 0" (subscript_expression "aiStack_2c[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[3] = 0;" (assignment_expression "aiStack_2c[3] = 0" (subscript_expression "aiStack_2c[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[0] = param_2;" (assignment_expression "aiStack_2c[0] = param_2" (subscript_expression "aiStack_2c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_48[3] = 0;" (assignment_expression "aiStack_48[3] = 0" (subscript_expression "aiStack_48[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_48[2] = 0;" (assignment_expression "aiStack_48[2] = 0" (subscript_expression "aiStack_48[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_48[1] = 0xffffffff;" (assignment_expression "aiStack_48[1] = 0xffffffff" (subscript_expression "aiStack_48[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_48[0] = param_2;" (assignment_expression "aiStack_48[0] = param_2" (subscript_expression "aiStack_48[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_00179220(param_1);" (assignment_expression "iVar2 = FUN_00179220(param_1)" identifier = (call_expression "FUN_00179220(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\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          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }" { (while_statement "while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }" { (if_statement "if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }" if (parenthesized_expression "(param_3 == iVar1)" ( (binary_expression "param_3 == iVar1" identifier == identifier) )) (compound_statement "{\n          piVar3[1] = iVar2;\n          return 1;\n        }" { (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar3 = (int *)piVar3[2];" (assignment_expression "piVar3 = (int *)piVar3[2]" identifier = (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (labeled_statement "LAB_001795ab:\n      aiStack_48[3] = 0xc;" statement_identifier : (expression_statement "aiStack_48[3] = 0xc;" (assignment_expression "aiStack_48[3] = 0xc" (subscript_expression "aiStack_48[3]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_48[2] = 0x1795b9;" (assignment_expression "aiStack_48[2] = 0x1795b9" (subscript_expression "aiStack_48[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = (int *)FUN_00246670();" (assignment_expression "piVar3 = (int *)FUN_00246670()" identifier = (cast_expression "(int *)FUN_00246670()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00246670()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x24) = piVar3;" (assignment_expression "*(int **)(param_2 + 0x24) = piVar3" (pointer_expression "*(int **)(param_2 + 0x24)" * (cast_expression "(int **)(param_2 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar3[2] = iVar1;" (assignment_expression "piVar3[2] = iVar1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "*(int *)(param_2 + 0x1c) = param_3;" (assignment_expression "*(int *)(param_2 + 0x1c) = param_3" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x20) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar2" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: bool add_global_tls(Output_data_got<32,_false> * this, Symbol * gsym,\n   uint got_type) */\n\nbool __thiscall\ngold::Output_data_got<32,_false>::add_global_tls\n          (Output_data_got<32,_false> *this,Symbol *gsym,uint got_type)\n\n{\n}\n\n" comment comment (ERROR "bool __thiscall\ngold::Output_data_got<32,_false>::add_global_tls\n          (Output_data_got<32,_false> *this,Symbol *gsym,uint got_type)" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::" identifier > : :) (function_declarator "add_global_tls\n          (Output_data_got<32,_false> *this,Symbol *gsym,uint got_type)" identifier (parameter_list "(Output_data_got<32,_false> *this,Symbol *gsym,uint got_type)" ( (parameter_declaration "Output_data_got" type_identifier) (ERROR "<32" < 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) )))) (compound_statement "{\n}" { }))
(translation_unit "undefined4 thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}\n\n" (function_definition "undefined4 thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}" type_identifier (function_declarator "thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int aiStack_48 [7];" primitive_type (array_declarator "aiStack_48 [7]" identifier [ number_literal ]) ;) (declaration "int aiStack_2c [6];" primitive_type (array_declarator "aiStack_2c [6]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1794f9;" (assignment_expression "uStack_14 = 0x1794f9" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(param_2 + 0x1c);" (assignment_expression "piVar3 = (int *)(param_2 + 0x1c)" identifier = (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }" { (expression_statement "aiStack_2c[1] = 0xffffffff;" (assignment_expression "aiStack_2c[1] = 0xffffffff" (subscript_expression "aiStack_2c[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[2] = 0;" (assignment_expression "aiStack_2c[2] = 0" (subscript_expression "aiStack_2c[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[3] = 0;" (assignment_expression "aiStack_2c[3] = 0" (subscript_expression "aiStack_2c[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[0] = param_2;" (assignment_expression "aiStack_2c[0] = param_2" (subscript_expression "aiStack_2c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4 = aiStack_48;" (assignment_expression "piVar4 = aiStack_48" identifier = identifier) ;) (expression_statement "piVar3 = aiStack_2c;" (assignment_expression "piVar3 = aiStack_2c" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "*piVar4 = *piVar3;" (assignment_expression "*piVar4 = *piVar3" (pointer_expression "*piVar4" * identifier) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar2 = FUN_00179220(param_1);" (assignment_expression "iVar2 = FUN_00179220(param_1)" identifier = (call_expression "FUN_00179220(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -1)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -1" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_001795ab;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" identifier = identifier) ;) (while_statement "while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }" while (parenthesized_expression "(param_3 != iVar2)" ( (binary_expression "param_3 != iVar2" identifier != identifier) )) (compound_statement "{\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }" { (expression_statement "piVar4 = (int *)piVar4[2];" (assignment_expression "piVar4 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0017952b;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0017952b;" goto statement_identifier ;)) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) (if_statement "if (piVar4[1] != -1) {\n      return 0;\n    }" if (parenthesized_expression "(piVar4[1] != -1)" ( (binary_expression "piVar4[1] != -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;" statement_identifier : (expression_statement "aiStack_2c[1] = 0xffffffff;" (assignment_expression "aiStack_2c[1] = 0xffffffff" (subscript_expression "aiStack_2c[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_2c[2] = 0;" (assignment_expression "aiStack_2c[2] = 0" (subscript_expression "aiStack_2c[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[3] = 0;" (assignment_expression "aiStack_2c[3] = 0" (subscript_expression "aiStack_2c[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_2c[0] = param_2;" (assignment_expression "aiStack_2c[0] = param_2" (subscript_expression "aiStack_2c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_48[3] = 0;" (assignment_expression "aiStack_48[3] = 0" (subscript_expression "aiStack_48[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_48[2] = 0;" (assignment_expression "aiStack_48[2] = 0" (subscript_expression "aiStack_48[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_48[1] = 0xffffffff;" (assignment_expression "aiStack_48[1] = 0xffffffff" (subscript_expression "aiStack_48[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_48[0] = param_2;" (assignment_expression "aiStack_48[0] = param_2" (subscript_expression "aiStack_48[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_00179220(param_1);" (assignment_expression "iVar2 = FUN_00179220(param_1)" identifier = (call_expression "FUN_00179220(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\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          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }" { (while_statement "while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }" { (if_statement "if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }" if (parenthesized_expression "(param_3 == iVar1)" ( (binary_expression "param_3 == iVar1" identifier == identifier) )) (compound_statement "{\n          piVar3[1] = iVar2;\n          return 1;\n        }" { (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar3 = (int *)piVar3[2];" (assignment_expression "piVar3 = (int *)piVar3[2]" identifier = (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (labeled_statement "LAB_001795ab:\n      aiStack_48[3] = 0xc;" statement_identifier : (expression_statement "aiStack_48[3] = 0xc;" (assignment_expression "aiStack_48[3] = 0xc" (subscript_expression "aiStack_48[3]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_48[2] = 0x1795b9;" (assignment_expression "aiStack_48[2] = 0x1795b9" (subscript_expression "aiStack_48[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = (int *)FUN_00246670();" (assignment_expression "piVar3 = (int *)FUN_00246670()" identifier = (cast_expression "(int *)FUN_00246670()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00246670()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x24) = piVar3;" (assignment_expression "*(int **)(param_2 + 0x24) = piVar3" (pointer_expression "*(int **)(param_2 + 0x24)" * (cast_expression "(int **)(param_2 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar3[2] = iVar1;" (assignment_expression "piVar3[2] = iVar1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "*(int *)(param_2 + 0x1c) = param_3;" (assignment_expression "*(int *)(param_2 + 0x1c) = param_3" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x20) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar2" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" 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 TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_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 "undefined4 thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "thunk_FUN_001794f0(undefined4 param_1,int param_2,int param_3)" (identifier "thunk_FUN_001794f0") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int aiStack_48 [7];\n  int aiStack_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1794f9;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int aiStack_48 [7];" (primitive_type "int") (array_declarator "aiStack_48 [7]" (identifier "aiStack_48") ([ "[") (number_literal "7") (] "]")) (; ";")) (declaration "int aiStack_2c [6];" (primitive_type "int") (array_declarator "aiStack_2c [6]" (identifier "aiStack_2c") ([ "[") (number_literal "6") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1794f9;" (assignment_expression "uStack_14 = 0x1794f9" (identifier "uStack_14") (= "=") (number_literal "0x1794f9")) (; ";")) (expression_statement "piVar3 = (int *)(param_2 + 0x1c);" (assignment_expression "piVar3 = (int *)(param_2 + 0x1c)" (identifier "piVar3") (= "=") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    piVar4 = aiStack_48;\n    piVar3 = aiStack_2c;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }\n    iVar2 = FUN_00179220(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;\n  }" ({ "{") (expression_statement "aiStack_2c[1] = 0xffffffff;" (assignment_expression "aiStack_2c[1] = 0xffffffff" (subscript_expression "aiStack_2c[1]" (identifier "aiStack_2c") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "aiStack_2c[2] = 0;" (assignment_expression "aiStack_2c[2] = 0" (subscript_expression "aiStack_2c[2]" (identifier "aiStack_2c") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_2c[3] = 0;" (assignment_expression "aiStack_2c[3] = 0" (subscript_expression "aiStack_2c[3]" (identifier "aiStack_2c") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_2c[0] = param_2;" (assignment_expression "aiStack_2c[0] = param_2" (subscript_expression "aiStack_2c[0]" (identifier "aiStack_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar4 = aiStack_48;" (assignment_expression "piVar4 = aiStack_48" (identifier "piVar4") (= "=") (identifier "aiStack_48")) (; ";")) (expression_statement "piVar3 = aiStack_2c;" (assignment_expression "piVar3 = aiStack_2c" (identifier "piVar3") (= "=") (identifier "aiStack_2c")) (; ";")) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }" (for "for") (( "(") (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *piVar4 = *piVar3;\n      piVar4 = piVar4 + 1;\n      piVar3 = piVar3 + 1;\n    }" ({ "{") (expression_statement "*piVar4 = *piVar3;" (assignment_expression "*piVar4 = *piVar3" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00179220(param_1);" (assignment_expression "iVar2 = FUN_00179220(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00179220(param_1)" (identifier "FUN_00179220") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -1)" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) != -1" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (goto_statement "goto LAB_001795ab;" (goto "goto") (statement_identifier "LAB_001795ab") (; ";"))) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return 0;\n    }\nLAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;\n    aiStack_2c[2] = 0;\n    aiStack_2c[3] = 0;\n    aiStack_2c[0] = param_2;\n    aiStack_48[3] = 0;\n    aiStack_48[2] = 0;\n    aiStack_48[1] = 0xffffffff;\n    aiStack_48[0] = param_2;\n    iVar2 = FUN_00179220(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x1c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" (identifier "piVar4") (= "=") (identifier "piVar3")) (; ";")) (while_statement "while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }" (while "while") (parenthesized_expression "(param_3 != iVar2)" (( "(") (binary_expression "param_3 != iVar2" (identifier "param_3") (!= "!=") (identifier "iVar2")) () ")")) (compound_statement "{\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_0017952b;\n      iVar2 = *piVar4;\n    }" ({ "{") (expression_statement "piVar4 = (int *)piVar4[2];" (assignment_expression "piVar4 = (int *)piVar4[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0017952b;" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0017952b;" (goto "goto") (statement_identifier "LAB_0017952b") (; ";"))) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (} "}"))) (if_statement "if (piVar4[1] != -1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(piVar4[1] != -1)" (( "(") (binary_expression "piVar4[1] != -1" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0017952b:\n    aiStack_2c[1] = 0xffffffff;" (statement_identifier "LAB_0017952b") (: ":") (expression_statement "aiStack_2c[1] = 0xffffffff;" (assignment_expression "aiStack_2c[1] = 0xffffffff" (subscript_expression "aiStack_2c[1]" (identifier "aiStack_2c") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";"))) (expression_statement "aiStack_2c[2] = 0;" (assignment_expression "aiStack_2c[2] = 0" (subscript_expression "aiStack_2c[2]" (identifier "aiStack_2c") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_2c[3] = 0;" (assignment_expression "aiStack_2c[3] = 0" (subscript_expression "aiStack_2c[3]" (identifier "aiStack_2c") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_2c[0] = param_2;" (assignment_expression "aiStack_2c[0] = param_2" (subscript_expression "aiStack_2c[0]" (identifier "aiStack_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "aiStack_48[3] = 0;" (assignment_expression "aiStack_48[3] = 0" (subscript_expression "aiStack_48[3]" (identifier "aiStack_48") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_48[2] = 0;" (assignment_expression "aiStack_48[2] = 0" (subscript_expression "aiStack_48[2]" (identifier "aiStack_48") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_48[1] = 0xffffffff;" (assignment_expression "aiStack_48[1] = 0xffffffff" (subscript_expression "aiStack_48[1]" (identifier "aiStack_48") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "aiStack_48[0] = param_2;" (assignment_expression "aiStack_48[0] = param_2" (subscript_expression "aiStack_48[0]" (identifier "aiStack_48") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar2 = FUN_00179220(param_1);" (assignment_expression "iVar2 = FUN_00179220(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00179220(param_1)" (identifier "FUN_00179220") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (iVar1 != -1) {\n      while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\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          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }\nLAB_001795ab:\n      aiStack_48[3] = 0xc;\n      aiStack_48[2] = 0x1795b9;\n      piVar3 = (int *)FUN_00246670();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      return 1;\n    }" ({ "{") (while_statement "while( true ) {\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) break;\n        iVar1 = *piVar3;\n      }" ({ "{") (if_statement "if (param_3 == iVar1) {\n          piVar3[1] = iVar2;\n          return 1;\n        }" (if "if") (parenthesized_expression "(param_3 == iVar1)" (( "(") (binary_expression "param_3 == iVar1" (identifier "param_3") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n          piVar3[1] = iVar2;\n          return 1;\n        }" ({ "{") (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)piVar3[2];" (assignment_expression "piVar3 = (int *)piVar3[2]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (labeled_statement "LAB_001795ab:\n      aiStack_48[3] = 0xc;" (statement_identifier "LAB_001795ab") (: ":") (expression_statement "aiStack_48[3] = 0xc;" (assignment_expression "aiStack_48[3] = 0xc" (subscript_expression "aiStack_48[3]" (identifier "aiStack_48") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0xc")) (; ";"))) (expression_statement "aiStack_48[2] = 0x1795b9;" (assignment_expression "aiStack_48[2] = 0x1795b9" (subscript_expression "aiStack_48[2]" (identifier "aiStack_48") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x1795b9")) (; ";")) (expression_statement "piVar3 = (int *)FUN_00246670();" (assignment_expression "piVar3 = (int *)FUN_00246670()" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00246670()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00246670()" (identifier "FUN_00246670") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x24)" (* "*") (cast_expression "(int *)(param_2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int **)(param_2 + 0x24) = piVar3;" (assignment_expression "*(int **)(param_2 + 0x24) = piVar3" (pointer_expression "*(int **)(param_2 + 0x24)" (* "*") (cast_expression "(int **)(param_2 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "piVar3[2] = iVar1;" (assignment_expression "piVar3[2] = iVar1" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)(param_2 + 0x1c) = param_3;" (assignment_expression "*(int *)(param_2 + 0x1c) = param_3" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(param_2 + 0x20) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar2" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bool add_global_tls(Output_data_got<32,_false> * this, Symbol * gsym,
   uint got_type) */

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

{
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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)))))

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

undefined4 MASKED(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  int aiStack_48 [7];
  int aiStack_2c [6];
  undefined4 uStack_14;
  
  uStack_14 = 0x1794f9;
  piVar3 = (int *)(param_2 + 0x1c);
  if (piVar3 == (int *)0x0) {
    aiStack_2c[1] = 0xffffffff;
    aiStack_2c[2] = 0;
    aiStack_2c[3] = 0;
    aiStack_2c[0] = param_2;
    piVar4 = aiStack_48;
    piVar3 = aiStack_2c;
    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
      *piVar4 = *piVar3;
      piVar4 = piVar4 + 1;
      piVar3 = piVar3 + 1;
    }
    iVar2 = FUN_00179220(param_1);
    if (*(int *)(param_2 + 0x1c) != -1) goto LAB_001795ab;
  }
  else {
    iVar2 = *(int *)(param_2 + 0x1c);
    piVar4 = piVar3;
    while (param_3 != iVar2) {
      piVar4 = (int *)piVar4[2];
      if (piVar4 == (int *)0x0) goto LAB_0017952b;
      iVar2 = *piVar4;
    }
    if (piVar4[1] != -1) {
      return 0;
    }
LAB_0017952b:
    aiStack_2c[1] = 0xffffffff;
    aiStack_2c[2] = 0;
    aiStack_2c[3] = 0;
    aiStack_2c[0] = param_2;
    aiStack_48[3] = 0;
    aiStack_48[2] = 0;
    aiStack_48[1] = 0xffffffff;
    aiStack_48[0] = param_2;
    iVar2 = FUN_00179220(param_1);
    iVar1 = *(int *)(param_2 + 0x1c);
    if (iVar1 != -1) {
      while( true ) {
        if (param_3 == iVar1) {
          piVar3[1] = iVar2;
          return 1;
        }
        piVar3 = (int *)piVar3[2];
        if (piVar3 == (int *)0x0) break;
        iVar1 = *piVar3;
      }
LAB_001795ab:
      aiStack_48[3] = 0xc;
      aiStack_48[2] = 0x1795b9;
      piVar3 = (int *)FUN_00246670();
      *piVar3 = param_3;
      iVar1 = *(int *)(param_2 + 0x24);
      piVar3[1] = iVar2;
      *(int **)(param_2 + 0x24) = piVar3;
      piVar3[2] = iVar1;
      return 1;
    }
  }
  *(int *)(param_2 + 0x1c) = param_3;
  *(int *)(param_2 + 0x20) = iVar2;
  return 1;
}

