
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* DWARF original prototype: Task_token * is_runnable(Task_function * this) */

Task_token * __thiscall gold::Task_function::is_runnable(Task_function *this)

{
  Task_token *pTVar1;
  
  pTVar1 = this->blocker_;
  if (pTVar1->is_blocker_ != false) {
    if (pTVar1->blockers_ < 1) {
      pTVar1 = (Task_token *)0x0;
    }
    return pTVar1;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/token.h",0xab,"is_blocked");
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

char * FUN_0006c400(int param_1)

{
  char *pcVar1;
  undefined4 in_ECX;
  
  pcVar1 = *(char **)(param_1 + 0x28);
  if (*pcVar1 != '\0') {
    if (*(int *)(pcVar1 + 4) < 1) {
      pcVar1 = (char *)0x0;
    }
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);
}


CALL 0x00035975
ADD EDX,0x322bfb
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x28]
CMP byte ptr [EAX],0x0
JZ 0x0006c42b
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
MOV EDX,0x0
CMOVLE EAX,EDX
ADD ESP,0xc
RET
LEA EAX,[EDX + 0xffef89ac]
PUSH ECX
PUSH EAX
LEA EAX,[EDX + 0xffef15bd]
PUSH 0xab
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nchar * FUN_0006c400(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}\n\n" comment (function_definition "char * FUN_0006c400(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}" primitive_type (pointer_declarator "* FUN_0006c400(int param_1)" * (function_declarator "FUN_0006c400(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (expression_statement "pcVar1 = *(char **)(param_1 + 0x28);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x28)" identifier = (pointer_expression "*(char **)(param_1 + 0x28)" * (cast_expression "(char **)(param_1 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }" { (if_statement "if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }" if (parenthesized_expression "(*(int *)(pcVar1 + 4) < 1)" ( (binary_expression "*(int *)(pcVar1 + 4) < 1" (pointer_expression "*(int *)(pcVar1 + 4)" * (cast_expression "(int *)(pcVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 4)" ( (binary_expression "pcVar1 + 4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      pcVar1 = (char *)0x0;\n    }" { (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pcVar1;" return identifier ;) })) comment (expression_statement "FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);" (call_expression "FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX)" identifier (argument_list "("../../gold/token.h",0xab,"is_blocked",in_ECX)" ( (string_literal ""../../gold/token.h"" " string_content ") , number_literal , (string_literal ""is_blocked"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* DWARF original prototype: Task_token * is_runnable(Task_function * this) */\n\nTask_token * __thiscall gold::Task_function::is_runnable(Task_function *this)\n\n{\n  Task_token *pTVar1;\n  \n  pTVar1 = this->blocker_;\n  if (pTVar1->is_blocker_ != false) {\n    if (pTVar1->blockers_ < 1) {\n      pTVar1 = (Task_token *)0x0;\n    }\n    return pTVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/token.h",0xab,"is_blocked");\n}\n\n" comment comment (ERROR "Task_token * __thiscall gold::Task_function::is_runnable(Task_function *this)" (binary_expression "Task_token * __thiscall gold::Task_function::is_runnable(Task_function *this" (binary_expression "Task_token * __thiscall" identifier * identifier) (ERROR "gold::Task_function::is_runnable(Task_function" identifier : : identifier : : identifier ( identifier) * identifier) )) (compound_statement "{\n  Task_token *pTVar1;\n  \n  pTVar1 = this->blocker_;\n  if (pTVar1->is_blocker_ != false) {\n    if (pTVar1->blockers_ < 1) {\n      pTVar1 = (Task_token *)0x0;\n    }\n    return pTVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/token.h",0xab,"is_blocked");\n}" { (declaration "Task_token *pTVar1;" type_identifier (pointer_declarator "*pTVar1" * identifier) ;) (expression_statement "pTVar1 = this->blocker_;" (assignment_expression "pTVar1 = this->blocker_" identifier = (field_expression "this->blocker_" identifier -> field_identifier)) ;) (if_statement "if (pTVar1->is_blocker_ != false) {\n    if (pTVar1->blockers_ < 1) {\n      pTVar1 = (Task_token *)0x0;\n    }\n    return pTVar1;\n  }" if (parenthesized_expression "(pTVar1->is_blocker_ != false)" ( (binary_expression "pTVar1->is_blocker_ != false" (field_expression "pTVar1->is_blocker_" identifier -> field_identifier) != false) )) (compound_statement "{\n    if (pTVar1->blockers_ < 1) {\n      pTVar1 = (Task_token *)0x0;\n    }\n    return pTVar1;\n  }" { (if_statement "if (pTVar1->blockers_ < 1) {\n      pTVar1 = (Task_token *)0x0;\n    }" if (parenthesized_expression "(pTVar1->blockers_ < 1)" ( (binary_expression "pTVar1->blockers_ < 1" (field_expression "pTVar1->blockers_" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n      pTVar1 = (Task_token *)0x0;\n    }" { (expression_statement "pTVar1 = (Task_token *)0x0;" (assignment_expression "pTVar1 = (Task_token *)0x0" identifier = (cast_expression "(Task_token *)0x0" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pTVar1;" return identifier ;) })) comment (expression_statement "do_gold_unreachable("../../gold/token.h",0xab,"is_blocked");" (call_expression "do_gold_unreachable("../../gold/token.h",0xab,"is_blocked")" identifier (argument_list "("../../gold/token.h",0xab,"is_blocked")" ( (string_literal ""../../gold/token.h"" " string_content ") , number_literal , (string_literal ""is_blocked"" " string_content ") ))) ;) }))
(translation_unit "char * FUN_0006c400(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    \n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}\n\n" (function_definition "char * FUN_0006c400(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    \n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}" primitive_type (pointer_declarator "* FUN_0006c400(int param_1)" * (function_declarator "FUN_0006c400(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    \n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (expression_statement "pcVar1 = *(char **)(param_1 + 0x28);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x28)" identifier = (pointer_expression "*(char **)(param_1 + 0x28)" * (cast_expression "(char **)(param_1 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }" { (if_statement "if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }" if (parenthesized_expression "(*(int *)(pcVar1 + 4) < 1)" ( (binary_expression "*(int *)(pcVar1 + 4) < 1" (pointer_expression "*(int *)(pcVar1 + 4)" * (cast_expression "(int *)(pcVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar1 + 4)" ( (binary_expression "pcVar1 + 4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      pcVar1 = (char *)0x0;\n    }" { (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);" (call_expression "FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX)" identifier (argument_list "("../../gold/token.h",0xab,"is_blocked",in_ECX)" ( (string_literal ""../../gold/token.h"" " string_content ") , number_literal , (string_literal ""is_blocked"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (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 * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "char * FUN_0006c400(int param_1)\n\n{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    \n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}" (primitive_type "char") (pointer_declarator "* FUN_0006c400(int param_1)" (* "*") (function_declarator "FUN_0006c400(int param_1)" (identifier "FUN_0006c400") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  undefined4 in_ECX;\n  \n  pcVar1 = *(char **)(param_1 + 0x28);\n  if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }\n                    \n  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (expression_statement "pcVar1 = *(char **)(param_1 + 0x28);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x28)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_1 + 0x28)" (* "*") (cast_expression "(char **)(param_1 + 0x28)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*pcVar1 != '\0') {\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }" (if "if") (parenthesized_expression "(*pcVar1 != '\0')" (( "(") (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }\n    return pcVar1;\n  }" ({ "{") (if_statement "if (*(int *)(pcVar1 + 4) < 1) {\n      pcVar1 = (char *)0x0;\n    }" (if "if") (parenthesized_expression "(*(int *)(pcVar1 + 4) < 1)" (( "(") (binary_expression "*(int *)(pcVar1 + 4) < 1" (pointer_expression "*(int *)(pcVar1 + 4)" (* "*") (cast_expression "(int *)(pcVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar1 + 4)" (( "(") (binary_expression "pcVar1 + 4" (identifier "pcVar1") (+ "+") (number_literal "4")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      pcVar1 = (char *)0x0;\n    }" ({ "{") (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" (identifier "pcVar1") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);" (call_expression "FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX)" (identifier "FUN_00069d00") (argument_list "("../../gold/token.h",0xab,"is_blocked",in_ECX)" (( "(") (string_literal ""../../gold/token.h"" (" """) (string_content "../../gold/token.h") (" """)) (, ",") (number_literal "0xab") (, ",") (string_literal ""is_blocked"" (" """) (string_content "is_blocked") (" """)) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* DWARF original prototype: Task_token * is_runnable(Task_function * this) */

type_1 * __thiscall gold::Task_function::is_runnable(Task_function *this)

{
  type_1 *pTVar1;
  
  pTVar1 = this->blocker_;
  if (pTVar1->is_blocker_ != false) {
    if (pTVar1->blockers_ < 1) {
      pTVar1 = (type_1 *)0x0;
    }
    return pTVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/token.h",0xab,"is_blocked");
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

char * MASKED(int param_1)

{
  char *pcVar1;
  undefined4 in_ECX;
  
  pcVar1 = *(char **)(param_1 + 0x28);
  if (*pcVar1 != '\0') {
    if (*(int *)(pcVar1 + 4) < 1) {
      pcVar1 = (char *)0x0;
    }
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/token.h",0xab,"is_blocked",in_ECX);
}

