
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void increment_counter(Errors * this, int * counter) */

void __thiscall gold::Errors::increment_counter(Errors *this,int *counter)

{
  Lock *pLVar1;
  Lock_impl *pLVar2;
  bool bVar3;
  
  bVar3 = Initialize_lock::initialize(&this->initialize_lock_);
  if (!bVar3) {
    *counter = *counter + 1;
    return;
  }
  pLVar1 = this->lock_;
  pLVar2 = pLVar1->lock_;
  (*pLVar2->_vptr_Lock_impl[2])(pLVar2);
  pLVar2 = pLVar1->lock_;
  *counter = *counter + 1;
                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*pLVar2->_vptr_Lock_impl[3])();
  return;
}



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

void FUN_00065190(int param_1,int *param_2)

{
  undefined4 *puVar1;
  int *piVar2;
  char cVar3;
  
  cVar3 = FUN_0006cf30(param_1 + 8);
  if (cVar3 == '\0') {
    *param_2 = *param_2 + 1;
    return;
  }
  puVar1 = *(undefined4 **)(param_1 + 4);
  piVar2 = (int *)*puVar1;
  (**(code **)(*piVar2 + 8))(piVar2);
  piVar2 = (int *)*puVar1;
  *param_2 = *param_2 + 1;
                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*piVar2 + 0xc))();
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00035840
ADD EBX,0x329e64
MOV ESI,dword ptr [ESP + 0x14]
LEA EAX,[EDI + 0x8]
SUB ESP,0xc
PUSH EAX
CALL 0x0006cf30
ADD ESP,0x10
TEST AL,AL
JNZ 0x000651c0
ADD dword ptr [ESI],0x1
POP EBX
POP ESI
POP EDI
RET
MOV EBX,dword ptr [EDI + 0x4]
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x8]
MOV EAX,dword ptr [EBX]
ADD dword ptr [ESI],0x1
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x10],EAX
POP EBX
POP ESI
MOV EAX,dword ptr [EDX + 0xc]
POP EDI
JMP EAX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00065190(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}\n\n" comment (function_definition "void FUN_00065190(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}" primitive_type (function_declarator "FUN_00065190(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "cVar3 = FUN_0006cf30(param_1 + 8);" (assignment_expression "cVar3 = FUN_0006cf30(param_1 + 8)" identifier = (call_expression "FUN_0006cf30(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_2 = *param_2 + 1;\n    return;\n  }" { (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 4);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" identifier = (cast_expression "(int *)*puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "(**(code **)(*piVar2 + 8))(piVar2);" (call_expression "(**(code **)(*piVar2 + 8))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 8))" ( (pointer_expression "**(code **)(*piVar2 + 8)" * (pointer_expression "*(code **)(*piVar2 + 8)" * (cast_expression "(code **)(*piVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 8)" ( (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" identifier = (cast_expression "(int *)*puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) comment comment (expression_statement "(**(code **)(*piVar2 + 0xc))();" (call_expression "(**(code **)(*piVar2 + 0xc))()" (parenthesized_expression "(**(code **)(*piVar2 + 0xc))" ( (pointer_expression "**(code **)(*piVar2 + 0xc)" * (pointer_expression "*(code **)(*piVar2 + 0xc)" * (cast_expression "(code **)(*piVar2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0xc)" ( (binary_expression "*piVar2 + 0xc" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (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 increment_counter(Errors * this, int * counter) */\n\nvoid __thiscall gold::Errors::increment_counter(Errors *this,int *counter)\n\n{\n  Lock *pLVar1;\n  Lock_impl *pLVar2;\n  bool bVar3;\n  \n  bVar3 = Initialize_lock::initialize(&this->initialize_lock_);\n  if (!bVar3) {\n    *counter = *counter + 1;\n    return;\n  }\n  pLVar1 = this->lock_;\n  pLVar2 = pLVar1->lock_;\n  (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n  pLVar2 = pLVar1->lock_;\n  *counter = *counter + 1;\n                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar2->_vptr_Lock_impl[3])();\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Errors::increment_counter(Errors *this,int *counter)\n\n{\n  Lock *pLVar1;\n  Lock_impl *pLVar2;\n  bool bVar3;\n  \n  bVar3 = Initialize_lock::initialize(&this->initialize_lock_);\n  if (!bVar3) {\n    *counter = *counter + 1;\n    return;\n  }\n  pLVar1 = this->lock_;\n  pLVar2 = pLVar1->lock_;\n  (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n  pLVar2 = pLVar1->lock_;\n  *counter = *counter + 1;\n                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar2->_vptr_Lock_impl[3])();\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Errors::" identifier : : identifier : :) (function_declarator "increment_counter(Errors *this,int *counter)" identifier (parameter_list "(Errors *this,int *counter)" ( (parameter_declaration "Errors *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int *counter" primitive_type (pointer_declarator "*counter" * identifier)) ))) (compound_statement "{\n  Lock *pLVar1;\n  Lock_impl *pLVar2;\n  bool bVar3;\n  \n  bVar3 = Initialize_lock::initialize(&this->initialize_lock_);\n  if (!bVar3) {\n    *counter = *counter + 1;\n    return;\n  }\n  pLVar1 = this->lock_;\n  pLVar2 = pLVar1->lock_;\n  (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n  pLVar2 = pLVar1->lock_;\n  *counter = *counter + 1;\n                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar2->_vptr_Lock_impl[3])();\n  return;\n}" { (declaration "Lock *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * identifier) ;) (declaration "Lock_impl *pLVar2;" type_identifier (pointer_declarator "*pLVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (ERROR "bVar3 = Initialize_lock::" (assignment_expression "bVar3 = Initialize_lock" identifier = identifier) : :) (expression_statement "initialize(&this->initialize_lock_);" (call_expression "initialize(&this->initialize_lock_)" identifier (argument_list "(&this->initialize_lock_)" ( (pointer_expression "&this->initialize_lock_" & (field_expression "this->initialize_lock_" identifier -> field_identifier)) ))) ;) (if_statement "if (!bVar3) {\n    *counter = *counter + 1;\n    return;\n  }" if (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) )) (compound_statement "{\n    *counter = *counter + 1;\n    return;\n  }" { (expression_statement "*counter = *counter + 1;" (assignment_expression "*counter = *counter + 1" (pointer_expression "*counter" * identifier) = (binary_expression "*counter + 1" (pointer_expression "*counter" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pLVar1 = this->lock_;" (assignment_expression "pLVar1 = this->lock_" identifier = (field_expression "this->lock_" identifier -> field_identifier)) ;) (expression_statement "pLVar2 = pLVar1->lock_;" (assignment_expression "pLVar2 = pLVar1->lock_" identifier = (field_expression "pLVar1->lock_" identifier -> field_identifier)) ;) (expression_statement "(*pLVar2->_vptr_Lock_impl[2])(pLVar2);" (call_expression "(*pLVar2->_vptr_Lock_impl[2])(pLVar2)" (parenthesized_expression "(*pLVar2->_vptr_Lock_impl[2])" ( (pointer_expression "*pLVar2->_vptr_Lock_impl[2]" * (subscript_expression "pLVar2->_vptr_Lock_impl[2]" (field_expression "pLVar2->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar2)" ( identifier ))) ;) (expression_statement "pLVar2 = pLVar1->lock_;" (assignment_expression "pLVar2 = pLVar1->lock_" identifier = (field_expression "pLVar1->lock_" identifier -> field_identifier)) ;) (expression_statement "*counter = *counter + 1;" (assignment_expression "*counter = *counter + 1" (pointer_expression "*counter" * identifier) = (binary_expression "*counter + 1" (pointer_expression "*counter" * identifier) + number_literal)) ;) comment comment (expression_statement "(*pLVar2->_vptr_Lock_impl[3])();" (call_expression "(*pLVar2->_vptr_Lock_impl[3])()" (parenthesized_expression "(*pLVar2->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar2->_vptr_Lock_impl[3]" * (subscript_expression "pLVar2->_vptr_Lock_impl[3]" (field_expression "pLVar2->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00065190(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    \n                    \n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}\n\n" (function_definition "void FUN_00065190(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    \n                    \n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}" primitive_type (function_declarator "FUN_00065190(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    \n                    \n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "cVar3 = FUN_0006cf30(param_1 + 8);" (assignment_expression "cVar3 = FUN_0006cf30(param_1 + 8)" identifier = (call_expression "FUN_0006cf30(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_2 = *param_2 + 1;\n    return;\n  }" { (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 4);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" identifier = (cast_expression "(int *)*puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "(**(code **)(*piVar2 + 8))(piVar2);" (call_expression "(**(code **)(*piVar2 + 8))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 8))" ( (pointer_expression "**(code **)(*piVar2 + 8)" * (pointer_expression "*(code **)(*piVar2 + 8)" * (cast_expression "(code **)(*piVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 8)" ( (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" identifier = (cast_expression "(int *)*puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "(**(code **)(*piVar2 + 0xc))();" (call_expression "(**(code **)(*piVar2 + 0xc))()" (parenthesized_expression "(**(code **)(*piVar2 + 0xc))" ( (pointer_expression "**(code **)(*piVar2 + 0xc)" * (pointer_expression "*(code **)(*piVar2 + 0xc)" * (cast_expression "(code **)(*piVar2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0xc)" ( (binary_expression "*piVar2 + 0xc" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00065190(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    \n                    \n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00065190(int param_1,int *param_2)" (identifier "FUN_00065190") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  char cVar3;\n  \n  cVar3 = FUN_0006cf30(param_1 + 8);\n  if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }\n  puVar1 = *(undefined4 **)(param_1 + 4);\n  piVar2 = (int *)*puVar1;\n  (**(code **)(*piVar2 + 8))(piVar2);\n  piVar2 = (int *)*puVar1;\n  *param_2 = *param_2 + 1;\n                    \n                    \n  (**(code **)(*piVar2 + 0xc))();\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (expression_statement "cVar3 = FUN_0006cf30(param_1 + 8);" (assignment_expression "cVar3 = FUN_0006cf30(param_1 + 8)" (identifier "cVar3") (= "=") (call_expression "FUN_0006cf30(param_1 + 8)" (identifier "FUN_0006cf30") (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') {\n    *param_2 = *param_2 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *param_2 = *param_2 + 1;\n    return;\n  }" ({ "{") (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 4);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 4)" (* "*") (cast_expression "(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" (identifier "piVar2") (= "=") (cast_expression "(int *)*puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "(**(code **)(*piVar2 + 8))(piVar2);" (call_expression "(**(code **)(*piVar2 + 8))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 8))" (( "(") (pointer_expression "**(code **)(*piVar2 + 8)" (* "*") (pointer_expression "*(code **)(*piVar2 + 8)" (* "*") (cast_expression "(code **)(*piVar2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 8)" (( "(") (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" (identifier "piVar2") (= "=") (cast_expression "(int *)*puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(**(code **)(*piVar2 + 0xc))();" (call_expression "(**(code **)(*piVar2 + 0xc))()" (parenthesized_expression "(**(code **)(*piVar2 + 0xc))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0xc)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0xc)" (* "*") (cast_expression "(code **)(*piVar2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0xc)" (( "(") (binary_expression "*piVar2 + 0xc" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void increment_counter(Errors * this, int * counter) */

void __thiscall gold::type_1::function_1(type_1 *this,int *counter)

{
  type_2 *pLVar1;
  type_3 *pLVar2;
  bool bVar3;
  
  bVar3 = Initialize_lock::var_1(&this->initialize_lock_);
  if (!bVar3) {
    *counter = *counter + 1;
    return;
  }
  pLVar1 = this->lock_;
  pLVar2 = pLVar1->lock_;
  (*pLVar2->_vptr_Lock_impl[2])(pLVar2);
  pLVar2 = pLVar1->lock_;
  *counter = *counter + 1;
                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*pLVar2->_vptr_Lock_impl[3])();
  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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))) (return_statement))))

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

void MASKED(int param_1,int *param_2)

{
  undefined4 *puVar1;
  int *piVar2;
  char cVar3;
  
  cVar3 = FUN_0006cf30(param_1 + 8);
  if (cVar3 == '\0') {
    *param_2 = *param_2 + 1;
    return;
  }
  puVar1 = *(undefined4 **)(param_1 + 4);
  piVar2 = (int *)*puVar1;
  (**(code **)(*piVar2 + 8))(piVar2);
  piVar2 = (int *)*puVar1;
  *param_2 = *param_2 + 1;
                    /* WARNING: Could not recover jumptable at 0x000651e2. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*piVar2 + 0xc))();
  return;
}

