
/* DWARF original prototype: bool should_cancel_thread(Workqueue_threader_threadpool * this, int
   thread_number) */

bool __thiscall
gold::Workqueue_threader_threadpool::should_cancel_thread
          (Workqueue_threader_threadpool *this,int thread_number)

{
  int iVar1;
  Lock_impl *pLVar2;
  
  if (this->check_thread_count_ != 0) {
    pLVar2 = (this->lock_).lock_;
    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);
    if (this->desired_thread_count_ < thread_number) {
      iVar1 = this->threads_ + -1;
      this->threads_ = iVar1;
      if (iVar1 <= this->desired_thread_count_) {
        this->check_thread_count_ = 0;
      }
      pLVar2 = (this->lock_).lock_;
      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);
      return true;
    }
    pLVar2 = (this->lock_).lock_;
    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);
  }
  return false;
}



undefined4 FUN_002011c0(int param_1,int param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 8) != 0) {
    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));
    if (*(int *)(param_1 + 0x10) < param_2) {
      iVar1 = *(int *)(param_1 + 0x14) + -1;
      *(int *)(param_1 + 0x14) = iVar1;
      if (iVar1 <= *(int *)(param_1 + 0x10)) {
        *(undefined4 *)(param_1 + 8) = 0;
      }
      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
      return 1;
    }
    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
  }
  return 0;
}


