
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void set_thread_count(Workqueue_threader_threadpool * this, int
   thread_count) */

void __thiscall
gold::Workqueue_threader_threadpool::set_thread_count
          (Workqueue_threader_threadpool *this,int thread_count)

{
  Lock_impl *pLVar1;
  Workqueue_thread *this_00;
  int iVar2;
  int iVar3;
  
  pLVar1 = (this->lock_).lock_;
  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);
  this->desired_thread_count_ = thread_count;
  iVar3 = this->threads_;
  iVar2 = thread_count - iVar3;
  if (-1 < iVar2) {
    pLVar1 = (this->lock_).lock_;
    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);
    if (thread_count != iVar3) {
      iVar3 = 0;
      do {
        this_00 = (Workqueue_thread *)operator_new(0xc);
                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */
        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);
        this->threads_ = this->threads_ + 1;
        iVar3 = iVar3 + 1;
      } while (iVar2 != iVar3);
    }
    return;
  }
  pLVar1 = (this->lock_).lock_;
  this->check_thread_count_ = 1;
                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*pLVar1->_vptr_Lock_impl[3])();
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_001918f0(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));
  *(int *)(param_1 + 0x10) = param_2;
  iVar3 = *(int *)(param_1 + 0x14);
  iVar2 = param_2 - iVar3;
  if (-1 < iVar2) {
    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
    if (param_2 != iVar3) {
      iVar3 = 0;
      do {
        uVar1 = FUN_001e5200(0xc);
                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */
        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));
        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;
        iVar3 = iVar3 + 1;
      } while (iVar2 != iVar3);
    }
    return;
  }
  *(undefined4 *)(param_1 + 8) = 1;
                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();
  return;
}


