
debug_type_kind debug_get_type_kind(void *handle,debug_type_conflict type)

{
  debug_type_s *pdVar1;
  
  if (type != (debug_type_conflict)0x0) {
    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);
    if (pdVar1 != (debug_type_s *)0x0) {
      return pdVar1->kind;
    }
  }
  return DEBUG_KIND_ILLEGAL;
}



undefined4 FUN_0003c740(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  
  if (param_2 != 0) {
    puVar1 = (undefined4 *)FUN_000396e0();
    if (puVar1 != (undefined4 *)0x0) {
      return *puVar1;
    }
  }
  return 0;
}


SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
JZ 0x0003c760
MOV EAX,dword ptr [ESP + 0x10]
XOR ECX,ECX
CALL 0x000396e0
TEST EAX,EAX
JZ 0x0003c760
MOV EAX,dword ptr [EAX]
ADD ESP,0xc
RET
XOR EAX,EAX
ADD ESP,0xc
RET
(translation_unit "undefined4 FUN_0003c740(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003c740(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003c740(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)FUN_000396e0();" (assignment_expression "puVar1 = (undefined4 *)FUN_000396e0()" identifier = (cast_expression "(undefined4 *)FUN_000396e0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000396e0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return *puVar1;\n    }" { (return_statement "return *puVar1;" return (pointer_expression "*puVar1" * identifier) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "debug_type_kind debug_get_type_kind(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      return pdVar1->kind;\n    }\n  }\n  return DEBUG_KIND_ILLEGAL;\n}\n\n" (function_definition "debug_type_kind debug_get_type_kind(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      return pdVar1->kind;\n    }\n  }\n  return DEBUG_KIND_ILLEGAL;\n}" type_identifier (function_declarator "debug_get_type_kind(void *handle,debug_type_conflict type)" identifier (parameter_list "(void *handle,debug_type_conflict type)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      return pdVar1->kind;\n    }\n  }\n  return DEBUG_KIND_ILLEGAL;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (if_statement "if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      return pdVar1->kind;\n    }\n  }" if (parenthesized_expression "(type != (debug_type_conflict)0x0)" ( (binary_expression "type != (debug_type_conflict)0x0" identifier != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      return pdVar1->kind;\n    }\n  }" { (expression_statement "pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);" (assignment_expression "pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0)" identifier = (call_expression "debug_get_real_type(handle,type,(debug_type_real_list *)0x0)" identifier (argument_list "(handle,type,(debug_type_real_list *)0x0)" ( identifier , identifier , (cast_expression "(debug_type_real_list *)0x0" ( (type_descriptor "debug_type_real_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n      return pdVar1->kind;\n    }" if (parenthesized_expression "(pdVar1 != (debug_type_s *)0x0)" ( (binary_expression "pdVar1 != (debug_type_s *)0x0" identifier != (cast_expression "(debug_type_s *)0x0" ( (type_descriptor "debug_type_s *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return pdVar1->kind;\n    }" { (return_statement "return pdVar1->kind;" return (field_expression "pdVar1->kind" identifier -> field_identifier) ;) })) })) (return_statement "return DEBUG_KIND_ILLEGAL;" return identifier ;) })))
(translation_unit "undefined4 FUN_0003c740(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003c740(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003c740(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)FUN_000396e0();" (assignment_expression "puVar1 = (undefined4 *)FUN_000396e0()" identifier = (cast_expression "(undefined4 *)FUN_000396e0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000396e0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return *puVar1;\n    }" { (return_statement "return *puVar1;" return (pointer_expression "*puVar1" * identifier) ;) })) })) (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 (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (pointer_expression * IDENT) ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003c740(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003c740(undefined4 param_1,int param_2)" (identifier "FUN_0003c740") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (param_2 != 0) {\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)FUN_000396e0();\n    if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)FUN_000396e0();" (assignment_expression "puVar1 = (undefined4 *)FUN_000396e0()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_000396e0()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000396e0()" (identifier "FUN_000396e0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      return *puVar1;\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return *puVar1;\n    }" ({ "{") (return_statement "return *puVar1;" (return "return") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(void *handle,type_2 var_1)

{
  type_3 *var_3;
  
  if (var_1 != (type_2)0x0) {
    var_3 = var_2(handle,var_1,(type_4 *)0x0);
    if (var_3 != (type_3 *)0x0) {
      return var_3->kind;
    }
  }
  return DEBUG_KIND_ILLEGAL;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (pointer_expression argument: (identifier))))))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  
  if (param_2 != 0) {
    puVar1 = (undefined4 *)FUN_000396e0();
    if (puVar1 != (undefined4 *)0x0) {
      return *puVar1;
    }
  }
  return 0;
}

