
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void Workqueue(Workqueue * this, General_options * options) */

void __thiscall gold::Workqueue::Workqueue(Workqueue *this,General_options *options)

{
  Workqueue_threader *pWVar1;
  Workqueue_threader_threadpool *this_00;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  Lock::Lock(&this->lock_);
  (this->first_tasks_).head_ = (Task *)0x0;
  (this->first_tasks_).tail_ = (Task *)0x0;
  (this->tasks_).head_ = (Task *)0x0;
  (this->tasks_).tail_ = (Task *)0x0;
  this->running_ = 0;
  this->waiting_ = 0;
                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */
  Condvar::Condvar(&this->condvar_,&this->lock_);
  this->threader_ = (Workqueue_threader *)0x0;
  if ((options->threads_).value == false) {
                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */
    pWVar1 = (Workqueue_threader *)operator_new(8);
    pWVar1->workqueue_ = this;
    pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);
    this->threader_ = pWVar1;
    return;
  }
  this_00 = (Workqueue_threader_threadpool *)operator_new(0x18);
                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */
  Workqueue_threader_threadpool::Workqueue_threader_threadpool(this_00,this);
  this->threader_ = (Workqueue_threader *)this_00;
  return;
}



void FUN_00134c10(int param_1,int param_2)

{
  int *piVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_0004fb7e();
  FUN_00061ef0(param_1);
  *(undefined4 *)(param_1 + 4) = 0;
  *(undefined4 *)(param_1 + 8) = 0;
  *(undefined4 *)(param_1 + 0xc) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(undefined4 *)(param_1 + 0x14) = 0;
  *(undefined4 *)(param_1 + 0x18) = 0;
                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */
  FUN_00062060(param_1 + 0x1c,param_1);
  *(undefined4 *)(param_1 + 0x24) = 0;
  if (*(char *)(param_2 + 0x3d69) == '\0') {
                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */
    piVar1 = (int *)FUN_0017ebf0(8);
    piVar1[1] = param_1;
    *piVar1 = unaff_EDI + 0x1c4acb;
    *(int **)(param_1 + 0x24) = piVar1;
    return;
  }
  uVar2 = FUN_0017ebf0(0x18);
                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */
  FUN_001362b0(uVar2,param_1);
  *(undefined4 *)(param_1 + 0x24) = uVar2;
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x0004fb7e
ADD EDI,0x1cd3e7
PUSH ESI
PUSH EBX
SUB ESP,0x28
MOV ESI,dword ptr [EBP + 0x8]
PUSH ESI
MOV EBX,EDI
CALL 0x00061ef0
LEA EAX,[ESI + 0x1c]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x18],0x0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
MOV dword ptr [EBP + -0x20],EAX
CALL 0x00062060
MOV EAX,dword ptr [EBP + 0xc]
ADD ESP,0x10
MOV dword ptr [ESI + 0x24],0x0
CMP byte ptr [EAX + 0x3d69],0x0
JNZ 0x00134ca8
SUB ESP,0xc
PUSH 0x8
CALL 0x0017ebf0
LEA EDX,[EDI + 0xffff76e4]
MOV dword ptr [EAX + 0x4],ESI
ADD ESP,0x10
MOV dword ptr [EAX],EDX
MOV dword ptr [ESI + 0x24],EAX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x18
CALL 0x0017ebf0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
MOV dword ptr [EBP + -0x1c],EAX
CALL 0x001362b0
MOV EAX,dword ptr [EBP + -0x1c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x24],EAX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_00134c10(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */\n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */\n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_00134c10(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */\n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */\n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_00134c10(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  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */\n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */\n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0004fb7e();" (call_expression "FUN_0004fb7e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00061ef0(param_1);" (call_expression "FUN_00061ef0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (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 "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) comment (expression_statement "FUN_00062060(param_1 + 0x1c,param_1);" (call_expression "FUN_00062060(param_1 + 0x1c,param_1)" identifier (argument_list "(param_1 + 0x1c,param_1)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }" if (parenthesized_expression "(*(char *)(param_2 + 0x3d69) == '\0')" ( (binary_expression "*(char *)(param_2 + 0x3d69) == '\0'" (pointer_expression "*(char *)(param_2 + 0x3d69)" * (cast_expression "(char *)(param_2 + 0x3d69)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3d69)" ( (binary_expression "param_2 + 0x3d69" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }" { comment (expression_statement "piVar1 = (int *)FUN_0017ebf0(8);" (assignment_expression "piVar1 = (int *)FUN_0017ebf0(8)" identifier = (cast_expression "(int *)FUN_0017ebf0(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017ebf0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "piVar1[1] = param_1;" (assignment_expression "piVar1[1] = param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = unaff_EDI + 0x1c4acb;" (assignment_expression "*piVar1 = unaff_EDI + 0x1c4acb" (pointer_expression "*piVar1" * identifier) = (binary_expression "unaff_EDI + 0x1c4acb" identifier + number_literal)) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar1" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_0017ebf0(0x18);" (assignment_expression "uVar2 = FUN_0017ebf0(0x18)" identifier = (call_expression "FUN_0017ebf0(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) comment (expression_statement "FUN_001362b0(uVar2,param_1);" (call_expression "FUN_001362b0(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void Workqueue(Workqueue * this, General_options * options) */\n\nvoid __thiscall gold::Workqueue::Workqueue(Workqueue *this,General_options *options)\n\n{\n  Workqueue_threader *pWVar1;\n  Workqueue_threader_threadpool *this_00;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  Lock::Lock(&this->lock_);\n  (this->first_tasks_).head_ = (Task *)0x0;\n  (this->first_tasks_).tail_ = (Task *)0x0;\n  (this->tasks_).head_ = (Task *)0x0;\n  (this->tasks_).tail_ = (Task *)0x0;\n  this->running_ = 0;\n  this->waiting_ = 0;\n                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */\n  Condvar::Condvar(&this->condvar_,&this->lock_);\n  this->threader_ = (Workqueue_threader *)0x0;\n  if ((options->threads_).value == false) {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    pWVar1 = (Workqueue_threader *)operator_new(8);\n    pWVar1->workqueue_ = this;\n    pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);\n    this->threader_ = pWVar1;\n    return;\n  }\n  this_00 = (Workqueue_threader_threadpool *)operator_new(0x18);\n                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */\n  Workqueue_threader_threadpool::Workqueue_threader_threadpool(this_00,this);\n  this->threader_ = (Workqueue_threader *)this_00;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Workqueue::Workqueue(Workqueue *this,General_options *options)\n\n{\n  Workqueue_threader *pWVar1;\n  Workqueue_threader_threadpool *this_00;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  Lock::Lock(&this->lock_);\n  (this->first_tasks_).head_ = (Task *)0x0;\n  (this->first_tasks_).tail_ = (Task *)0x0;\n  (this->tasks_).head_ = (Task *)0x0;\n  (this->tasks_).tail_ = (Task *)0x0;\n  this->running_ = 0;\n  this->waiting_ = 0;\n                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */\n  Condvar::Condvar(&this->condvar_,&this->lock_);\n  this->threader_ = (Workqueue_threader *)0x0;\n  if ((options->threads_).value == false) {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    pWVar1 = (Workqueue_threader *)operator_new(8);\n    pWVar1->workqueue_ = this;\n    pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);\n    this->threader_ = pWVar1;\n    return;\n  }\n  this_00 = (Workqueue_threader_threadpool *)operator_new(0x18);\n                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */\n  Workqueue_threader_threadpool::Workqueue_threader_threadpool(this_00,this);\n  this->threader_ = (Workqueue_threader *)this_00;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue::" identifier : : identifier : :) (function_declarator "Workqueue(Workqueue *this,General_options *options)" identifier (parameter_list "(Workqueue *this,General_options *options)" ( (parameter_declaration "Workqueue *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "General_options *options" type_identifier (pointer_declarator "*options" * identifier)) ))) (compound_statement "{\n  Workqueue_threader *pWVar1;\n  Workqueue_threader_threadpool *this_00;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  Lock::Lock(&this->lock_);\n  (this->first_tasks_).head_ = (Task *)0x0;\n  (this->first_tasks_).tail_ = (Task *)0x0;\n  (this->tasks_).head_ = (Task *)0x0;\n  (this->tasks_).tail_ = (Task *)0x0;\n  this->running_ = 0;\n  this->waiting_ = 0;\n                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */\n  Condvar::Condvar(&this->condvar_,&this->lock_);\n  this->threader_ = (Workqueue_threader *)0x0;\n  if ((options->threads_).value == false) {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    pWVar1 = (Workqueue_threader *)operator_new(8);\n    pWVar1->workqueue_ = this;\n    pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);\n    this->threader_ = pWVar1;\n    return;\n  }\n  this_00 = (Workqueue_threader_threadpool *)operator_new(0x18);\n                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */\n  Workqueue_threader_threadpool::Workqueue_threader_threadpool(this_00,this);\n  this->threader_ = (Workqueue_threader *)this_00;\n  return;\n}" { (declaration "Workqueue_threader *pWVar1;" type_identifier (pointer_declarator "*pWVar1" * identifier) ;) (declaration "Workqueue_threader_threadpool *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (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->first_tasks_).head_ = (Task *)0x0;" (assignment_expression "(this->first_tasks_).head_ = (Task *)0x0" (field_expression "(this->first_tasks_).head_" (parenthesized_expression "(this->first_tasks_)" ( (field_expression "this->first_tasks_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(this->first_tasks_).tail_ = (Task *)0x0;" (assignment_expression "(this->first_tasks_).tail_ = (Task *)0x0" (field_expression "(this->first_tasks_).tail_" (parenthesized_expression "(this->first_tasks_)" ( (field_expression "this->first_tasks_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(this->tasks_).head_ = (Task *)0x0;" (assignment_expression "(this->tasks_).head_ = (Task *)0x0" (field_expression "(this->tasks_).head_" (parenthesized_expression "(this->tasks_)" ( (field_expression "this->tasks_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(this->tasks_).tail_ = (Task *)0x0;" (assignment_expression "(this->tasks_).tail_ = (Task *)0x0" (field_expression "(this->tasks_).tail_" (parenthesized_expression "(this->tasks_)" ( (field_expression "this->tasks_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "this->running_ = 0;" (assignment_expression "this->running_ = 0" (field_expression "this->running_" identifier -> field_identifier) = number_literal) ;) (expression_statement "this->waiting_ = 0;" (assignment_expression "this->waiting_ = 0" (field_expression "this->waiting_" identifier -> field_identifier) = number_literal) ;) comment (labeled_statement "Condvar::Condvar(&this->condvar_,&this->lock_);" statement_identifier : (ERROR ":" :) (expression_statement "Condvar(&this->condvar_,&this->lock_);" (call_expression "Condvar(&this->condvar_,&this->lock_)" identifier (argument_list "(&this->condvar_,&this->lock_)" ( (pointer_expression "&this->condvar_" & (field_expression "this->condvar_" identifier -> field_identifier)) , (pointer_expression "&this->lock_" & (field_expression "this->lock_" identifier -> field_identifier)) ))) ;)) (expression_statement "this->threader_ = (Workqueue_threader *)0x0;" (assignment_expression "this->threader_ = (Workqueue_threader *)0x0" (field_expression "this->threader_" identifier -> field_identifier) = (cast_expression "(Workqueue_threader *)0x0" ( (type_descriptor "Workqueue_threader *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((options->threads_).value == false) {\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    pWVar1 = (Workqueue_threader *)operator_new(8);\n    pWVar1->workqueue_ = this;\n    pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);\n    this->threader_ = pWVar1;\n    return;\n  }" if (parenthesized_expression "((options->threads_).value == false)" ( (binary_expression "(options->threads_).value == false" (field_expression "(options->threads_).value" (parenthesized_expression "(options->threads_)" ( (field_expression "options->threads_" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */\n    pWVar1 = (Workqueue_threader *)operator_new(8);\n    pWVar1->workqueue_ = this;\n    pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);\n    this->threader_ = pWVar1;\n    return;\n  }" { comment (expression_statement "pWVar1 = (Workqueue_threader *)operator_new(8);" (assignment_expression "pWVar1 = (Workqueue_threader *)operator_new(8)" identifier = (cast_expression "(Workqueue_threader *)operator_new(8)" ( (type_descriptor "Workqueue_threader *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pWVar1->workqueue_ = this;" (assignment_expression "pWVar1->workqueue_ = this" (field_expression "pWVar1->workqueue_" identifier -> field_identifier) = identifier) ;) (expression_statement "pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb);" (assignment_expression "pWVar1->_vptr_Workqueue_threader = (_func_int_varargs **)(unaff_EDI + 0x1c4acb)" (field_expression "pWVar1->_vptr_Workqueue_threader" identifier -> field_identifier) = (cast_expression "(_func_int_varargs **)(unaff_EDI + 0x1c4acb)" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1c4acb)" ( (binary_expression "unaff_EDI + 0x1c4acb" identifier + number_literal) )))) ;) (expression_statement "this->threader_ = pWVar1;" (assignment_expression "this->threader_ = pWVar1" (field_expression "this->threader_" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "this_00 = (Workqueue_threader_threadpool *)operator_new(0x18);" (assignment_expression "this_00 = (Workqueue_threader_threadpool *)operator_new(0x18)" identifier = (cast_expression "(Workqueue_threader_threadpool *)operator_new(0x18)" ( (type_descriptor "Workqueue_threader_threadpool *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) comment (labeled_statement "Workqueue_threader_threadpool::Workqueue_threader_threadpool(this_00,this);" statement_identifier : (ERROR ":" :) (expression_statement "Workqueue_threader_threadpool(this_00,this);" (call_expression "Workqueue_threader_threadpool(this_00,this)" identifier (argument_list "(this_00,this)" ( identifier , identifier ))) ;)) (expression_statement "this->threader_ = (Workqueue_threader *)this_00;" (assignment_expression "this->threader_ = (Workqueue_threader *)this_00" (field_expression "this->threader_" identifier -> field_identifier) = (cast_expression "(Workqueue_threader *)this_00" ( (type_descriptor "Workqueue_threader *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00134c10(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    \n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    \n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_00134c10(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    \n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    \n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_00134c10(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  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    \n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    \n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0004fb7e();" (call_expression "FUN_0004fb7e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00061ef0(param_1);" (call_expression "FUN_00061ef0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (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 "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00062060(param_1 + 0x1c,param_1);" (call_expression "FUN_00062060(param_1 + 0x1c,param_1)" identifier (argument_list "(param_1 + 0x1c,param_1)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }" if (parenthesized_expression "(*(char *)(param_2 + 0x3d69) == '\0')" ( (binary_expression "*(char *)(param_2 + 0x3d69) == '\0'" (pointer_expression "*(char *)(param_2 + 0x3d69)" * (cast_expression "(char *)(param_2 + 0x3d69)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3d69)" ( (binary_expression "param_2 + 0x3d69" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }" { (expression_statement "piVar1 = (int *)FUN_0017ebf0(8);" (assignment_expression "piVar1 = (int *)FUN_0017ebf0(8)" identifier = (cast_expression "(int *)FUN_0017ebf0(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017ebf0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "piVar1[1] = param_1;" (assignment_expression "piVar1[1] = param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = unaff_EDI + 0x1c4acb;" (assignment_expression "*piVar1 = unaff_EDI + 0x1c4acb" (pointer_expression "*piVar1" * identifier) = (binary_expression "unaff_EDI + 0x1c4acb" identifier + number_literal)) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar1" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_0017ebf0(0x18);" (assignment_expression "uVar2 = FUN_0017ebf0(0x18)" identifier = (call_expression "FUN_0017ebf0(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "FUN_001362b0(uVar2,param_1);" (call_expression "FUN_001362b0(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00134c10(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    \n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    \n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00134c10(int param_1,int param_2)" (identifier "FUN_00134c10") (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  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0004fb7e();\n  FUN_00061ef0(param_1);\n  *(undefined4 *)(param_1 + 4) = 0;\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n                    \n  FUN_00062060(param_1 + 0x1c,param_1);\n  *(undefined4 *)(param_1 + 0x24) = 0;\n  if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }\n  uVar2 = FUN_0017ebf0(0x18);\n                    \n  FUN_001362b0(uVar2,param_1);\n  *(undefined4 *)(param_1 + 0x24) = uVar2;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_0004fb7e();" (call_expression "FUN_0004fb7e()" (identifier "FUN_0004fb7e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00061ef0(param_1);" (call_expression "FUN_00061ef0(param_1)" (identifier "FUN_00061ef0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (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 "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00062060(param_1 + 0x1c,param_1);" (call_expression "FUN_00062060(param_1 + 0x1c,param_1)" (identifier "FUN_00062060") (argument_list "(param_1 + 0x1c,param_1)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(param_2 + 0x3d69) == '\0') {\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0x3d69) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + 0x3d69) == '\0'" (pointer_expression "*(char *)(param_2 + 0x3d69)" (* "*") (cast_expression "(char *)(param_2 + 0x3d69)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3d69)" (( "(") (binary_expression "param_2 + 0x3d69" (identifier "param_2") (+ "+") (number_literal "0x3d69")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n    piVar1 = (int *)FUN_0017ebf0(8);\n    piVar1[1] = param_1;\n    *piVar1 = unaff_EDI + 0x1c4acb;\n    *(int **)(param_1 + 0x24) = piVar1;\n    return;\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_0017ebf0(8);" (assignment_expression "piVar1 = (int *)FUN_0017ebf0(8)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0017ebf0(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0017ebf0(8)" (identifier "FUN_0017ebf0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "piVar1[1] = param_1;" (assignment_expression "piVar1[1] = param_1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*piVar1 = unaff_EDI + 0x1c4acb;" (assignment_expression "*piVar1 = unaff_EDI + 0x1c4acb" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "unaff_EDI + 0x1c4acb" (identifier "unaff_EDI") (+ "+") (number_literal "0x1c4acb"))) (; ";")) (expression_statement "*(int **)(param_1 + 0x24) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar1" (pointer_expression "*(int **)(param_1 + 0x24)" (* "*") (cast_expression "(int **)(param_1 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0017ebf0(0x18);" (assignment_expression "uVar2 = FUN_0017ebf0(0x18)" (identifier "uVar2") (= "=") (call_expression "FUN_0017ebf0(0x18)" (identifier "FUN_0017ebf0") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "FUN_001362b0(uVar2,param_1);" (call_expression "FUN_001362b0(uVar2,param_1)" (identifier "FUN_001362b0") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x24) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void Workqueue(Workqueue * this, General_options * options) */

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

{
  type_2 *pWVar1;
  type_3 *this_00;
  int var_5;
  
  var_1();
  Lock::var_2(&this->lock_);
  (this->first_tasks_).head_ = (type_4 *)0x0;
  (this->first_tasks_).tail_ = (type_4 *)0x0;
  (this->tasks_).head_ = (type_4 *)0x0;
  (this->tasks_).tail_ = (type_4 *)0x0;
  this->running_ = 0;
  this->waiting_ = 0;
                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */
  Condvar::var_3(&this->condvar_,&this->lock_);
  this->threader_ = (type_2 *)0x0;
  if ((options->threads_).value == false) {
                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */
    pWVar1 = (type_2 *)var_4(8);
    pWVar1->workqueue_ = this;
    pWVar1->_vptr_Workqueue_threader = (type_5 **)(var_5 + 0x1c4acb);
    this->threader_ = pWVar1;
    return;
  }
  this_00 = (type_3 *)var_4(0x18);
                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */
  Workqueue_threader_threadpool::type_3(this_00,this);
  this->threader_ = (type_2 *)this_00;
  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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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 (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 (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 (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 (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 (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: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_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)))) (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: (identifier))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  int *piVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_0004fb7e();
  FUN_00061ef0(param_1);
  *(undefined4 *)(param_1 + 4) = 0;
  *(undefined4 *)(param_1 + 8) = 0;
  *(undefined4 *)(param_1 + 0xc) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(undefined4 *)(param_1 + 0x14) = 0;
  *(undefined4 *)(param_1 + 0x18) = 0;
                    /* try { // try from 00134c63 to 00134c67 has its CatchHandler @ 00134cd9 */
  FUN_00062060(param_1 + 0x1c,param_1);
  *(undefined4 *)(param_1 + 0x24) = 0;
  if (*(char *)(param_2 + 0x3d69) == '\0') {
                    /* try { // try from 00134c83 to 00134cb1 has its CatchHandler @ 00134cd4 */
    piVar1 = (int *)FUN_0017ebf0(8);
    piVar1[1] = param_1;
    *piVar1 = unaff_EDI + 0x1c4acb;
    *(int **)(param_1 + 0x24) = piVar1;
    return;
  }
  uVar2 = FUN_0017ebf0(0x18);
                    /* try { // try from 00134cb9 to 00134cbd has its CatchHandler @ 00134ccf */
  FUN_001362b0(uVar2,param_1);
  *(undefined4 *)(param_1 + 0x24) = uVar2;
  return;
}