CALL 0x000559e6
ADD EAX,0x1fd70b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x28
MOV ESI,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x20],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x8]
MOV dword ptr [ESI + 0x10],EDI
ADD ESP,0x10
SUB EDI,dword ptr [ESI + 0x14]
MOV dword ptr [EBP + -0x1c],EDI
JS 0x00191978
MOV EAX,dword ptr [ESI + 0xc]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0xc]
MOV EDX,dword ptr [EBP + -0x1c]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x0019196c
XOR EDI,EDI
LEA ESI,[ESI]
NOP
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x20]
PUSH 0xc
CALL 0x001e5200
ADD ESP,0xc
PUSH dword ptr [ESI + 0x14]
PUSH ESI
PUSH EAX
MOV dword ptr [EBP + -0x24],EAX
CALL 0x00191840
ADD ESP,0x10
ADD dword ptr [ESI + 0x14],0x1
ADD EDI,0x1
CMP dword ptr [EBP + -0x1c],EDI
JNZ 0x00191940
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [ESI + 0x8],0x1
MOV EDX,dword ptr [EAX]
MOV dword ptr [EBP + 0x8],EAX
MOV EAX,dword ptr [EDX + 0xc]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
JMP EAX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_001918f0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}\n\n" comment (function_definition "void FUN_001918f0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}" primitive_type (function_declarator "FUN_001918f0(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 identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(param_1 + 0x10) = param_2;" (assignment_expression "*(int *)(param_1 + 0x10) = param_2" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = param_2 - iVar3;" (assignment_expression "iVar2 = param_2 - iVar3" identifier = (binary_expression "param_2 - iVar3" identifier - identifier)) ;) (if_statement "if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);" do (compound_statement "{\n        uVar1 = FUN_001e5200(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "uVar1 = FUN_001e5200(0xc);" (assignment_expression "uVar1 = FUN_001e5200(0xc)" identifier = (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) comment (expression_statement "FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(uVar1,param_1,*(undefined4 *)(param_1 + 0x14))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 8) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) comment comment (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))();" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original prototype: void set_thread_count(Workqueue_threader_threadpool * this, int\n   thread_count) */\n\nvoid __thiscall\ngold::Workqueue_threader_threadpool::set_thread_count\n          (Workqueue_threader_threadpool *this,int thread_count)\n\n{\n  Lock_impl *pLVar1;\n  Workqueue_thread *this_00;\n  int iVar2;\n  int iVar3;\n  \n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  this->desired_thread_count_ = thread_count;\n  iVar3 = this->threads_;\n  iVar2 = thread_count - iVar3;\n  if (-1 < iVar2) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    if (thread_count != iVar3) {\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  pLVar1 = (this->lock_).lock_;\n  this->check_thread_count_ = 1;\n                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar1->_vptr_Lock_impl[3])();\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Workqueue_threader_threadpool::set_thread_count\n          (Workqueue_threader_threadpool *this,int thread_count)\n\n{\n  Lock_impl *pLVar1;\n  Workqueue_thread *this_00;\n  int iVar2;\n  int iVar3;\n  \n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  this->desired_thread_count_ = thread_count;\n  iVar3 = this->threads_;\n  iVar2 = thread_count - iVar3;\n  if (-1 < iVar2) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    if (thread_count != iVar3) {\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  pLVar1 = (this->lock_).lock_;\n  this->check_thread_count_ = 1;\n                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar1->_vptr_Lock_impl[3])();\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue_threader_threadpool::" identifier : : identifier : :) (function_declarator "set_thread_count\n          (Workqueue_threader_threadpool *this,int thread_count)" identifier (parameter_list "(Workqueue_threader_threadpool *this,int thread_count)" ( (parameter_declaration "Workqueue_threader_threadpool *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int thread_count" primitive_type identifier) ))) (compound_statement "{\n  Lock_impl *pLVar1;\n  Workqueue_thread *this_00;\n  int iVar2;\n  int iVar3;\n  \n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  this->desired_thread_count_ = thread_count;\n  iVar3 = this->threads_;\n  iVar2 = thread_count - iVar3;\n  if (-1 < iVar2) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    if (thread_count != iVar3) {\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  pLVar1 = (this->lock_).lock_;\n  this->check_thread_count_ = 1;\n                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*pLVar1->_vptr_Lock_impl[3])();\n  return;\n}" { (declaration "Lock_impl *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * identifier) ;) (declaration "Workqueue_thread *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pLVar1 = (this->lock_).lock_;" (assignment_expression "pLVar1 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar1->_vptr_Lock_impl[2])(pLVar1);" (call_expression "(*pLVar1->_vptr_Lock_impl[2])(pLVar1)" (parenthesized_expression "(*pLVar1->_vptr_Lock_impl[2])" ( (pointer_expression "*pLVar1->_vptr_Lock_impl[2]" * (subscript_expression "pLVar1->_vptr_Lock_impl[2]" (field_expression "pLVar1->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar1)" ( identifier ))) ;) (expression_statement "this->desired_thread_count_ = thread_count;" (assignment_expression "this->desired_thread_count_ = thread_count" (field_expression "this->desired_thread_count_" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = this->threads_;" (assignment_expression "iVar3 = this->threads_" identifier = (field_expression "this->threads_" identifier -> field_identifier)) ;) (expression_statement "iVar2 = thread_count - iVar3;" (assignment_expression "iVar2 = thread_count - iVar3" identifier = (binary_expression "thread_count - iVar3" identifier - identifier)) ;) (if_statement "if (-1 < iVar2) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    if (thread_count != iVar3) {\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    if (thread_count != iVar3) {\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" { (expression_statement "pLVar1 = (this->lock_).lock_;" (assignment_expression "pLVar1 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar1->_vptr_Lock_impl[3])(pLVar1);" (call_expression "(*pLVar1->_vptr_Lock_impl[3])(pLVar1)" (parenthesized_expression "(*pLVar1->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar1->_vptr_Lock_impl[3]" * (subscript_expression "pLVar1->_vptr_Lock_impl[3]" (field_expression "pLVar1->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar1)" ( identifier ))) ;) (if_statement "if (thread_count != iVar3) {\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" if (parenthesized_expression "(thread_count != iVar3)" ( (binary_expression "thread_count != iVar3" identifier != identifier) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);" do (compound_statement "{\n        this_00 = (Workqueue_thread *)operator_new(0xc);\n                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */\n        Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);\n        this->threads_ = this->threads_ + 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "this_00 = (Workqueue_thread *)operator_new(0xc);" (assignment_expression "this_00 = (Workqueue_thread *)operator_new(0xc)" identifier = (cast_expression "(Workqueue_thread *)operator_new(0xc)" ( (type_descriptor "Workqueue_thread *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) comment (labeled_statement "Workqueue_thread::Workqueue_thread(this_00,this,this->threads_);" statement_identifier : (ERROR ":" :) (expression_statement "Workqueue_thread(this_00,this,this->threads_);" (call_expression "Workqueue_thread(this_00,this,this->threads_)" identifier (argument_list "(this_00,this,this->threads_)" ( identifier , identifier , (field_expression "this->threads_" identifier -> field_identifier) ))) ;)) (expression_statement "this->threads_ = this->threads_ + 1;" (assignment_expression "this->threads_ = this->threads_ + 1" (field_expression "this->threads_" identifier -> field_identifier) = (binary_expression "this->threads_ + 1" (field_expression "this->threads_" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "pLVar1 = (this->lock_).lock_;" (assignment_expression "pLVar1 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "this->check_thread_count_ = 1;" (assignment_expression "this->check_thread_count_ = 1" (field_expression "this->check_thread_count_" identifier -> field_identifier) = number_literal) ;) comment comment (expression_statement "(*pLVar1->_vptr_Lock_impl[3])();" (call_expression "(*pLVar1->_vptr_Lock_impl[3])()" (parenthesized_expression "(*pLVar1->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar1->_vptr_Lock_impl[3]" * (subscript_expression "pLVar1->_vptr_Lock_impl[3]" (field_expression "pLVar1->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001918f0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}\n\n" (function_definition "void FUN_001918f0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}" primitive_type (function_declarator "FUN_001918f0(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 identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(param_1 + 0x10) = param_2;" (assignment_expression "*(int *)(param_1 + 0x10) = param_2" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = param_2 - iVar3;" (assignment_expression "iVar2 = param_2 - iVar3" identifier = (binary_expression "param_2 - iVar3" identifier - identifier)) ;) (if_statement "if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);" do (compound_statement "{\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "uVar1 = FUN_001e5200(0xc);" (assignment_expression "uVar1 = FUN_001e5200(0xc)" identifier = (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(uVar1,param_1,*(undefined4 *)(param_1 + 0x14))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 8) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))();" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + 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 IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001918f0(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001918f0(int param_1,int param_2)" (identifier "FUN_001918f0") (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") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  *(int *)(param_1 + 0x10) = param_2;\n  iVar3 = *(int *)(param_1 + 0x14);\n  iVar2 = param_2 - iVar3;\n  if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }\n  *(undefined4 *)(param_1 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = param_2;" (assignment_expression "*(int *)(param_1 + 0x10) = param_2" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x14)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = param_2 - iVar3;" (assignment_expression "iVar2 = param_2 - iVar3" (identifier "iVar2") (= "=") (binary_expression "param_2 - iVar3" (identifier "param_2") (- "-") (identifier "iVar3"))) (; ";")) (if_statement "if (-1 < iVar2) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (if_statement "if (param_2 != iVar3) {\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" (if "if") (parenthesized_expression "(param_2 != iVar3)" (( "(") (binary_expression "param_2 != iVar3" (identifier "param_2") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n      iVar3 = 0;\n      do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar2 != iVar3);" (do "do") (compound_statement "{\n        uVar1 = FUN_001e5200(0xc);\n                    \n        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));\n        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n        iVar3 = iVar3 + 1;\n      }" ({ "{") (expression_statement "uVar1 = FUN_001e5200(0xc);" (assignment_expression "uVar1 = FUN_001e5200(0xc)" (identifier "uVar1") (= "=") (call_expression "FUN_001e5200(0xc)" (identifier "FUN_001e5200") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00191840") (argument_list "(uVar1,param_1,*(undefined4 *)(param_1 + 0x14))" (( "(") (identifier "uVar1") (, ",") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != iVar3)" (( "(") (binary_expression "iVar2 != iVar3" (identifier "iVar2") (!= "!=") (identifier "iVar3")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 8) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 1" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))();" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: void set_thread_count(Workqueue_threader_threadpool * this, int
   thread_count) */

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

{
  type_2 *pLVar1;
  type_3 *this_00;
  int var_3;
  int var_2;
  
  pLVar1 = (this->lock_).lock_;
  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);
  this->desired_thread_count_ = var_1;
  var_2 = this->threads_;
  var_3 = var_1 - var_2;
  if (-1 < var_3) {
    pLVar1 = (this->lock_).lock_;
    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);
    if (var_1 != var_2) {
      var_2 = 0;
      do {
        this_00 = (type_3 *)var_4(0xc);
                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */
        Workqueue_thread::type_3(this_00,this,this->threads_);
        this->threads_ = this->threads_ + 1;
        var_2 = var_2 + 1;
      } while (var_3 != var_2);
    }
    return;
  }
  pLVar1 = (this->lock_).lock_;
  this->check_thread_count_ = 1;
                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*pLVar1->_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: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));
  *(int *)(param_1 + 0x10) = param_2;
  iVar3 = *(int *)(param_1 + 0x14);
  iVar2 = param_2 - iVar3;
  if (-1 < iVar2) {
    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
    if (param_2 != iVar3) {
      iVar3 = 0;
      do {
        uVar1 = FUN_001e5200(0xc);
                    /* try { // try from 00191958 to 0019195c has its CatchHandler @ 00191993 */
        FUN_00191840(uVar1,param_1,*(undefined4 *)(param_1 + 0x14));
        *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;
        iVar3 = iVar3 + 1;
      } while (iVar2 != iVar3);
    }
    return;
  }
  *(undefined4 *)(param_1 + 8) = 1;
                    /* WARNING: Could not recover jumptable at 0x00191991. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(**(int **)(param_1 + 0xc) + 0xc))();
  return;
}

