
debug_type_conflict debug_get_return_type(void *handle,debug_type_conflict type)

{
  debug_type_s *pdVar1;
  
  if (type == (debug_type_conflict)0x0) {
    return (debug_type_conflict)0x0;
  }
  pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);
  if ((pdVar1 != (debug_type_s *)0x0) &&
     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))) {
    return (debug_type_conflict)((pdVar1->u).kindirect)->slot;
  }
  return (debug_type_conflict)0x0;
}



undefined8 FUN_001100a0(undefined8 param_1,long param_2)

{
  int *piVar1;
  
  if (param_2 == 0) {
    return 0;
  }
  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);
  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {
    return **(undefined8 **)(piVar1 + 4);
  }
  return 0;
}


TEST RSI,RSI
JZ 0x001100e0
SUB RSP,0x8
XOR EDX,EDX
CALL 0x0010d010
TEST RAX,RAX
JZ 0x001100c1
MOV EDX,dword ptr [RAX]
CMP EDX,0xd
JZ 0x001100d0
CMP EDX,0x13
JZ 0x001100d0
XOR EAX,EAX
ADD RSP,0x8
RET
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX]
ADD RSP,0x8
RET
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_001100a0(undefined8 param_1,long param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_001100a0(undefined8 param_1,long param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001100a0(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1 = (int *)FUN_0010d010(param_1,param_2,0);" (assignment_expression "piVar1 = (int *)FUN_0010d010(param_1,param_2,0)" identifier = (cast_expression "(int *)FUN_0010d010(param_1,param_2,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010d010(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13))))" ( (binary_expression "(piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((*piVar1 == 0xd || (*piVar1 == 0x13)))" ( (parenthesized_expression "(*piVar1 == 0xd || (*piVar1 == 0x13))" ( (binary_expression "*piVar1 == 0xd || (*piVar1 == 0x13)" (binary_expression "*piVar1 == 0xd" (pointer_expression "*piVar1" * identifier) == number_literal) || (parenthesized_expression "(*piVar1 == 0x13)" ( (binary_expression "*piVar1 == 0x13" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) ))) )) (compound_statement "{\n    return **(undefined8 **)(piVar1 + 4);\n  }" { (return_statement "return **(undefined8 **)(piVar1 + 4);" return (pointer_expression "**(undefined8 **)(piVar1 + 4)" * (pointer_expression "*(undefined8 **)(piVar1 + 4)" * (cast_expression "(undefined8 **)(piVar1 + 4)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 4)" ( (binary_expression "piVar1 + 4" identifier + number_literal) ))))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "debug_type_conflict debug_get_return_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  \n  if (type == (debug_type_conflict)0x0) {\n    return (debug_type_conflict)0x0;\n  }\n  pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n  if ((pdVar1 != (debug_type_s *)0x0) &&\n     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))) {\n    return (debug_type_conflict)((pdVar1->u).kindirect)->slot;\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" (function_definition "debug_type_conflict debug_get_return_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  \n  if (type == (debug_type_conflict)0x0) {\n    return (debug_type_conflict)0x0;\n  }\n  pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n  if ((pdVar1 != (debug_type_s *)0x0) &&\n     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))) {\n    return (debug_type_conflict)((pdVar1->u).kindirect)->slot;\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_get_return_type(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    return (debug_type_conflict)0x0;\n  }\n  pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n  if ((pdVar1 != (debug_type_s *)0x0) &&\n     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))) {\n    return (debug_type_conflict)((pdVar1->u).kindirect)->slot;\n  }\n  return (debug_type_conflict)0x0;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (if_statement "if (type == (debug_type_conflict)0x0) {\n    return (debug_type_conflict)0x0;\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    return (debug_type_conflict)0x0;\n  }" { (return_statement "return (debug_type_conflict)0x0;" return (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal) ;) })) (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     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))) {\n    return (debug_type_conflict)((pdVar1->u).kindirect)->slot;\n  }" if (parenthesized_expression "((pdVar1 != (debug_type_s *)0x0) &&\n     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD))))" ( (binary_expression "(pdVar1 != (debug_type_s *)0x0) &&\n     ((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))" (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)) )) && (parenthesized_expression "((pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)))" ( (parenthesized_expression "(pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD))" ( (binary_expression "pdVar1->kind == DEBUG_KIND_FUNCTION || (pdVar1->kind == DEBUG_KIND_METHOD)" (binary_expression "pdVar1->kind == DEBUG_KIND_FUNCTION" (field_expression "pdVar1->kind" identifier -> field_identifier) == identifier) || (parenthesized_expression "(pdVar1->kind == DEBUG_KIND_METHOD)" ( (binary_expression "pdVar1->kind == DEBUG_KIND_METHOD" (field_expression "pdVar1->kind" identifier -> field_identifier) == identifier) ))) )) ))) )) (compound_statement "{\n    return (debug_type_conflict)((pdVar1->u).kindirect)->slot;\n  }" { (return_statement "return (debug_type_conflict)((pdVar1->u).kindirect)->slot;" return (field_expression "(debug_type_conflict)((pdVar1->u).kindirect)->slot" (call_expression "(debug_type_conflict)((pdVar1->u).kindirect)" (parenthesized_expression "(debug_type_conflict)" ( identifier )) (argument_list "((pdVar1->u).kindirect)" ( (field_expression "(pdVar1->u).kindirect" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) ))) -> field_identifier) ;) })) (return_statement "return (debug_type_conflict)0x0;" return (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal) ;) })))
(translation_unit "undefined8 FUN_001100a0(undefined8 param_1,long param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_001100a0(undefined8 param_1,long param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001100a0(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1 = (int *)FUN_0010d010(param_1,param_2,0);" (assignment_expression "piVar1 = (int *)FUN_0010d010(param_1,param_2,0)" identifier = (cast_expression "(int *)FUN_0010d010(param_1,param_2,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010d010(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13))))" ( (binary_expression "(piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((*piVar1 == 0xd || (*piVar1 == 0x13)))" ( (parenthesized_expression "(*piVar1 == 0xd || (*piVar1 == 0x13))" ( (binary_expression "*piVar1 == 0xd || (*piVar1 == 0x13)" (binary_expression "*piVar1 == 0xd" (pointer_expression "*piVar1" * identifier) == number_literal) || (parenthesized_expression "(*piVar1 == 0x13)" ( (binary_expression "*piVar1 == 0x13" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) ))) )) (compound_statement "{\n    return **(undefined8 **)(piVar1 + 4);\n  }" { (return_statement "return **(undefined8 **)(piVar1 + 4);" return (pointer_expression "**(undefined8 **)(piVar1 + 4)" * (pointer_expression "*(undefined8 **)(piVar1 + 4)" * (cast_expression "(undefined8 **)(piVar1 + 4)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 4)" ( (binary_expression "piVar1 + 4" identifier + number_literal) ))))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) == LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) ))) )) (compound_statement { (return_statement return (pointer_expression * (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 "undefined8 FUN_001100a0(undefined8 param_1,long param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_001100a0(undefined8 param_1,long param_2)" (identifier "FUN_001100a0") (parameter_list "(undefined8 param_1,long param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);\n  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)FUN_0010d010(param_1,param_2,0);" (assignment_expression "piVar1 = (int *)FUN_0010d010(param_1,param_2,0)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0010d010(param_1,param_2,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010d010(param_1,param_2,0)" (identifier "FUN_0010d010") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {\n    return **(undefined8 **)(piVar1 + 4);\n  }" (if "if") (parenthesized_expression "((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13))))" (( "(") (binary_expression "(piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))" (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "((*piVar1 == 0xd || (*piVar1 == 0x13)))" (( "(") (parenthesized_expression "(*piVar1 == 0xd || (*piVar1 == 0x13))" (( "(") (binary_expression "*piVar1 == 0xd || (*piVar1 == 0x13)" (binary_expression "*piVar1 == 0xd" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0xd")) (|| "||") (parenthesized_expression "(*piVar1 == 0x13)" (( "(") (binary_expression "*piVar1 == 0x13" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0x13")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    return **(undefined8 **)(piVar1 + 4);\n  }" ({ "{") (return_statement "return **(undefined8 **)(piVar1 + 4);" (return "return") (pointer_expression "**(undefined8 **)(piVar1 + 4)" (* "*") (pointer_expression "*(undefined8 **)(piVar1 + 4)" (* "*") (cast_expression "(undefined8 **)(piVar1 + 4)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar1 + 4)" (( "(") (binary_expression "piVar1 + 4" (identifier "piVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(void *handle,type_1 var_1)

{
  type_2 *var_3;
  
  if (var_1 == (type_1)0x0) {
    return (type_1)0x0;
  }
  var_3 = var_2(handle,var_1,(type_3 *)0x0);
  if ((var_3 != (type_2 *)0x0) &&
     ((var_3->kind == var_4 || (var_3->kind == var_5)))) {
    return (type_1)((var_3->u).kindirect)->slot;
  }
  return (type_1)0x0;
}


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

undefined8 MASKED(undefined8 param_1,long param_2)

{
  int *piVar1;
  
  if (param_2 == 0) {
    return 0;
  }
  piVar1 = (int *)FUN_0010d010(param_1,param_2,0);
  if ((piVar1 != (int *)0x0) && ((*piVar1 == 0xd || (*piVar1 == 0x13)))) {
    return **(undefined8 **)(piVar1 + 4);
  }
  return 0;
}

