
/* 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)

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



undefined4 FUN_002d46a0(int param_1,int param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 8) == 0) {
    return 0;
  }
  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));
  if (param_2 <= *(int *)(param_1 + 0x10)) {
    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
    return 0;
  }
  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;
}


lw v0,0x8(a0)
beq v0,zero,0x002d4760
_nop
lw v0,0xc(a0)
addiu sp,sp,-0x28
sw s0,0x1c(sp)
or s0,a0,zero
or a0,v0,zero
lw v0,0x0(v0)
sw s1,0x20(sp)
sw ra,0x24(sp)
lw t9,0x8(v0)
jalr t9
_or s1,a1,zero
lw v0,0x10(s0)
slt a1,v0,s1
bne a1,zero,0x002d4718
_nop
lw v0,0xc(s0)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0xc(v0)
jalr t9
_nop
or v0,zero,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw v1,0x14(s0)
addiu v1,v1,-0x1
slt v0,v0,v1
bne v0,zero,0x002d4730
_sw v1,0x14(s0)
sw zero,0x8(s0)
lw v0,0xc(s0)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0xc(v0)
jalr t9
_nop
li v0,0x1
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_002d46a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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\n" (function_definition "undefined4 FUN_002d46a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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}" type_identifier (function_declarator "FUN_002d46a0(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    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    return 0;\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    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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 (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }" if (parenthesized_expression "(param_2 <= *(int *)(param_1 + 0x10))" ( (binary_expression "param_2 <= *(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    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (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 ;) })))
(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  Lock_impl *pLVar1;\n  int iVar2;\n  \n  if (this->check_thread_count_ == 0) {\n    return false;\n  }\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  if (thread_number <= this->desired_thread_count_) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    return false;\n  }\n  iVar2 = this->threads_ + -1;\n  this->threads_ = iVar2;\n  if (iVar2 <= this->desired_thread_count_) {\n    this->check_thread_count_ = 0;\n  }\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n  return true;\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  Lock_impl *pLVar1;\n  int iVar2;\n  \n  if (this->check_thread_count_ == 0) {\n    return false;\n  }\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  if (thread_number <= this->desired_thread_count_) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    return false;\n  }\n  iVar2 = this->threads_ + -1;\n  this->threads_ = iVar2;\n  if (iVar2 <= this->desired_thread_count_) {\n    this->check_thread_count_ = 0;\n  }\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n  return true;\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  Lock_impl *pLVar1;\n  int iVar2;\n  \n  if (this->check_thread_count_ == 0) {\n    return false;\n  }\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[2])(pLVar1);\n  if (thread_number <= this->desired_thread_count_) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    return false;\n  }\n  iVar2 = this->threads_ + -1;\n  this->threads_ = iVar2;\n  if (iVar2 <= this->desired_thread_count_) {\n    this->check_thread_count_ = 0;\n  }\n  pLVar1 = (this->lock_).lock_;\n  (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n  return true;\n}" { (declaration "Lock_impl *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (this->check_thread_count_ == 0) {\n    return false;\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    return false;\n  }" { (return_statement "return false;" return false ;) })) (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 (thread_number <= this->desired_thread_count_) {\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    return false;\n  }" if (parenthesized_expression "(thread_number <= this->desired_thread_count_)" ( (binary_expression "thread_number <= this->desired_thread_count_" identifier <= (field_expression "this->desired_thread_count_" identifier -> field_identifier)) )) (compound_statement "{\n    pLVar1 = (this->lock_).lock_;\n    (*pLVar1->_vptr_Lock_impl[3])(pLVar1);\n    return false;\n  }" { (expression_statement "pLVar1 = (this->lock_).lock_;" (assignment_expression "pLVar1 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar1->_vptr_Lock_impl[3])(pLVar1);" (call_expression "(*pLVar1->_vptr_Lock_impl[3])(pLVar1)" (parenthesized_expression "(*pLVar1->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar1->_vptr_Lock_impl[3]" * (subscript_expression "pLVar1->_vptr_Lock_impl[3]" (field_expression "pLVar1->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar1)" ( identifier ))) ;) (return_statement "return false;" return false ;) })) (expression_statement "iVar2 = this->threads_ + -1;" (assignment_expression "iVar2 = this->threads_ + -1" identifier = (binary_expression "this->threads_ + -1" (field_expression "this->threads_" identifier -> field_identifier) + number_literal)) ;) (expression_statement "this->threads_ = iVar2;" (assignment_expression "this->threads_ = iVar2" (field_expression "this->threads_" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 <= this->desired_thread_count_) {\n    this->check_thread_count_ = 0;\n  }" if (parenthesized_expression "(iVar2 <= this->desired_thread_count_)" ( (binary_expression "iVar2 <= 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 "pLVar1 = (this->lock_).lock_;" (assignment_expression "pLVar1 = (this->lock_).lock_" identifier = (field_expression "(this->lock_).lock_" (parenthesized_expression "(this->lock_)" ( (field_expression "this->lock_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(*pLVar1->_vptr_Lock_impl[3])(pLVar1);" (call_expression "(*pLVar1->_vptr_Lock_impl[3])(pLVar1)" (parenthesized_expression "(*pLVar1->_vptr_Lock_impl[3])" ( (pointer_expression "*pLVar1->_vptr_Lock_impl[3]" * (subscript_expression "pLVar1->_vptr_Lock_impl[3]" (field_expression "pLVar1->_vptr_Lock_impl" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pLVar1)" ( identifier ))) ;) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 FUN_002d46a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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\n" (function_definition "undefined4 FUN_002d46a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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}" type_identifier (function_declarator "FUN_002d46a0(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    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    return 0;\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    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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 (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }" if (parenthesized_expression "(param_2 <= *(int *)(param_1 + 0x10))" ( (binary_expression "param_2 <= *(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    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (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 ;) })))
(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 { (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) )))) ))) ;) (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 (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 (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 ;) })))
(function_definition "undefined4 FUN_002d46a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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}" (type_identifier "undefined4") (function_declarator "FUN_002d46a0(int param_1,int param_2)" (identifier "FUN_002d46a0") (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    return 0;\n  }\n  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));\n  if (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }\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}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    return 0;\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    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (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 (param_2 <= *(int *)(param_1 + 0x10)) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 <= *(int *)(param_1 + 0x10))" (( "(") (binary_expression "param_2 <= *(int *)(param_1 + 0x10)" (identifier "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")) () ")"))))) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));\n    return 0;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 0xc" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (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") (; ";")) (} "}")))

/* 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)

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


(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 (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)))))))) (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 (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 (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)))))

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 8) == 0) {
    return 0;
  }
  (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc));
  if (param_2 <= *(int *)(param_1 + 0x10)) {
    (**(code **)(**(int **)(param_1 + 0xc) + 0xc))(*(int **)(param_1 + 0xc));
    return 0;
  }
  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;
}

