
debug_type_conflict debug_get_target_type(void *handle,debug_type_conflict type)

{
  debug_type_kind dVar1;
  debug_type_s *pdVar2;
  
  if ((type == (debug_type_conflict)0x0) ||
     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),
     pdVar2 == (debug_type_s *)0x0)) {
    return (debug_type_conflict)0x0;
  }
  dVar1 = pdVar2->kind;
  if (dVar1 != DEBUG_KIND_REFERENCE) {
    if (dVar1 < DEBUG_KIND_RANGE) {
      if (dVar1 != DEBUG_KIND_POINTER) {
        return (debug_type_conflict)0x0;
      }
    }
    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {
      return (debug_type_conflict)0x0;
    }
  }
  return (debug_type_conflict)(pdVar2->u).kindirect;
}



uint FUN_00020580(undefined4 param_1,int param_2)

{
  uint uVar1;
  uint *puVar2;
  
  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {
    return 0;
  }
  uVar1 = *puVar2;
  if (uVar1 != 0xe) {
    if (uVar1 < 0xf) {
      if (uVar1 != 0xc) {
        return 0;
      }
    }
    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {
      return 0;
    }
  }
  return puVar2[3];
}


SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
JZ 0x000205bd
MOV EAX,dword ptr [ESP + 0x10]
XOR ECX,ECX
CALL 0x0001d1b0
TEST EAX,EAX
JZ 0x000205bd
MOV EDX,dword ptr [EAX]
CMP EDX,0xe
JZ 0x000205ad
JBE 0x000205b8
CMP EDX,0x14
JZ 0x000205ad
CMP EDX,0x15
JNZ 0x000205bd
MOV EAX,dword ptr [EAX + 0xc]
ADD ESP,0xc
RET
CMP EDX,0xc
JZ 0x000205ad
XOR EAX,EAX
ADD ESP,0xc
RET
(translation_unit "uint FUN_00020580(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}\n\n" (function_definition "uint FUN_00020580(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}" type_identifier (function_declarator "FUN_00020580(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  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0))" ( (binary_expression "(param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)" ( (comma_expression "puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0" (assignment_expression "puVar2 = (uint *)FUN_0001d1b0()" identifier = (cast_expression "(uint *)FUN_0001d1b0()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001d1b0()" identifier (argument_list "()" ( ))))) , (binary_expression "puVar2 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(uVar1 != 0xe)" ( (binary_expression "uVar1 != 0xe" identifier != number_literal) )) (compound_statement "{\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }" { (if_statement "if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 < 0xf)" ( (binary_expression "uVar1 < 0xf" identifier < number_literal) )) (compound_statement "{\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }" { (if_statement "if (uVar1 != 0xc) {\n        return 0;\n      }" if (parenthesized_expression "(uVar1 != 0xc)" ( (binary_expression "uVar1 != 0xc" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" else (if_statement "if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" if (parenthesized_expression "((uVar1 != 0x14) && (uVar1 != 0x15))" ( (binary_expression "(uVar1 != 0x14) && (uVar1 != 0x15)" (parenthesized_expression "(uVar1 != 0x14)" ( (binary_expression "uVar1 != 0x14" identifier != number_literal) )) && (parenthesized_expression "(uVar1 != 0x15)" ( (binary_expression "uVar1 != 0x15" identifier != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) })) (return_statement "return puVar2[3];" return (subscript_expression "puVar2[3]" identifier [ number_literal ]) ;) })))
(translation_unit "debug_type_conflict debug_get_target_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_kind dVar1;\n  debug_type_s *pdVar2;\n  \n  if ((type == (debug_type_conflict)0x0) ||\n     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0)) {\n    return (debug_type_conflict)0x0;\n  }\n  dVar1 = pdVar2->kind;\n  if (dVar1 != DEBUG_KIND_REFERENCE) {\n    if (dVar1 < DEBUG_KIND_RANGE) {\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }\n    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }\n  }\n  return (debug_type_conflict)(pdVar2->u).kindirect;\n}\n\n" (function_definition "debug_type_conflict debug_get_target_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_kind dVar1;\n  debug_type_s *pdVar2;\n  \n  if ((type == (debug_type_conflict)0x0) ||\n     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0)) {\n    return (debug_type_conflict)0x0;\n  }\n  dVar1 = pdVar2->kind;\n  if (dVar1 != DEBUG_KIND_REFERENCE) {\n    if (dVar1 < DEBUG_KIND_RANGE) {\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }\n    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }\n  }\n  return (debug_type_conflict)(pdVar2->u).kindirect;\n}" type_identifier (function_declarator "debug_get_target_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_kind dVar1;\n  debug_type_s *pdVar2;\n  \n  if ((type == (debug_type_conflict)0x0) ||\n     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0)) {\n    return (debug_type_conflict)0x0;\n  }\n  dVar1 = pdVar2->kind;\n  if (dVar1 != DEBUG_KIND_REFERENCE) {\n    if (dVar1 < DEBUG_KIND_RANGE) {\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }\n    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }\n  }\n  return (debug_type_conflict)(pdVar2->u).kindirect;\n}" { (declaration "debug_type_kind dVar1;" type_identifier identifier ;) (declaration "debug_type_s *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (if_statement "if ((type == (debug_type_conflict)0x0) ||\n     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0)) {\n    return (debug_type_conflict)0x0;\n  }" if (parenthesized_expression "((type == (debug_type_conflict)0x0) ||\n     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0))" ( (binary_expression "(type == (debug_type_conflict)0x0) ||\n     (pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0)" (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)) )) || (parenthesized_expression "(pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0)" ( (comma_expression "pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0),\n     pdVar2 == (debug_type_s *)0x0" (assignment_expression "pdVar2 = 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) )))) , (binary_expression "pdVar2 == (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 (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 "dVar1 = pdVar2->kind;" (assignment_expression "dVar1 = pdVar2->kind" identifier = (field_expression "pdVar2->kind" identifier -> field_identifier)) ;) (if_statement "if (dVar1 != DEBUG_KIND_REFERENCE) {\n    if (dVar1 < DEBUG_KIND_RANGE) {\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }\n    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }\n  }" if (parenthesized_expression "(dVar1 != DEBUG_KIND_REFERENCE)" ( (binary_expression "dVar1 != DEBUG_KIND_REFERENCE" identifier != identifier) )) (compound_statement "{\n    if (dVar1 < DEBUG_KIND_RANGE) {\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }\n    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }\n  }" { (if_statement "if (dVar1 < DEBUG_KIND_RANGE) {\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }\n    else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }" if (parenthesized_expression "(dVar1 < DEBUG_KIND_RANGE)" ( (binary_expression "dVar1 < DEBUG_KIND_RANGE" identifier < identifier) )) (compound_statement "{\n      if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }\n    }" { (if_statement "if (dVar1 != DEBUG_KIND_POINTER) {\n        return (debug_type_conflict)0x0;\n      }" if (parenthesized_expression "(dVar1 != DEBUG_KIND_POINTER)" ( (binary_expression "dVar1 != DEBUG_KIND_POINTER" identifier != identifier) )) (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) ;) })) }) (else_clause "else if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }" else (if_statement "if ((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)) {\n      return (debug_type_conflict)0x0;\n    }" if (parenthesized_expression "((dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE))" ( (binary_expression "(dVar1 != DEBUG_KIND_CONST) && (dVar1 != DEBUG_KIND_VOLATILE)" (parenthesized_expression "(dVar1 != DEBUG_KIND_CONST)" ( (binary_expression "dVar1 != DEBUG_KIND_CONST" identifier != identifier) )) && (parenthesized_expression "(dVar1 != DEBUG_KIND_VOLATILE)" ( (binary_expression "dVar1 != DEBUG_KIND_VOLATILE" identifier != identifier) ))) )) (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) ;) })))) })) (return_statement "return (debug_type_conflict)(pdVar2->u).kindirect;" return (field_expression "(debug_type_conflict)(pdVar2->u).kindirect" (call_expression "(debug_type_conflict)(pdVar2->u)" (parenthesized_expression "(debug_type_conflict)" ( identifier )) (argument_list "(pdVar2->u)" ( (field_expression "pdVar2->u" identifier -> field_identifier) ))) . field_identifier) ;) })))
(translation_unit "uint FUN_00020580(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}\n\n" (function_definition "uint FUN_00020580(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}" type_identifier (function_declarator "FUN_00020580(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  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0))" ( (binary_expression "(param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)" ( (comma_expression "puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0" (assignment_expression "puVar2 = (uint *)FUN_0001d1b0()" identifier = (cast_expression "(uint *)FUN_0001d1b0()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001d1b0()" identifier (argument_list "()" ( ))))) , (binary_expression "puVar2 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(uVar1 != 0xe)" ( (binary_expression "uVar1 != 0xe" identifier != number_literal) )) (compound_statement "{\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }" { (if_statement "if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 < 0xf)" ( (binary_expression "uVar1 < 0xf" identifier < number_literal) )) (compound_statement "{\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }" { (if_statement "if (uVar1 != 0xc) {\n        return 0;\n      }" if (parenthesized_expression "(uVar1 != 0xc)" ( (binary_expression "uVar1 != 0xc" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" else (if_statement "if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" if (parenthesized_expression "((uVar1 != 0x14) && (uVar1 != 0x15))" ( (binary_expression "(uVar1 != 0x14) && (uVar1 != 0x15)" (parenthesized_expression "(uVar1 != 0x14)" ( (binary_expression "uVar1 != 0x14" identifier != number_literal) )) && (parenthesized_expression "(uVar1 != 0x15)" ( (binary_expression "uVar1 != 0x15" identifier != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) })) (return_statement "return puVar2[3];" return (subscript_expression "puVar2[3]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })))) })) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "uint FUN_00020580(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}" (type_identifier "uint") (function_declarator "FUN_00020580(undefined4 param_1,int param_2)" (identifier "FUN_00020580") (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  uint uVar1;\n  uint *puVar2;\n  \n  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }\n  uVar1 = *puVar2;\n  if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }\n  return puVar2[3];\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0))" (( "(") (binary_expression "(param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)" (( "(") (comma_expression "puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0" (assignment_expression "puVar2 = (uint *)FUN_0001d1b0()" (identifier "puVar2") (= "=") (cast_expression "(uint *)FUN_0001d1b0()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001d1b0()" (identifier "FUN_0001d1b0") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "puVar2 == (uint *)0x0" (identifier "puVar2") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" (identifier "uVar1") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (if_statement "if (uVar1 != 0xe) {\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(uVar1 != 0xe)" (( "(") (binary_expression "uVar1 != 0xe" (identifier "uVar1") (!= "!=") (number_literal "0xe")) () ")")) (compound_statement "{\n    if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (uVar1 < 0xf) {\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }\n    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar1 < 0xf)" (( "(") (binary_expression "uVar1 < 0xf" (identifier "uVar1") (< "<") (number_literal "0xf")) () ")")) (compound_statement "{\n      if (uVar1 != 0xc) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (uVar1 != 0xc) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(uVar1 != 0xc)" (( "(") (binary_expression "uVar1 != 0xc" (identifier "uVar1") (!= "!=") (number_literal "0xc")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" (else "else") (if_statement "if ((uVar1 != 0x14) && (uVar1 != 0x15)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((uVar1 != 0x14) && (uVar1 != 0x15))" (( "(") (binary_expression "(uVar1 != 0x14) && (uVar1 != 0x15)" (parenthesized_expression "(uVar1 != 0x14)" (( "(") (binary_expression "uVar1 != 0x14" (identifier "uVar1") (!= "!=") (number_literal "0x14")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 != 0x15)" (( "(") (binary_expression "uVar1 != 0x15" (identifier "uVar1") (!= "!=") (number_literal "0x15")) () ")"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))))) (} "}"))) (return_statement "return puVar2[3];" (return "return") (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (; ";")) (} "}")))

type_1 function_1(void *handle,type_1 var_1)

{
  type_2 var_4;
  type_3 *var_3;
  
  if ((var_1 == (type_1)0x0) ||
     (var_3 = var_2(handle,var_1,(type_4 *)0x0),
     var_3 == (type_3 *)0x0)) {
    return (type_1)0x0;
  }
  var_4 = var_3->kind;
  if (var_4 != var_5) {
    if (var_4 < var_6) {
      if (var_4 != var_7) {
        return (type_1)0x0;
      }
    }
    else if ((var_4 != var_8) && (var_4 != var_9)) {
      return (type_1)0x0;
    }
  }
  return (type_1)(var_3->u).kindirect;
}


(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: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (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)))) right: (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 (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))))))) (return_statement (subscript_expression argument: (identifier) index: (number_literal))))))

uint MASKED(undefined4 param_1,int param_2)

{
  uint uVar1;
  uint *puVar2;
  
  if ((param_2 == 0) || (puVar2 = (uint *)FUN_0001d1b0(), puVar2 == (uint *)0x0)) {
    return 0;
  }
  uVar1 = *puVar2;
  if (uVar1 != 0xe) {
    if (uVar1 < 0xf) {
      if (uVar1 != 0xc) {
        return 0;
      }
    }
    else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {
      return 0;
    }
  }
  return puVar2[3];
}

