
/* DWARF original prototype: Task * find_runnable(Workqueue * this) */

Task * __thiscall gold::Workqueue::find_runnable(Workqueue *this)

{
  Task *pTVar1;
  
  pTVar1 = find_runnable_in_list(this,&this->first_tasks_);
  if (pTVar1 != (Task *)0x0) {
    return pTVar1;
  }
  pTVar1 = find_runnable_in_list(this,&this->tasks_);
  return pTVar1;
}



void FUN_0029dc20(long param_1)

{
  long lVar1;
  
  lVar1 = FUN_0029daa0(param_1,param_1 + 8);
  if (lVar1 != 0) {
    return;
  }
  FUN_0029daa0(param_1,param_1 + 0x18);
  return;
}


PUSH RBX
LEA RSI,[RDI + 0x8]
MOV RBX,RDI
CALL 0x0029daa0
TEST RAX,RAX
JZ 0x0029dc38
POP RBX
RET
LEA RSI,[RBX + 0x18]
MOV RDI,RBX
POP RBX
JMP 0x0029daa0
(translation_unit "void FUN_0029dc20(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}\n\n" (function_definition "void FUN_0029dc20(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}" primitive_type (function_declarator "FUN_0029dc20(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_0029daa0(param_1,param_1 + 8);" (assignment_expression "lVar1 = FUN_0029daa0(param_1,param_1 + 8)" identifier = (call_expression "FUN_0029daa0(param_1,param_1 + 8)" identifier (argument_list "(param_1,param_1 + 8)" ( identifier , (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (lVar1 != 0) {\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0029daa0(param_1,param_1 + 0x18);" (call_expression "FUN_0029daa0(param_1,param_1 + 0x18)" identifier (argument_list "(param_1,param_1 + 0x18)" ( identifier , (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: Task * find_runnable(Workqueue * this) */\n\nTask * __thiscall gold::Workqueue::find_runnable(Workqueue *this)\n\n{\n  Task *pTVar1;\n  \n  pTVar1 = find_runnable_in_list(this,&this->first_tasks_);\n  if (pTVar1 != (Task *)0x0) {\n    return pTVar1;\n  }\n  pTVar1 = find_runnable_in_list(this,&this->tasks_);\n  return pTVar1;\n}\n\n" comment (ERROR "Task * __thiscall gold::Workqueue::find_runnable(Workqueue *this)" (binary_expression "Task * __thiscall gold::Workqueue::find_runnable(Workqueue *this" (binary_expression "Task * __thiscall" identifier * identifier) (ERROR "gold::Workqueue::find_runnable(Workqueue" identifier : : identifier : : identifier ( identifier) * identifier) )) (compound_statement "{\n  Task *pTVar1;\n  \n  pTVar1 = find_runnable_in_list(this,&this->first_tasks_);\n  if (pTVar1 != (Task *)0x0) {\n    return pTVar1;\n  }\n  pTVar1 = find_runnable_in_list(this,&this->tasks_);\n  return pTVar1;\n}" { (declaration "Task *pTVar1;" type_identifier (pointer_declarator "*pTVar1" * identifier) ;) (expression_statement "pTVar1 = find_runnable_in_list(this,&this->first_tasks_);" (assignment_expression "pTVar1 = find_runnable_in_list(this,&this->first_tasks_)" identifier = (call_expression "find_runnable_in_list(this,&this->first_tasks_)" identifier (argument_list "(this,&this->first_tasks_)" ( identifier , (pointer_expression "&this->first_tasks_" & (field_expression "this->first_tasks_" identifier -> field_identifier)) )))) ;) (if_statement "if (pTVar1 != (Task *)0x0) {\n    return pTVar1;\n  }" if (parenthesized_expression "(pTVar1 != (Task *)0x0)" ( (binary_expression "pTVar1 != (Task *)0x0" identifier != (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pTVar1;\n  }" { (return_statement "return pTVar1;" return identifier ;) })) (expression_statement "pTVar1 = find_runnable_in_list(this,&this->tasks_);" (assignment_expression "pTVar1 = find_runnable_in_list(this,&this->tasks_)" identifier = (call_expression "find_runnable_in_list(this,&this->tasks_)" identifier (argument_list "(this,&this->tasks_)" ( identifier , (pointer_expression "&this->tasks_" & (field_expression "this->tasks_" identifier -> field_identifier)) )))) ;) (return_statement "return pTVar1;" return identifier ;) }))
(translation_unit "void FUN_0029dc20(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}\n\n" (function_definition "void FUN_0029dc20(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}" primitive_type (function_declarator "FUN_0029dc20(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_0029daa0(param_1,param_1 + 8);" (assignment_expression "lVar1 = FUN_0029daa0(param_1,param_1 + 8)" identifier = (call_expression "FUN_0029daa0(param_1,param_1 + 8)" identifier (argument_list "(param_1,param_1 + 8)" ( identifier , (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (lVar1 != 0) {\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0029daa0(param_1,param_1 + 0x18);" (call_expression "FUN_0029daa0(param_1,param_1 + 0x18)" identifier (argument_list "(param_1,param_1 + 0x18)" ( identifier , (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0029dc20(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0029dc20(long param_1)" (identifier "FUN_0029dc20") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_0029daa0(param_1,param_1 + 8);\n  if (lVar1 != 0) {\n    return;\n  }\n  FUN_0029daa0(param_1,param_1 + 0x18);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_0029daa0(param_1,param_1 + 8);" (assignment_expression "lVar1 = FUN_0029daa0(param_1,param_1 + 8)" (identifier "lVar1") (= "=") (call_expression "FUN_0029daa0(param_1,param_1 + 8)" (identifier "FUN_0029daa0") (argument_list "(param_1,param_1 + 8)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0029daa0(param_1,param_1 + 0x18);" (call_expression "FUN_0029daa0(param_1,param_1 + 0x18)" (identifier "FUN_0029daa0") (argument_list "(param_1,param_1 + 0x18)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: Task * find_runnable(Workqueue * this) */

type_1 * __thiscall gold::Workqueue::find_runnable(Workqueue *this)

{
  type_1 *var_2;
  
  var_2 = var_1(this,&this->first_tasks_);
  if (var_2 != (type_1 *)0x0) {
    return var_2;
  }
  var_2 = var_1(this,&this->tasks_);
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(long param_1)

{
  long lVar1;
  
  lVar1 = FUN_0029daa0(param_1,param_1 + 8);
  if (lVar1 != 0) {
    return;
  }
  FUN_0029daa0(param_1,param_1 + 0x18);
  return;
}

