
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void do_get_global_symbol_counts(Sized_dynobj<32,_true> * this,
   Symbol_table * param_1, size_t * defined, size_t * used) */

void __thiscall
gold::Sized_dynobj<32,_true>::do_get_global_symbol_counts
          (Sized_dynobj<32,_true> *this,Symbol_table *param_2,size_t *defined,size_t *used)

{
  Symbol *pSVar1;
  Symbols *pSVar2;
  size_t sVar3;
  pointer ppSVar4;
  bool bVar5;
  
  sVar3 = 0;
  *defined = this->defined_count_;
  pSVar2 = this->symbols_;
  ppSVar4 = (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.
            _M_start;
  if (ppSVar4 !=
      (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl._M_finish)
  {
    do {
      while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||
             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {
LAB_001b2690:
        ppSVar4 = ppSVar4 + 1;
        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.
            _M_finish == ppSVar4) goto LAB_001b26cc;
      }
      if ((pSVar1->field_0x2b & 0x20) == 0) {
        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);
        pSVar2 = this->symbols_;
        bVar5 = !bVar5;
      }
      else {
        bVar5 = (pSVar1->u2_).shndx != 0;
      }
      if (!bVar5) goto LAB_001b2690;
      sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);
      ppSVar4 = ppSVar4 + 1;
    } while ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.
             _M_finish != ppSVar4);
  }
LAB_001b26cc:
  *used = sVar3;
  return;
}



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

void FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  byte bVar5;
  
  iVar3 = 0;
  *param_3 = *(undefined4 *)(param_1 + 0x80);
  piVar2 = *(int **)(param_1 + 0x7c);
  piVar4 = (int *)*piVar2;
  if (piVar4 != (int *)piVar2[1]) {
    do {
      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||
             (param_1 != *(int *)(iVar1 + 8)))) {
LAB_001b2690:
        piVar4 = piVar4 + 1;
        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;
      }
      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {
        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));
        piVar2 = *(int **)(param_1 + 0x7c);
        bVar5 = bVar5 ^ 1;
      }
      else {
        bVar5 = *(int *)(iVar1 + 0xc) != 0;
      }
      if (bVar5 == 0) goto LAB_001b2690;
      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);
      piVar4 = piVar4 + 1;
    } while ((int *)piVar2[1] != piVar4);
  }
