
/* DWARF original prototype: void add_blocker(Workqueue * this, Task_token * token) */

void __thiscall gold::Workqueue::add_blocker(Workqueue *this,Task_token *token)

{
  Lock_impl *pLVar1;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  pLVar1 = (this->lock_).lock_;
  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);
  if (token->is_blocker_ != false) {
    pLVar1 = (this->lock_).lock_;
    token->blockers_ = token->blockers_ + 1;
    token->writer_ = (Task *)0x0;
                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*pLVar1->_vptr_Lock_impl[3])();
    return;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */
  do_gold_unreachable((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903));
}



void FUN_00190e10(undefined4 *param_1,char *param_2)

{
  int *piVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_000559ee();
  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);
  if (*param_2 != '\0') {
    piVar1 = (int *)*param_1;
    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;
    param_2[8] = '\0';
    param_2[9] = '\0';
    param_2[10] = '\0';
    param_2[0xb] = '\0';
                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*piVar1 + 0xc))();
    return;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */
  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x1fe1e7
PUSH ESI
PUSH EBX
SUB ESP,0x18
MOV ESI,dword ptr [EBP + 0x8]
MOV EBX,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x8]
ADD ESP,0x10
CMP byte ptr [EBX],0x0
JZ 0x00190e58
MOV EAX,dword ptr [ESI]
ADD dword ptr [EBX + 0x4],0x1
MOV dword ptr [EBX + 0x8],0x0
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
PUSH EAX
LEA EAX,[EDI + 0xfff0b71c]
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xffef15bd]
PUSH 0x8e
PUSH EAX
CALL 0x00069d00
(translation_unit "void FUN_00190e10(undefined4 *param_1,char *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */\n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\n}\n\n" (function_definition "void FUN_00190e10(undefined4 *param_1,char *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */\n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\n}" primitive_type (function_declarator "FUN_00190e10(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */\n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\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_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);" (assignment_expression "uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1)" identifier = (call_expression "(**(code **)(*(int *)*param_1 + 8))((int *)*param_1)" (parenthesized_expression "(**(code **)(*(int *)*param_1 + 8))" ( (pointer_expression "**(code **)(*(int *)*param_1 + 8)" * (pointer_expression "*(code **)(*(int *)*param_1 + 8)" * (cast_expression "(code **)(*(int *)*param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*param_1 + 8)" ( (binary_expression "*(int *)*param_1 + 8" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*param_1)" ( (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }" if (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }" { (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;" (assignment_expression "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "param_2[8] = '\0';" (assignment_expression "param_2[8] = '\0'" (subscript_expression "param_2[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[9] = '\0';" (assignment_expression "param_2[9] = '\0'" (subscript_expression "param_2[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[10] = '\0';" (assignment_expression "param_2[10] = '\0'" (subscript_expression "param_2[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0xb] = '\0';" (assignment_expression "param_2[0xb] = '\0'" (subscript_expression "param_2[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) comment comment (expression_statement "(**(code **)(*piVar1 + 0xc))();" (call_expression "(**(code **)(*piVar1 + 0xc))()" (parenthesized_expression "(**(code **)(*piVar1 + 0xc))" ( (pointer_expression "**(code **)(*piVar1 + 0xc)" * (pointer_expression "*(code **)(*piVar1 + 0xc)" * (cast_expression "(code **)(*piVar1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment comment (expression_statement "FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);" (call_expression "FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2)" identifier (argument_list "(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2)" ( (binary_expression "unaff_EDI + 0xef7a4" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x109903" identifier + number_literal) , identifier ))) ;) })))
(translation_unit "/* DWARF original prototype: void add_blocker(Workqueue * this, Task_token * token) */\n\nvoid __thiscall gold::Workqueue::add_blocker(Workqueue *this,Task_token *token)\n\n{\n  Lock_impl *pLVar1;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  if (token->is_blocker_ != false) {\n    pLVar1 = (this->lock_).lock_;\n    token->blockers_ = token->blockers_ + 1;\n    token->writer_ = (Task *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*pLVar1->_vptr_Lock_impl[3])();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */\n  do_gold_unreachable((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903));\n}\n\n" comment (function_definition "void __thiscall gold::Workqueue::add_blocker(Workqueue *this,Task_token *token)\n\n{\n  Lock_impl *pLVar1;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  if (token->is_blocker_ != false) {\n    pLVar1 = (this->lock_).lock_;\n    token->blockers_ = token->blockers_ + 1;\n    token->writer_ = (Task *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*pLVar1->_vptr_Lock_impl[3])();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */\n  do_gold_unreachable((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903));\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue::" identifier : : identifier : :) (function_declarator "add_blocker(Workqueue *this,Task_token *token)" identifier (parameter_list "(Workqueue *this,Task_token *token)" ( (parameter_declaration "Workqueue *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Task_token *token" type_identifier (pointer_declarator "*token" * identifier)) ))) (compound_statement "{\n  Lock_impl *pLVar1;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  if (token->is_blocker_ != false) {\n    pLVar1 = (this->lock_).lock_;\n    token->blockers_ = token->blockers_ + 1;\n    token->writer_ = (Task *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*pLVar1->_vptr_Lock_impl[3])();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */\n  do_gold_unreachable((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903));\n}" { (declaration "Lock_impl *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * 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 "()" ( ))) ;) (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 ))) ;) (if_statement "if (token->is_blocker_ != false) {\n    pLVar1 = (this->lock_).lock_;\n    token->blockers_ = token->blockers_ + 1;\n    token->writer_ = (Task *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*pLVar1->_vptr_Lock_impl[3])();\n    return;\n  }" if (parenthesized_expression "(token->is_blocker_ != false)" ( (binary_expression "token->is_blocker_ != false" (field_expression "token->is_blocker_" identifier -> field_identifier) != false) )) (compound_statement "{\n    pLVar1 = (this->lock_).lock_;\n    token->blockers_ = token->blockers_ + 1;\n    token->writer_ = (Task *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*pLVar1->_vptr_Lock_impl[3])();\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 "token->blockers_ = token->blockers_ + 1;" (assignment_expression "token->blockers_ = token->blockers_ + 1" (field_expression "token->blockers_" identifier -> field_identifier) = (binary_expression "token->blockers_ + 1" (field_expression "token->blockers_" identifier -> field_identifier) + number_literal)) ;) (expression_statement "token->writer_ = (Task *)0x0;" (assignment_expression "token->writer_ = (Task *)0x0" (field_expression "token->writer_" identifier -> field_identifier) = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 ;) })) comment comment (expression_statement "do_gold_unreachable((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903));" (call_expression "do_gold_unreachable((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903))" identifier (argument_list "((char *)(unaff_EDI + 0xef7a4),0x8e,(char *)(unaff_EDI + 0x109903))" ( (cast_expression "(char *)(unaff_EDI + 0xef7a4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xef7a4)" ( (binary_expression "unaff_EDI + 0xef7a4" identifier + number_literal) ))) , number_literal , (cast_expression "(char *)(unaff_EDI + 0x109903)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x109903)" ( (binary_expression "unaff_EDI + 0x109903" identifier + number_literal) ))) ))) ;) })))
(translation_unit "void FUN_00190e10(undefined4 *param_1,char *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    \n                    \n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\n}\n\n" (function_definition "void FUN_00190e10(undefined4 *param_1,char *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    \n                    \n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\n}" primitive_type (function_declarator "FUN_00190e10(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    \n                    \n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\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_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);" (assignment_expression "uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1)" identifier = (call_expression "(**(code **)(*(int *)*param_1 + 8))((int *)*param_1)" (parenthesized_expression "(**(code **)(*(int *)*param_1 + 8))" ( (pointer_expression "**(code **)(*(int *)*param_1 + 8)" * (pointer_expression "*(code **)(*(int *)*param_1 + 8)" * (cast_expression "(code **)(*(int *)*param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*param_1 + 8)" ( (binary_expression "*(int *)*param_1 + 8" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*param_1)" ( (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }" if (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }" { (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;" (assignment_expression "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "param_2[8] = '\0';" (assignment_expression "param_2[8] = '\0'" (subscript_expression "param_2[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[9] = '\0';" (assignment_expression "param_2[9] = '\0'" (subscript_expression "param_2[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[10] = '\0';" (assignment_expression "param_2[10] = '\0'" (subscript_expression "param_2[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0xb] = '\0';" (assignment_expression "param_2[0xb] = '\0'" (subscript_expression "param_2[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(**(code **)(*piVar1 + 0xc))();" (call_expression "(**(code **)(*piVar1 + 0xc))()" (parenthesized_expression "(**(code **)(*piVar1 + 0xc))" ( (pointer_expression "**(code **)(*piVar1 + 0xc)" * (pointer_expression "*(code **)(*piVar1 + 0xc)" * (cast_expression "(code **)(*piVar1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);" (call_expression "FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2)" identifier (argument_list "(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2)" ( (binary_expression "unaff_EDI + 0xef7a4" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x109903" identifier + number_literal) , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })))
(function_definition "void FUN_00190e10(undefined4 *param_1,char *param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    \n                    \n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\n}" (primitive_type "void") (function_declarator "FUN_00190e10(undefined4 *param_1,char *param_2)" (identifier "FUN_00190e10") (parameter_list "(undefined4 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);\n  if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }\n                    \n                    \n  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);\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_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);" (assignment_expression "uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*(int *)*param_1 + 8))((int *)*param_1)" (parenthesized_expression "(**(code **)(*(int *)*param_1 + 8))" (( "(") (pointer_expression "**(code **)(*(int *)*param_1 + 8)" (* "*") (pointer_expression "*(code **)(*(int *)*param_1 + 8)" (* "*") (cast_expression "(code **)(*(int *)*param_1 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)*param_1 + 8)" (( "(") (binary_expression "*(int *)*param_1 + 8" (pointer_expression "*(int *)*param_1" (* "*") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "((int *)*param_1)" (( "(") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (if_statement "if (*param_2 != '\0') {\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }" (if "if") (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar1 = (int *)*param_1;\n    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;\n    param_2[8] = '\0';\n    param_2[9] = '\0';\n    param_2[10] = '\0';\n    param_2[0xb] = '\0';\n                    \n                    \n    (**(code **)(*piVar1 + 0xc))();\n    return;\n  }" ({ "{") (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;" (assignment_expression "*(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_2 + 4) + 1" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[8] = '\0';" (assignment_expression "param_2[8] = '\0'" (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[9] = '\0';" (assignment_expression "param_2[9] = '\0'" (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[10] = '\0';" (assignment_expression "param_2[10] = '\0'" (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[0xb] = '\0';" (assignment_expression "param_2[0xb] = '\0'" (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "(**(code **)(*piVar1 + 0xc))();" (call_expression "(**(code **)(*piVar1 + 0xc))()" (parenthesized_expression "(**(code **)(*piVar1 + 0xc))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0xc)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0xc)" (* "*") (cast_expression "(code **)(*piVar1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0xc)" (( "(") (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);" (call_expression "FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2)" (identifier "FUN_00069d00") (argument_list "(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2)" (( "(") (binary_expression "unaff_EDI + 0xef7a4" (identifier "unaff_EDI") (+ "+") (number_literal "0xef7a4")) (, ",") (number_literal "0x8e") (, ",") (binary_expression "unaff_EDI + 0x109903" (identifier "unaff_EDI") (+ "+") (number_literal "0x109903")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: void add_blocker(Workqueue * this, Task_token * token) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *token)

{
  type_3 *pLVar1;
  int var_3;
  
  var_1();
  pLVar1 = (this->lock_).lock_;
  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);
  if (token->is_blocker_ != false) {
    pLVar1 = (this->lock_).lock_;
    token->blockers_ = token->blockers_ + 1;
    token->writer_ = (type_4 *)0x0;
                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*pLVar1->_vptr_Lock_impl[3])();
    return;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */
  var_2((char *)(var_3 + 0xef7a4),0x8e,(char *)(var_3 + 0x109903));
}


(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: (primitive_type) declarator: (pointer_declarator 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 (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal))))))) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) 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: (pointer_expression argument: (identifier))))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))))

void MASKED(undefined4 *param_1,char *param_2)

{
  int *piVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_000559ee();
  uVar2 = (**(code **)(*(int *)*param_1 + 8))((int *)*param_1);
  if (*param_2 != '\0') {
    piVar1 = (int *)*param_1;
    *(int *)(param_2 + 4) = *(int *)(param_2 + 4) + 1;
    param_2[8] = '\0';
    param_2[9] = '\0';
    param_2[10] = '\0';
    param_2[0xb] = '\0';
                    /* WARNING: Could not recover jumptable at 0x00190e56. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*piVar1 + 0xc))();
    return;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00190e6e to 00190e72 has its CatchHandler @ 00190e73 */
  FUN_00069d00(unaff_EDI + 0xef7a4,0x8e,unaff_EDI + 0x109903,uVar2);
}

