
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Workqueue_threader_threadpool(Workqueue_threader_threadpool *
   this, Workqueue * workqueue) */

void __thiscall
gold::Workqueue_threader_threadpool::Workqueue_threader_threadpool
          (Workqueue_threader_threadpool *this,Workqueue *workqueue)

{
  (this->super_Workqueue_threader).workqueue_ = workqueue;
  this->check_thread_count_ = 0;
  (this->super_Workqueue_threader)._vptr_Workqueue_threader =
       (_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc;
  Lock::Lock(&this->lock_);
  this->desired_thread_count_ = 1;
  this->threads_ = 1;
  return;
}



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

void FUN_001919d0(undefined4 *param_1,undefined4 param_2)

{
  param_1[1] = param_2;
  param_1[2] = 0;
  *param_1 = &PTR_FUN_003854fc;
  FUN_0006cb40(param_1 + 3);
  param_1[4] = 1;
  param_1[5] = 1;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1fd629
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[EBX + 0xffff64fc]
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI],EAX
LEA EAX,[ESI + 0xc]
PUSH EAX
CALL 0x0006cb40
MOV dword ptr [ESI + 0x10],0x1
MOV dword ptr [ESI + 0x14],0x1
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001919d0(undefined4 *param_1,undefined4 param_2)\n\n{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}\n\n" comment (function_definition "void FUN_001919d0(undefined4 *param_1,undefined4 param_2)\n\n{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}" primitive_type (function_declarator "FUN_001919d0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}" { (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = &PTR_FUN_003854fc;" (assignment_expression "*param_1 = &PTR_FUN_003854fc" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003854fc" & identifier)) ;) (expression_statement "FUN_0006cb40(param_1 + 3);" (call_expression "FUN_0006cb40(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 1;" (assignment_expression "param_1[5] = 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (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 Workqueue_threader_threadpool(Workqueue_threader_threadpool *\n   this, Workqueue * workqueue) */\n\nvoid __thiscall\ngold::Workqueue_threader_threadpool::Workqueue_threader_threadpool\n          (Workqueue_threader_threadpool *this,Workqueue *workqueue)\n\n{\n  (this->super_Workqueue_threader).workqueue_ = workqueue;\n  this->check_thread_count_ = 0;\n  (this->super_Workqueue_threader)._vptr_Workqueue_threader =\n       (_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc;\n  Lock::Lock(&this->lock_);\n  this->desired_thread_count_ = 1;\n  this->threads_ = 1;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Workqueue_threader_threadpool::Workqueue_threader_threadpool\n          (Workqueue_threader_threadpool *this,Workqueue *workqueue)\n\n{\n  (this->super_Workqueue_threader).workqueue_ = workqueue;\n  this->check_thread_count_ = 0;\n  (this->super_Workqueue_threader)._vptr_Workqueue_threader =\n       (_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc;\n  Lock::Lock(&this->lock_);\n  this->desired_thread_count_ = 1;\n  this->threads_ = 1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue_threader_threadpool::" identifier : : identifier : :) (function_declarator "Workqueue_threader_threadpool\n          (Workqueue_threader_threadpool *this,Workqueue *workqueue)" identifier (parameter_list "(Workqueue_threader_threadpool *this,Workqueue *workqueue)" ( (parameter_declaration "Workqueue_threader_threadpool *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Workqueue *workqueue" type_identifier (pointer_declarator "*workqueue" * identifier)) ))) (compound_statement "{\n  (this->super_Workqueue_threader).workqueue_ = workqueue;\n  this->check_thread_count_ = 0;\n  (this->super_Workqueue_threader)._vptr_Workqueue_threader =\n       (_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc;\n  Lock::Lock(&this->lock_);\n  this->desired_thread_count_ = 1;\n  this->threads_ = 1;\n  return;\n}" { (expression_statement "(this->super_Workqueue_threader).workqueue_ = workqueue;" (assignment_expression "(this->super_Workqueue_threader).workqueue_ = workqueue" (field_expression "(this->super_Workqueue_threader).workqueue_" (parenthesized_expression "(this->super_Workqueue_threader)" ( (field_expression "this->super_Workqueue_threader" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "this->check_thread_count_ = 0;" (assignment_expression "this->check_thread_count_ = 0" (field_expression "this->check_thread_count_" identifier -> field_identifier) = number_literal) ;) (expression_statement "(this->super_Workqueue_threader)._vptr_Workqueue_threader =\n       (_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc;" (assignment_expression "(this->super_Workqueue_threader)._vptr_Workqueue_threader =\n       (_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc" (field_expression "(this->super_Workqueue_threader)._vptr_Workqueue_threader" (parenthesized_expression "(this->super_Workqueue_threader)" ( (field_expression "this->super_Workqueue_threader" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(_func_int_varargs **)&PTR__Workqueue_threader_threadpool_003854fc" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Workqueue_threader_threadpool_003854fc" & identifier))) ;) (labeled_statement "Lock::Lock(&this->lock_);" statement_identifier : (ERROR ":" :) (expression_statement "Lock(&this->lock_);" (call_expression "Lock(&this->lock_)" identifier (argument_list "(&this->lock_)" ( (pointer_expression "&this->lock_" & (field_expression "this->lock_" identifier -> field_identifier)) ))) ;)) (expression_statement "this->desired_thread_count_ = 1;" (assignment_expression "this->desired_thread_count_ = 1" (field_expression "this->desired_thread_count_" identifier -> field_identifier) = number_literal) ;) (expression_statement "this->threads_ = 1;" (assignment_expression "this->threads_ = 1" (field_expression "this->threads_" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001919d0(undefined4 *param_1,undefined4 param_2)\n\n{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}\n\n" (function_definition "void FUN_001919d0(undefined4 *param_1,undefined4 param_2)\n\n{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}" primitive_type (function_declarator "FUN_001919d0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}" { (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = &PTR_FUN_003854fc;" (assignment_expression "*param_1 = &PTR_FUN_003854fc" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003854fc" & identifier)) ;) (expression_statement "FUN_0006cb40(param_1 + 3);" (call_expression "FUN_0006cb40(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 1;" (assignment_expression "param_1[5] = 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001919d0(undefined4 *param_1,undefined4 param_2)\n\n{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001919d0(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_001919d0") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  param_1[1] = param_2;\n  param_1[2] = 0;\n  *param_1 = &PTR_FUN_003854fc;\n  FUN_0006cb40(param_1 + 3);\n  param_1[4] = 1;\n  param_1[5] = 1;\n  return;\n}" ({ "{") (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_003854fc;" (assignment_expression "*param_1 = &PTR_FUN_003854fc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003854fc" (& "&") (identifier "PTR_FUN_003854fc"))) (; ";")) (expression_statement "FUN_0006cb40(param_1 + 3);" (call_expression "FUN_0006cb40(param_1 + 3)" (identifier "FUN_0006cb40") (argument_list "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[5] = 1;" (assignment_expression "param_1[5] = 1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Workqueue_threader_threadpool(Workqueue_threader_threadpool *
   this, Workqueue * workqueue) */

void __thiscall
gold::function_1::function_1
          (function_1 *this,type_1 *workqueue)

{
  (this->super_Workqueue_threader).workqueue_ = workqueue;
  this->check_thread_count_ = 0;
  (this->super_Workqueue_threader)._vptr_Workqueue_threader =
       (type_2 **)&PTR__Workqueue_threader_threadpool_003854fc;
  Lock::var_1(&this->lock_);
  this->desired_thread_count_ = 1;
  this->threads_ = 1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

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

void MASKED(undefined4 *param_1,undefined4 param_2)

{
  param_1[1] = param_2;
  param_1[2] = 0;
  *param_1 = &PTR_FUN_003854fc;
  FUN_0006cb40(param_1 + 3);
  param_1[4] = 1;
  param_1[5] = 1;
  return;
}