LAB_001b26cc:
  *param_4 = iVar3;
  return;
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x1fc995
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [EDI + 0x80]
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [EDI + 0x7c]
MOV ESI,dword ptr [EDX]
CMP ESI,dword ptr [EDX + 0x4]
JNZ 0x001b2698
JMP 0x001b26cc
ADD ESI,0x4
CMP dword ptr [EDX + 0x4],ESI
JZ 0x001b26cc
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x001b2690
TEST byte ptr [EAX + 0x2a],0x7
JNZ 0x001b2690
CMP EDI,dword ptr [EAX + 0x8]
JNZ 0x001b2690
MOV ECX,dword ptr [EAX + 0xc]
TEST byte ptr [EAX + 0x2b],0x20
JZ 0x001b26e0
TEST ECX,ECX
SETNZ AL
TEST AL,AL
JZ 0x001b2690
MOV EAX,dword ptr [ESI]
CMP dword ptr [EAX + 0x14],0x1
SBB EBP,-0x1
ADD ESI,0x4
CMP dword ptr [EDX + 0x4],ESI
JNZ 0x001b2698
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [EAX],EBP
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ECX
CALL 0x0018a8d0
ADD ESP,0x10
MOV EDX,dword ptr [EDI + 0x7c]
XOR EAX,0x1
JMP 0x001b26b7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}\n\n" comment (function_definition "void FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}" primitive_type (function_declarator "FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*param_3 = *(undefined4 *)(param_1 + 0x80);" (assignment_expression "*param_3 = *(undefined4 *)(param_1 + 0x80)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x80)" * (cast_expression "(undefined4 *)(param_1 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + 0x7c)" * (cast_expression "(int **)(param_1 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)*piVar2;" (assignment_expression "piVar4 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }" if (parenthesized_expression "(piVar4 != (int *)piVar2[1])" ( (binary_expression "piVar4 != (int *)piVar2[1]" identifier != (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }" { (do_statement "do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);" do (compound_statement "{\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    }" { (while_statement "while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }" while (parenthesized_expression "(((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8))))" ( (parenthesized_expression "((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))" ( (binary_expression "(iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8))" (parenthesized_expression "(iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0))" ( (comma_expression "iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) , (binary_expression "iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (binary_expression "iVar1 == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(iVar1 + 0x2a) & 7) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" * (cast_expression "(byte *)(iVar1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a)" ( (binary_expression "iVar1 + 0x2a" identifier + number_literal) )))) & number_literal) )) != number_literal) )))) )) || (parenthesized_expression "(param_1 != *(int *)(iVar1 + 8))" ( (binary_expression "param_1 != *(int *)(iVar1 + 8)" identifier != (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ))) )) )) (compound_statement "{\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }" { (labeled_statement "LAB_001b2690:\n        piVar4 = piVar4 + 1;" statement_identifier : (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;)) (if_statement "if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;" if (parenthesized_expression "((int *)piVar2[1] == piVar4)" ( (binary_expression "(int *)piVar2[1] == piVar4" (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) == identifier) )) (goto_statement "goto LAB_001b26cc;" goto statement_identifier ;)) })) (if_statement "if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x2b) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2b) & 0x20)" ( (binary_expression "*(byte *)(iVar1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(iVar1 + 0x2b)" * (cast_expression "(byte *)(iVar1 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2b)" ( (binary_expression "iVar1 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }" { (expression_statement "bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));" (assignment_expression "bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc))" identifier = (call_expression "FUN_0018a8d0(*(int *)(iVar1 + 0xc))" identifier (argument_list "(*(int *)(iVar1 + 0xc))" ( (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + 0x7c)" * (cast_expression "(int **)(param_1 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "bVar5 = bVar5 ^ 1;" (assignment_expression "bVar5 = bVar5 ^ 1" identifier = (binary_expression "bVar5 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" else (compound_statement "{\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" { (expression_statement "bVar5 = *(int *)(iVar1 + 0xc) != 0;" (assignment_expression "bVar5 = *(int *)(iVar1 + 0xc) != 0" identifier = (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal)) ;) }))) (if_statement "if (bVar5 == 0) goto LAB_001b2690;" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001b2690;" goto statement_identifier ;)) (expression_statement "iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);" (assignment_expression "iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0)" identifier = (binary_expression "(iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0)" (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )) - (call_expression "(uint)(*(int *)(*piVar4 + 0x14) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(*piVar4 + 0x14) == 0)" ( (binary_expression "*(int *)(*piVar4 + 0x14) == 0" (pointer_expression "*(int *)(*piVar4 + 0x14)" * (cast_expression "(int *)(*piVar4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0x14)" ( (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" * identifier) + number_literal) )))) == number_literal) ))))) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int *)piVar2[1] != piVar4)" ( (binary_expression "(int *)piVar2[1] != piVar4" (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) != identifier) )) ;) })) (labeled_statement "LAB_001b26cc:\n  *param_4 = iVar3;" statement_identifier : (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void do_get_global_symbol_counts(Sized_dynobj<32,_true> * this,\n   Symbol_table * param_1, size_t * defined, size_t * used) */\n\nvoid __thiscall\ngold::Sized_dynobj<32,_true>::do_get_global_symbol_counts\n          (Sized_dynobj<32,_true> *this,Symbol_table *param_2,size_t *defined,size_t *used)\n\n{\n  Symbol *pSVar1;\n  Symbols *pSVar2;\n  size_t sVar3;\n  pointer ppSVar4;\n  bool bVar5;\n  \n  sVar3 = 0;\n  *defined = this->defined_count_;\n  pSVar2 = this->symbols_;\n  ppSVar4 = (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_start;\n  if (ppSVar4 !=\n      (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl._M_finish)\n  {\n    do {\n      while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }\n      else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }\n      if (!bVar5) goto LAB_001b2690;\n      sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);\n      ppSVar4 = ppSVar4 + 1;\n    } while ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish != ppSVar4);\n  }\nLAB_001b26cc:\n  *used = sVar3;\n  return;\n}\n\n" comment comment (declaration "void __thiscall\ngold::Sized_dynobj<32,_true>::do_get_global_symbol_counts\n          (Sized_dynobj<32,_true> *this,Symbol_table *param_2,size_t *defined,size_t *used)\n\n{\n  Symbol *pSVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::do_get_global_symbol_counts\n          (Sized_dynobj<32,_true> *this,Symbol_table *param_2,size_t *defined,size_t *used)\n\n{\n  Symbol" identifier > : : (function_declarator "do_get_global_symbol_counts\n          (Sized_dynobj<32,_true> *this,Symbol_table *param_2,size_t *defined,size_t *used)" identifier (parameter_list "(Sized_dynobj<32,_true> *this,Symbol_table *param_2,size_t *defined,size_t *used)" ( (parameter_declaration "Sized_dynobj" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol_table *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t *defined" primitive_type (pointer_declarator "*defined" * identifier)) , (parameter_declaration "size_t *used" primitive_type (pointer_declarator "*used" * identifier)) ))) { identifier) (pointer_declarator "*pSVar1" * identifier) ;) (declaration "Symbols *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "pointer ppSVar4;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "*defined = this->defined_count_;" (assignment_expression "*defined = this->defined_count_" (pointer_expression "*defined" * identifier) = (field_expression "this->defined_count_" identifier -> field_identifier)) ;) (expression_statement "pSVar2 = this->symbols_;" (assignment_expression "pSVar2 = this->symbols_" identifier = (field_expression "this->symbols_" identifier -> field_identifier)) ;) (expression_statement "ppSVar4 = (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_start;" (assignment_expression "ppSVar4 = (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_start" identifier = (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_start" (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl" (parenthesized_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)" ( (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std" (binary_expression "pSVar2->super__Vector_base<gold" (field_expression "pSVar2->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (ppSVar4 !=\n      (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl._M_finish)\n  {\n    do {\n      while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }\n      else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }\n      if (!bVar5) goto LAB_001b2690;\n      sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);\n      ppSVar4 = ppSVar4 + 1;\n    } while ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish != ppSVar4);\n  }" if (parenthesized_expression "(ppSVar4 !=\n      (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl._M_finish)" ( (binary_expression "ppSVar4 !=\n      (pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl._M_finish" identifier != (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl._M_finish" (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl" (parenthesized_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)" ( (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std" (binary_expression "pSVar2->super__Vector_base<gold" (field_expression "pSVar2->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) )) (compound_statement "{\n    do {\n      while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }\n      else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }\n      if (!bVar5) goto LAB_001b2690;\n      sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);\n      ppSVar4 = ppSVar4 + 1;\n    } while ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish != ppSVar4);\n  }" { (do_statement "do {\n      while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }\n      else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }\n      if (!bVar5) goto LAB_001b2690;\n      sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);\n      ppSVar4 = ppSVar4 + 1;\n    } while ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish != ppSVar4);" do (compound_statement "{\n      while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }\n      else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }\n      if (!bVar5) goto LAB_001b2690;\n      sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);\n      ppSVar4 = ppSVar4 + 1;\n    }" { (while_statement "while (((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))) {\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }" while (parenthesized_expression "(((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object)))" ( (parenthesized_expression "((pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object))" ( (binary_expression "(pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)) ||\n             (this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object)" (parenthesized_expression "(pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0))" ( (comma_expression "pSVar1 = *ppSVar4, pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)" (assignment_expression "pSVar1 = *ppSVar4" identifier = (pointer_expression "*ppSVar4" * identifier)) , (binary_expression "pSVar1 == (Symbol *)0x0 || ((pSVar1->field_0x2a & 7) != 0)" (binary_expression "pSVar1 == (Symbol *)0x0" identifier == (cast_expression "(Symbol *)0x0" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "((pSVar1->field_0x2a & 7) != 0)" ( (binary_expression "(pSVar1->field_0x2a & 7) != 0" (parenthesized_expression "(pSVar1->field_0x2a & 7)" ( (binary_expression "pSVar1->field_0x2a & 7" (field_expression "pSVar1->field_0x2a" identifier -> field_identifier) & number_literal) )) != number_literal) )))) )) || (parenthesized_expression "(this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object)" ( (binary_expression "this != (Sized_dynobj<32,_true> *)(pSVar1->u1_).object" identifier != (field_expression "(Sized_dynobj<32,_true> *)(pSVar1->u1_).object" (call_expression "(Sized_dynobj<32,_true> *)(pSVar1->u1_)" (parenthesized_expression "(Sized_dynobj<32,_true> *)" ( (comma_expression "Sized_dynobj<32,_true> *" (binary_expression "Sized_dynobj<32" identifier < number_literal) , (binary_expression "_true> *" identifier > (pointer_expression "*" * identifier))) )) (argument_list "(pSVar1->u1_)" ( (field_expression "pSVar1->u1_" identifier -> field_identifier) ))) . field_identifier)) ))) )) )) (compound_statement "{\nLAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;\n        if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;\n      }" { (labeled_statement "LAB_001b2690:\n        ppSVar4 = ppSVar4 + 1;" statement_identifier : (expression_statement "ppSVar4 = ppSVar4 + 1;" (assignment_expression "ppSVar4 = ppSVar4 + 1" identifier = (binary_expression "ppSVar4 + 1" identifier + number_literal)) ;)) (if_statement "if ((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4) goto LAB_001b26cc;" if (parenthesized_expression "((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4)" ( (binary_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish == ppSVar4" (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n            _M_finish" (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl" (parenthesized_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)" ( (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std" (binary_expression "pSVar2->super__Vector_base<gold" (field_expression "pSVar2->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) == identifier) )) (goto_statement "goto LAB_001b26cc;" goto statement_identifier ;)) })) (if_statement "if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }\n      else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }" if (parenthesized_expression "((pSVar1->field_0x2b & 0x20) == 0)" ( (binary_expression "(pSVar1->field_0x2b & 0x20) == 0" (parenthesized_expression "(pSVar1->field_0x2b & 0x20)" ( (binary_expression "pSVar1->field_0x2b & 0x20" (field_expression "pSVar1->field_0x2b" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar5 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        pSVar2 = this->symbols_;\n        bVar5 = !bVar5;\n      }" { (ERROR "bVar5 = Symbol::" (assignment_expression "bVar5 = Symbol" identifier = identifier) : :) (expression_statement "is_common_shndx((pSVar1->u2_).shndx);" (call_expression "is_common_shndx((pSVar1->u2_).shndx)" identifier (argument_list "((pSVar1->u2_).shndx)" ( (field_expression "(pSVar1->u2_).shndx" (parenthesized_expression "(pSVar1->u2_)" ( (field_expression "pSVar1->u2_" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "pSVar2 = this->symbols_;" (assignment_expression "pSVar2 = this->symbols_" identifier = (field_expression "this->symbols_" identifier -> field_identifier)) ;) (expression_statement "bVar5 = !bVar5;" (assignment_expression "bVar5 = !bVar5" identifier = (unary_expression "!bVar5" ! identifier)) ;) }) (else_clause "else {\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }" else (compound_statement "{\n        bVar5 = (pSVar1->u2_).shndx != 0;\n      }" { (expression_statement "bVar5 = (pSVar1->u2_).shndx != 0;" (assignment_expression "bVar5 = (pSVar1->u2_).shndx != 0" identifier = (binary_expression "(pSVar1->u2_).shndx != 0" (field_expression "(pSVar1->u2_).shndx" (parenthesized_expression "(pSVar1->u2_)" ( (field_expression "pSVar1->u2_" identifier -> field_identifier) )) . field_identifier) != number_literal)) ;) }))) (if_statement "if (!bVar5) goto LAB_001b2690;" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (goto_statement "goto LAB_001b2690;" goto statement_identifier ;)) (expression_statement "sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0);" (assignment_expression "sVar3 = (sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0)" identifier = (binary_expression "(sVar3 + 1) - (uint)((*ppSVar4)->dynsym_index_ == 0)" (parenthesized_expression "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) )) - (call_expression "(uint)((*ppSVar4)->dynsym_index_ == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((*ppSVar4)->dynsym_index_ == 0)" ( (binary_expression "(*ppSVar4)->dynsym_index_ == 0" (field_expression "(*ppSVar4)->dynsym_index_" (parenthesized_expression "(*ppSVar4)" ( (pointer_expression "*ppSVar4" * identifier) )) -> field_identifier) == number_literal) ))))) ;) (expression_statement "ppSVar4 = ppSVar4 + 1;" (assignment_expression "ppSVar4 = ppSVar4 + 1" identifier = (binary_expression "ppSVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish != ppSVar4)" ( (binary_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish != ppSVar4" (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl.\n             _M_finish" (field_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)._M_impl" (parenthesized_expression "(pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>)" ( (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "pSVar2->super__Vector_base<gold::Symbol*,_std" (binary_expression "pSVar2->super__Vector_base<gold" (field_expression "pSVar2->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) != identifier) )) ;) })) (labeled_statement "LAB_001b26cc:\n  *used = sVar3;" statement_identifier : (expression_statement "*used = sVar3;" (assignment_expression "*used = sVar3" (pointer_expression "*used" * identifier) = identifier) ;)) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}\n\n" (function_definition "void FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}" primitive_type (function_declarator "FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*param_3 = *(undefined4 *)(param_1 + 0x80);" (assignment_expression "*param_3 = *(undefined4 *)(param_1 + 0x80)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x80)" * (cast_expression "(undefined4 *)(param_1 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + 0x7c)" * (cast_expression "(int **)(param_1 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)*piVar2;" (assignment_expression "piVar4 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }" if (parenthesized_expression "(piVar4 != (int *)piVar2[1])" ( (binary_expression "piVar4 != (int *)piVar2[1]" identifier != (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }" { (do_statement "do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);" do (compound_statement "{\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    }" { (while_statement "while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }" while (parenthesized_expression "(((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8))))" ( (parenthesized_expression "((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))" ( (binary_expression "(iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8))" (parenthesized_expression "(iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0))" ( (comma_expression "iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) , (binary_expression "iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (binary_expression "iVar1 == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(iVar1 + 0x2a) & 7) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" * (cast_expression "(byte *)(iVar1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a)" ( (binary_expression "iVar1 + 0x2a" identifier + number_literal) )))) & number_literal) )) != number_literal) )))) )) || (parenthesized_expression "(param_1 != *(int *)(iVar1 + 8))" ( (binary_expression "param_1 != *(int *)(iVar1 + 8)" identifier != (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ))) )) )) (compound_statement "{\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }" { (labeled_statement "LAB_001b2690:\n        piVar4 = piVar4 + 1;" statement_identifier : (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;)) (if_statement "if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;" if (parenthesized_expression "((int *)piVar2[1] == piVar4)" ( (binary_expression "(int *)piVar2[1] == piVar4" (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) == identifier) )) (goto_statement "goto LAB_001b26cc;" goto statement_identifier ;)) })) (if_statement "if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x2b) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2b) & 0x20)" ( (binary_expression "*(byte *)(iVar1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(iVar1 + 0x2b)" * (cast_expression "(byte *)(iVar1 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2b)" ( (binary_expression "iVar1 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }" { (expression_statement "bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));" (assignment_expression "bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc))" identifier = (call_expression "FUN_0018a8d0(*(int *)(iVar1 + 0xc))" identifier (argument_list "(*(int *)(iVar1 + 0xc))" ( (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + 0x7c)" * (cast_expression "(int **)(param_1 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "bVar5 = bVar5 ^ 1;" (assignment_expression "bVar5 = bVar5 ^ 1" identifier = (binary_expression "bVar5 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" else (compound_statement "{\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" { (expression_statement "bVar5 = *(int *)(iVar1 + 0xc) != 0;" (assignment_expression "bVar5 = *(int *)(iVar1 + 0xc) != 0" identifier = (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal)) ;) }))) (if_statement "if (bVar5 == 0) goto LAB_001b2690;" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001b2690;" goto statement_identifier ;)) (expression_statement "iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);" (assignment_expression "iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0)" identifier = (binary_expression "(iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0)" (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )) - (call_expression "(uint)(*(int *)(*piVar4 + 0x14) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(*piVar4 + 0x14) == 0)" ( (binary_expression "*(int *)(*piVar4 + 0x14) == 0" (pointer_expression "*(int *)(*piVar4 + 0x14)" * (cast_expression "(int *)(*piVar4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0x14)" ( (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" * identifier) + number_literal) )))) == number_literal) ))))) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int *)piVar2[1] != piVar4)" ( (binary_expression "(int *)piVar2[1] != piVar4" (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) != identifier) )) ;) })) (labeled_statement "LAB_001b26cc:\n  *param_4 = iVar3;" statement_identifier : (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )))) )) || (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return ;) })))
(function_definition "void FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b2660(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" (identifier "FUN_001b2660") (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,int *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  byte bVar5;\n  \n  iVar3 = 0;\n  *param_3 = *(undefined4 *)(param_1 + 0x80);\n  piVar2 = *(int **)(param_1 + 0x7c);\n  piVar4 = (int *)*piVar2;\n  if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }\nLAB_001b26cc:\n  *param_4 = iVar3;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = *(undefined4 *)(param_1 + 0x80);" (assignment_expression "*param_3 = *(undefined4 *)(param_1 + 0x80)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x80)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x80)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x7c)" (* "*") (cast_expression "(int **)(param_1 + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "piVar4 = (int *)*piVar2;" (assignment_expression "piVar4 = (int *)*piVar2" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (if_statement "if (piVar4 != (int *)piVar2[1]) {\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }" (if "if") (parenthesized_expression "(piVar4 != (int *)piVar2[1])" (( "(") (binary_expression "piVar4 != (int *)piVar2[1]" (identifier "piVar4") (!= "!=") (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);\n  }" ({ "{") (do_statement "do {\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    } while ((int *)piVar2[1] != piVar4);" (do "do") (compound_statement "{\n      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }\n      if (bVar5 == 0) goto LAB_001b2690;\n      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);\n      piVar4 = piVar4 + 1;\n    }" ({ "{") (while_statement "while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))) {\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }" (while "while") (parenthesized_expression "(((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8))))" (( "(") (parenthesized_expression "((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8)))" (( "(") (binary_expression "(iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||\n             (param_1 != *(int *)(iVar1 + 8))" (parenthesized_expression "(iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0))" (( "(") (comma_expression "iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (assignment_expression "iVar1 = *piVar4" (identifier "iVar1") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (, ",") (binary_expression "iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((*(byte *)(iVar1 + 0x2a) & 7) != 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" (* "*") (cast_expression "(byte *)(iVar1 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2a)" (( "(") (binary_expression "iVar1 + 0x2a" (identifier "iVar1") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "0")) () ")")))) () ")")) (|| "||") (parenthesized_expression "(param_1 != *(int *)(iVar1 + 8))" (( "(") (binary_expression "param_1 != *(int *)(iVar1 + 8)" (identifier "param_1") (!= "!=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) () ")"))) () ")")) () ")")) (compound_statement "{\nLAB_001b2690:\n        piVar4 = piVar4 + 1;\n        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;\n      }" ({ "{") (labeled_statement "LAB_001b2690:\n        piVar4 = piVar4 + 1;" (statement_identifier "LAB_001b2690") (: ":") (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;" (if "if") (parenthesized_expression "((int *)piVar2[1] == piVar4)" (( "(") (binary_expression "(int *)piVar2[1] == piVar4" (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (== "==") (identifier "piVar4")) () ")")) (goto_statement "goto LAB_001b26cc;" (goto "goto") (statement_identifier "LAB_001b26cc") (; ";"))) (} "}"))) (if_statement "if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }\n      else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x2b) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2b) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(iVar1 + 0x2b)" (* "*") (cast_expression "(byte *)(iVar1 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2b)" (( "(") (binary_expression "iVar1 + 0x2b" (identifier "iVar1") (+ "+") (number_literal "0x2b")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));\n        piVar2 = *(int **)(param_1 + 0x7c);\n        bVar5 = bVar5 ^ 1;\n      }" ({ "{") (expression_statement "bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));" (assignment_expression "bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc))" (identifier "bVar5") (= "=") (call_expression "FUN_0018a8d0(*(int *)(iVar1 + 0xc))" (identifier "FUN_0018a8d0") (argument_list "(*(int *)(iVar1 + 0xc))" (( "(") (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x7c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x7c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x7c)" (* "*") (cast_expression "(int **)(param_1 + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "bVar5 = bVar5 ^ 1;" (assignment_expression "bVar5 = bVar5 ^ 1" (identifier "bVar5") (= "=") (binary_expression "bVar5 ^ 1" (identifier "bVar5") (^ "^") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" (else "else") (compound_statement "{\n        bVar5 = *(int *)(iVar1 + 0xc) != 0;\n      }" ({ "{") (expression_statement "bVar5 = *(int *)(iVar1 + 0xc) != 0;" (assignment_expression "bVar5 = *(int *)(iVar1 + 0xc) != 0" (identifier "bVar5") (= "=") (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0"))) (; ";")) (} "}")))) (if_statement "if (bVar5 == 0) goto LAB_001b2690;" (if "if") (parenthesized_expression "(bVar5 == 0)" (( "(") (binary_expression "bVar5 == 0" (identifier "bVar5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001b2690;" (goto "goto") (statement_identifier "LAB_001b2690") (; ";"))) (expression_statement "iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);" (assignment_expression "iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0)" (identifier "iVar3") (= "=") (binary_expression "(iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0)" (parenthesized_expression "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")) (- "-") (call_expression "(uint)(*(int *)(*piVar4 + 0x14) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(*piVar4 + 0x14) == 0)" (( "(") (binary_expression "*(int *)(*piVar4 + 0x14) == 0" (pointer_expression "*(int *)(*piVar4 + 0x14)" (* "*") (cast_expression "(int *)(*piVar4 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar4 + 0x14)" (( "(") (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0")) () ")"))))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int *)piVar2[1] != piVar4)" (( "(") (binary_expression "(int *)piVar2[1] != piVar4" (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (identifier "piVar4")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_001b26cc:\n  *param_4 = iVar3;" (statement_identifier "LAB_001b26cc") (: ":") (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar3")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void do_get_global_symbol_counts(Sized_dynobj<32,_true> * this,
   Symbol_table * param_1, size_t * defined, size_t * used) */

void __thiscall
var_1::var_8<32,var_9>::do_get_global_symbol_counts
          (var_8<32,var_9> *var_7,Symbol_table *param_2,size_t *defined,size_t *used)

{
  type_3 *var_6;
  type_1 *pSVar2;
  size_t var_11;
  type_2 var_5;
  bool bVar5;
  
  var_11 = 0;
  *defined = var_7->defined_count_;
  pSVar2 = var_7->symbols_;
  var_5 = (pSVar2->super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*var_3>var_4>var_3)._M_impl.
            _M_start;
  if (var_5 !=
      (pSVar2->super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_4>var_3)._M_impl._M_finish)
  {
    do {
      while (((var_6 = *var_5, var_6 == (type_3 *)0x0 || ((var_6->field_0x2a & 7) != 0)) ||
             (var_7 != (var_8<32,var_9> *var_3)(var_6->u1_).object))) {
LAB_001b2690:
        var_5 = var_5 + 1;
        if ((pSVar2->super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_4>var_3)._M_impl.
            _M_finish == var_5) goto LAB_001b26cc;
      }
      if ((var_6->field_0x2b & 0x20) == 0) {
        bVar5 = type_3::var_10((var_6->u2_).shndx);
        pSVar2 = var_7->symbols_;
        bVar5 = !bVar5;
      }
      else {
        bVar5 = (var_6->u2_).shndx != 0;
      }
      if (!bVar5) goto LAB_001b2690;
      var_11 = (var_11 + 1) - (uint)((*var_5)->dynsym_index_ == 0);
      var_5 = var_5 + 1;
    } while ((pSVar2->super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_4>var_3)._M_impl.
             _M_finish != var_5);
  }
LAB_001b26cc:
  *used = var_11;
  return;
}


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

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

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

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  byte bVar5;
  
  iVar3 = 0;
  *param_3 = *(undefined4 *)(param_1 + 0x80);
  piVar2 = *(int **)(param_1 + 0x7c);
  piVar4 = (int *)*piVar2;
  if (piVar4 != (int *)piVar2[1]) {
    do {
      while (((iVar1 = *piVar4, iVar1 == 0 || ((*(byte *)(iVar1 + 0x2a) & 7) != 0)) ||
             (param_1 != *(int *)(iVar1 + 8)))) {
LAB_001b2690:
        piVar4 = piVar4 + 1;
        if ((int *)piVar2[1] == piVar4) goto LAB_001b26cc;
      }
      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {
        bVar5 = FUN_0018a8d0(*(int *)(iVar1 + 0xc));
        piVar2 = *(int **)(param_1 + 0x7c);
        bVar5 = bVar5 ^ 1;
      }
      else {
        bVar5 = *(int *)(iVar1 + 0xc) != 0;
      }
      if (bVar5 == 0) goto LAB_001b2690;
      iVar3 = (iVar3 + 1) - (uint)(*(int *)(*piVar4 + 0x14) == 0);
      piVar4 = piVar4 + 1;
    } while ((int *)piVar2[1] != piVar4);
  }
LAB_001b26cc:
  *param_4 = iVar3;
  return;
}