PUSH ESI
XOR ESI,ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX + 0x8]
TEST EAX,EAX
JZ 0x002011f9
MOV EAX,dword ptr [EBX + 0xc]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x8]
MOV EAX,dword ptr [EBX + 0x10]
ADD ESP,0x10
CMP dword ptr [ESP + 0x14],EAX
JG 0x00201208
MOV EAX,dword ptr [EBX + 0xc]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0xc]
ADD ESP,0x10
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
MOV ECX,dword ptr [EBX + 0x14]
LEA EDX,[ECX + -0x1]
MOV dword ptr [EBX + 0x14],EDX
CMP EAX,EDX
JL 0x0020121c
MOV dword ptr [EBX + 0x8],0x0
MOV EAX,dword ptr [EBX + 0xc]
SUB ESP,0xc
MOV ESI,0x1
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0xc]
MOV EAX,ESI
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "undefined4 FUN_002011c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_002011c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_002011c0(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 iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) < param_2)" ( (binary_expression "*(int *)(param_1 + 0x10) < param_2" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14) + -1;" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x14) + -1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }" if (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x10))" ( (binary_expression "iVar1 <= *(int *)(param_1 + 0x10)" identifier <= (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 8) = 0;\n      }" { (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 "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: bool should_cancel_thread(Workqueue_threader_threadpool * this, int\n   thread_number) */\n\nbool __thiscall\ngold::Workqueue_threader_threadpool::should_cancel_thread\n          (Workqueue_threader_threadpool *this,int thread_number)\n\n{\n  int iVar1;\n  Lock_impl *pLVar2;\n  \n  if (this->check_thread_count_ != 0) {\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n    if (this->desired_thread_count_ < thread_number) {\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n  }\n  return false;\n}\n\n" comment (function_definition "bool __thiscall\ngold::Workqueue_threader_threadpool::should_cancel_thread\n          (Workqueue_threader_threadpool *this,int thread_number)\n\n{\n  int iVar1;\n  Lock_impl *pLVar2;\n  \n  if (this->check_thread_count_ != 0) {\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n    if (this->desired_thread_count_ < thread_number) {\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n  }\n  return false;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue_threader_threadpool::" identifier : : identifier : :) (function_declarator "should_cancel_thread\n          (Workqueue_threader_threadpool *this,int thread_number)" identifier (parameter_list "(Workqueue_threader_threadpool *this,int thread_number)" ( (parameter_declaration "Workqueue_threader_threadpool *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int thread_number" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Lock_impl *pLVar2;\n  \n  if (this->check_thread_count_ != 0) {\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n    if (this->desired_thread_count_ < thread_number) {\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Lock_impl *pLVar2;" type_identifier (pointer_declarator "*pLVar2" * identifier) ;) (if_statement "if (this->check_thread_count_ != 0) {\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n    if (this->desired_thread_count_ < thread_number) {\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n  }" if (parenthesized_expression "(this->check_thread_count_ != 0)" ( (binary_expression "this->check_thread_count_ != 0" (field_expression "this->check_thread_count_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);\n    if (this->desired_thread_count_ < thread_number) {\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }\n    pLVar2 = (this->lock_).lock_;\n    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n  }" { (expression_statement "pLVar2 = (this->lock_).lock_;" (assignment_expression "pLVar2 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar2->_vptr_Lock_impl[2])(pLVar2);" (call_expression "(*pLVar2->_vptr_Lock_impl[2])(pLVar2)" (parenthesized_expression "(*pLVar2->_vptr_Lock_impl[2])" ( (pointer_expression "*pLVar2->_vptr_Lock_impl[2]" * (subscript_expression "pLVar2->_vptr_Lock_impl[2]" (field_expression "pLVar2->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar2)" ( identifier ))) ;) (if_statement "if (this->desired_thread_count_ < thread_number) {\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }" if (parenthesized_expression "(this->desired_thread_count_ < thread_number)" ( (binary_expression "this->desired_thread_count_ < thread_number" (field_expression "this->desired_thread_count_" identifier -> field_identifier) < identifier) )) (compound_statement "{\n      iVar1 = this->threads_ + -1;\n      this->threads_ = iVar1;\n      if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }\n      pLVar2 = (this->lock_).lock_;\n      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);\n      return true;\n    }" { (expression_statement "iVar1 = this->threads_ + -1;" (assignment_expression "iVar1 = this->threads_ + -1" identifier = (binary_expression "this->threads_ + -1" (field_expression "this->threads_" identifier -> field_identifier) + number_literal)) ;) (expression_statement "this->threads_ = iVar1;" (assignment_expression "this->threads_ = iVar1" (field_expression "this->threads_" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar1 <= this->desired_thread_count_) {\n        this->check_thread_count_ = 0;\n      }" if (parenthesized_expression "(iVar1 <= this->desired_thread_count_)" ( (binary_expression "iVar1 <= this->desired_thread_count_" identifier <= (field_expression "this->desired_thread_count_" identifier -> field_identifier)) )) (compound_statement "{\n        this->check_thread_count_ = 0;\n      }" { (expression_statement "this->check_thread_count_ = 0;" (assignment_expression "this->check_thread_count_ = 0" (field_expression "this->check_thread_count_" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "pLVar2 = (this->lock_).lock_;" (assignment_expression "pLVar2 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar2->_vptr_Lock_impl[3])(pLVar2);" (call_expression "(*pLVar2->_vptr_Lock_impl[3])(pLVar2)" (parenthesized_expression "(*pLVar2->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar2->_vptr_Lock_impl[3]" * (subscript_expression "pLVar2->_vptr_Lock_impl[3]" (field_expression "pLVar2->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar2)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) (expression_statement "pLVar2 = (this->lock_).lock_;" (assignment_expression "pLVar2 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar2->_vptr_Lock_impl[3])(pLVar2);" (call_expression "(*pLVar2->_vptr_Lock_impl[3])(pLVar2)" (parenthesized_expression "(*pLVar2->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar2->_vptr_Lock_impl[3]" * (subscript_expression "pLVar2->_vptr_Lock_impl[3]" (field_expression "pLVar2->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar2)" ( identifier ))) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "undefined4 FUN_002011c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_002011c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_002011c0(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 iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) < param_2)" ( (binary_expression "*(int *)(param_1 + 0x10) < param_2" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14) + -1;" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x14) + -1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }" if (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x10))" ( (binary_expression "iVar1 <= *(int *)(param_1 + 0x10)" identifier <= (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 8) = 0;\n      }" { (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 "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_002011c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_002011c0(int param_1,int param_2)" (identifier "FUN_002011c0") (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 iVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n    if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10) < param_2) {\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) < param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) < param_2" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x14) + -1;\n      *(int *)(param_1 + 0x14) = iVar1;\n      if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }\n      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n      return 1;\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x14) + -1;" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x14) + -1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 <= *(int *)(param_1 + 0x10)) {\n        *(undefined4 *)(param_1 + 8) = 0;\n      }" (if "if") (parenthesized_expression "(iVar1 <= *(int *)(param_1 + 0x10))" (( "(") (binary_expression "iVar1 <= *(int *)(param_1 + 0x10)" (identifier "iVar1") (<= "<=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 8) = 0;\n      }" ({ "{") (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 "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* DWARF original prototype: bool should_cancel_thread(Workqueue_threader_threadpool * this, int
   thread_number) */

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

{
  int var_2;
  type_2 *pLVar2;
  
  if (this->check_thread_count_ != 0) {
    pLVar2 = (this->lock_).lock_;
    (*pLVar2->_vptr_Lock_impl[2])(pLVar2);
    if (this->desired_thread_count_ < var_1) {
      var_2 = this->threads_ + -1;
      this->threads_ = var_2;
      if (var_2 <= this->desired_thread_count_) {
        this->check_thread_count_ = 0;
      }
      pLVar2 = (this->lock_).lock_;
      (*pLVar2->_vptr_Lock_impl[3])(pLVar2);
      return true;
    }
    pLVar2 = (this->lock_).lock_;
    (*pLVar2->_vptr_Lock_impl[3])(pLVar2);
  }
  return false;
}


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

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 8) != 0) {
    (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));
    if (*(int *)(param_1 + 0x10) < param_2) {
      iVar1 = *(int *)(param_1 + 0x14) + -1;
      *(int *)(param_1 + 0x14) = iVar1;
      if (iVar1 <= *(int *)(param_1 + 0x10)) {
        *(undefined4 *)(param_1 + 8) = 0;
      }
      (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
      return 1;
    }
    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
  }
  return 0;
}

