
debug_type_conflict *
debug_get_parameter_types(void *handle,debug_type_conflict type,bfd_boolean *pvarargs)

{
  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) {
      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {
        *pvarargs = ((pdVar1->u).kclass)->id;
        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;
      }
      if (pdVar1->kind == DEBUG_KIND_METHOD) {
        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;
        return (debug_type_conflict *)((pdVar1->u).kclass)->id;
      }
    }
  }
  return (debug_type_conflict *)0x0;
}



undefined4 FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)

{
  int *piVar1;
  
  if (param_2 != 0) {
    piVar1 = (int *)FUN_0003b830();
    if (piVar1 != (int *)0x0) {
      if (*piVar1 == 0xd) {
        *param_3 = *(undefined4 *)(piVar1[3] + 8);
        return *(undefined4 *)(piVar1[3] + 4);
      }
      if (*piVar1 == 0x13) {
        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);
        return *(undefined4 *)(piVar1[3] + 8);
      }
    }
  }
  return 0;
}


SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
JZ 0x0003ebb6
MOV EAX,dword ptr [ESP + 0x10]
XOR ECX,ECX
CALL 0x0003b830
TEST EAX,EAX
JZ 0x0003ebb6
MOV EDX,dword ptr [EAX]
CMP EDX,0xd
JZ 0x0003ebe0
CMP EDX,0x13
JZ 0x0003ebc0
XOR EAX,EAX
ADD ESP,0xc
RET
MOV EDX,dword ptr [EAX + 0xc]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [EDX + 0xc]
MOV dword ptr [ECX],EDX
MOV EAX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX + 0x8]
ADD ESP,0xc
RET
MOV EDX,dword ptr [EAX + 0xc]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [EDX + 0x8]
MOV dword ptr [ECX],EDX
MOV EAX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX + 0x4]
ADD ESP,0xc
RET
(translation_unit "undefined4 FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)FUN_0003b830();" (assignment_expression "piVar1 = (int *)FUN_0003b830()" identifier = (cast_expression "(int *)FUN_0003b830()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003b830()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }" if (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)) )) (compound_statement "{\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }" { (if_statement "if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }" if (parenthesized_expression "(*piVar1 == 0xd)" ( (binary_expression "*piVar1 == 0xd" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }" { (expression_statement "*param_3 = *(undefined4 *)(piVar1[3] + 8);" (assignment_expression "*param_3 = *(undefined4 *)(piVar1[3] + 8)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(piVar1[3] + 8)" * (cast_expression "(undefined4 *)(piVar1[3] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 8)" ( (binary_expression "piVar1[3] + 8" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return *(undefined4 *)(piVar1[3] + 4);" return (pointer_expression "*(undefined4 *)(piVar1[3] + 4)" * (cast_expression "(undefined4 *)(piVar1[3] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 4)" ( (binary_expression "piVar1[3] + 4" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) )))) ;) })) (if_statement "if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }" if (parenthesized_expression "(*piVar1 == 0x13)" ( (binary_expression "*piVar1 == 0x13" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }" { (expression_statement "*param_3 = *(undefined4 *)(piVar1[3] + 0xc);" (assignment_expression "*param_3 = *(undefined4 *)(piVar1[3] + 0xc)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(piVar1[3] + 0xc)" * (cast_expression "(undefined4 *)(piVar1[3] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 0xc)" ( (binary_expression "piVar1[3] + 0xc" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return *(undefined4 *)(piVar1[3] + 8);" return (pointer_expression "*(undefined4 *)(piVar1[3] + 8)" * (cast_expression "(undefined4 *)(piVar1[3] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 8)" ( (binary_expression "piVar1[3] + 8" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) )))) ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "debug_type_conflict *\ndebug_get_parameter_types(void *handle,debug_type_conflict type,bfd_boolean *pvarargs)\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      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\n    }\n  }\n  return (debug_type_conflict *)0x0;\n}\n\n" (function_definition "debug_type_conflict *\ndebug_get_parameter_types(void *handle,debug_type_conflict type,bfd_boolean *pvarargs)\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      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\n    }\n  }\n  return (debug_type_conflict *)0x0;\n}" type_identifier (pointer_declarator "*\ndebug_get_parameter_types(void *handle,debug_type_conflict type,bfd_boolean *pvarargs)" * (function_declarator "debug_get_parameter_types(void *handle,debug_type_conflict type,bfd_boolean *pvarargs)" identifier (parameter_list "(void *handle,debug_type_conflict type,bfd_boolean *pvarargs)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) , (parameter_declaration "bfd_boolean *pvarargs" type_identifier (pointer_declarator "*pvarargs" * 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      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\n    }\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    pdVar1 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\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      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\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      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\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      if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }\n      if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }\n    }" { (if_statement "if (pdVar1->kind == DEBUG_KIND_FUNCTION) {\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }" if (parenthesized_expression "(pdVar1->kind == DEBUG_KIND_FUNCTION)" ( (binary_expression "pdVar1->kind == DEBUG_KIND_FUNCTION" (field_expression "pdVar1->kind" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        *pvarargs = ((pdVar1->u).kclass)->id;\n        return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;\n      }" { (expression_statement "*pvarargs = ((pdVar1->u).kclass)->id;" (assignment_expression "*pvarargs = ((pdVar1->u).kclass)->id" (pointer_expression "*pvarargs" * identifier) = (field_expression "((pdVar1->u).kclass)->id" (parenthesized_expression "((pdVar1->u).kclass)" ( (field_expression "(pdVar1->u).kclass" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (return_statement "return (debug_type_conflict *)((pdVar1->u).kindirect)->tag;" return (cast_expression "(debug_type_conflict *)((pdVar1->u).kindirect)->tag" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "((pdVar1->u).kindirect)->tag" (parenthesized_expression "((pdVar1->u).kindirect)" ( (field_expression "(pdVar1->u).kindirect" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) })) (if_statement "if (pdVar1->kind == DEBUG_KIND_METHOD) {\n        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }" if (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        *pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;\n        return (debug_type_conflict *)((pdVar1->u).kclass)->id;\n      }" { (expression_statement "*pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses;" (assignment_expression "*pvarargs = (bfd_boolean)((pdVar1->u).kclass)->baseclasses" (pointer_expression "*pvarargs" * identifier) = (field_expression "(bfd_boolean)((pdVar1->u).kclass)->baseclasses" (call_expression "(bfd_boolean)((pdVar1->u).kclass)" (parenthesized_expression "(bfd_boolean)" ( identifier )) (argument_list "((pdVar1->u).kclass)" ( (field_expression "(pdVar1->u).kclass" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) ))) -> field_identifier)) ;) (return_statement "return (debug_type_conflict *)((pdVar1->u).kclass)->id;" return (cast_expression "(debug_type_conflict *)((pdVar1->u).kclass)->id" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "((pdVar1->u).kclass)->id" (parenthesized_expression "((pdVar1->u).kclass)" ( (field_expression "(pdVar1->u).kclass" (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 (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)FUN_0003b830();" (assignment_expression "piVar1 = (int *)FUN_0003b830()" identifier = (cast_expression "(int *)FUN_0003b830()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003b830()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }" if (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)) )) (compound_statement "{\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }" { (if_statement "if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }" if (parenthesized_expression "(*piVar1 == 0xd)" ( (binary_expression "*piVar1 == 0xd" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }" { (expression_statement "*param_3 = *(undefined4 *)(piVar1[3] + 8);" (assignment_expression "*param_3 = *(undefined4 *)(piVar1[3] + 8)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(piVar1[3] + 8)" * (cast_expression "(undefined4 *)(piVar1[3] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 8)" ( (binary_expression "piVar1[3] + 8" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return *(undefined4 *)(piVar1[3] + 4);" return (pointer_expression "*(undefined4 *)(piVar1[3] + 4)" * (cast_expression "(undefined4 *)(piVar1[3] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 4)" ( (binary_expression "piVar1[3] + 4" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) )))) ;) })) (if_statement "if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }" if (parenthesized_expression "(*piVar1 == 0x13)" ( (binary_expression "*piVar1 == 0x13" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }" { (expression_statement "*param_3 = *(undefined4 *)(piVar1[3] + 0xc);" (assignment_expression "*param_3 = *(undefined4 *)(piVar1[3] + 0xc)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(piVar1[3] + 0xc)" * (cast_expression "(undefined4 *)(piVar1[3] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 0xc)" ( (binary_expression "piVar1[3] + 0xc" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return *(undefined4 *)(piVar1[3] + 8);" return (pointer_expression "*(undefined4 *)(piVar1[3] + 8)" * (cast_expression "(undefined4 *)(piVar1[3] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 8)" ( (binary_expression "piVar1[3] + 8" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + 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 TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * 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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003eb90(undefined4 param_1,int param_2,undefined4 *param_3)" (identifier "FUN_0003eb90") (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if (param_2 != 0) {\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1 = (int *)FUN_0003b830();\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_0003b830();" (assignment_expression "piVar1 = (int *)FUN_0003b830()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0003b830()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003b830()" (identifier "FUN_0003b830") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }" (if "if") (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"))) () ")")) (compound_statement "{\n      if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }\n      if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }\n    }" ({ "{") (if_statement "if (*piVar1 == 0xd) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }" (if "if") (parenthesized_expression "(*piVar1 == 0xd)" (( "(") (binary_expression "*piVar1 == 0xd" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n        *param_3 = *(undefined4 *)(piVar1[3] + 8);\n        return *(undefined4 *)(piVar1[3] + 4);\n      }" ({ "{") (expression_statement "*param_3 = *(undefined4 *)(piVar1[3] + 8);" (assignment_expression "*param_3 = *(undefined4 *)(piVar1[3] + 8)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(piVar1[3] + 8)" (* "*") (cast_expression "(undefined4 *)(piVar1[3] + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[3] + 8)" (( "(") (binary_expression "piVar1[3] + 8" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (return_statement "return *(undefined4 *)(piVar1[3] + 4);" (return "return") (pointer_expression "*(undefined4 *)(piVar1[3] + 4)" (* "*") (cast_expression "(undefined4 *)(piVar1[3] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[3] + 4)" (( "(") (binary_expression "piVar1[3] + 4" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (if_statement "if (*piVar1 == 0x13) {\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }" (if "if") (parenthesized_expression "(*piVar1 == 0x13)" (( "(") (binary_expression "*piVar1 == 0x13" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0x13")) () ")")) (compound_statement "{\n        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);\n        return *(undefined4 *)(piVar1[3] + 8);\n      }" ({ "{") (expression_statement "*param_3 = *(undefined4 *)(piVar1[3] + 0xc);" (assignment_expression "*param_3 = *(undefined4 *)(piVar1[3] + 0xc)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(piVar1[3] + 0xc)" (* "*") (cast_expression "(undefined4 *)(piVar1[3] + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[3] + 0xc)" (( "(") (binary_expression "piVar1[3] + 0xc" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (return_statement "return *(undefined4 *)(piVar1[3] + 8);" (return "return") (pointer_expression "*(undefined4 *)(piVar1[3] + 8)" (* "*") (cast_expression "(undefined4 *)(piVar1[3] + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[3] + 8)" (( "(") (binary_expression "piVar1[3] + 8" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 *
function_1(void *handle,type_1 var_1,type_2 *pvarargs)

{
  type_3 *var_3;
  
  if (var_1 != (type_1)0x0) {
    var_3 = var_2(handle,var_1,(type_4 *)0x0);
    if (var_3 != (type_3 *)0x0) {
      if (var_3->kind == var_4) {
        *pvarargs = ((var_3->u).kclass)->id;
        return (type_1 *)((var_3->u).kindirect)->tag;
      }
      if (var_3->kind == var_5) {
        *pvarargs = (type_2)((var_3->u).kclass)->baseclasses;
        return (type_1 *)((var_3->u).kclass)->id;
      }
    }
  }
  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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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 (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))))))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,int param_2,undefined4 *param_3)

{
  int *piVar1;
  
  if (param_2 != 0) {
    piVar1 = (int *)FUN_0003b830();
    if (piVar1 != (int *)0x0) {
      if (*piVar1 == 0xd) {
        *param_3 = *(undefined4 *)(piVar1[3] + 8);
        return *(undefined4 *)(piVar1[3] + 4);
      }
      if (*piVar1 == 0x13) {
        *param_3 = *(undefined4 *)(piVar1[3] + 0xc);
        return *(undefined4 *)(piVar1[3] + 8);
      }
    }
  }
  return 0;
}

