
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) {
    return (debug_type_conflict)0x0;
  }
  pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);
  if (pdVar2 != (debug_type_s *)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;
  }
  return (debug_type_conflict)0x0;
}



undefined8 FUN_0012e210(undefined8 param_1,long param_2)

{
  uint uVar1;
  uint *puVar2;
  
  if (param_2 == 0) {
    return 0;
  }
  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);
  if (puVar2 != (uint *)0x0) {
    uVar1 = *puVar2;
    if (uVar1 != 0xe) {
      if (uVar1 < 0xf) {
        if (uVar1 != 0xc) {
          return 0;
        }
      }
      else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {
        return 0;
      }
    }
    return *(undefined8 *)(puVar2 + 4);
  }
  return 0;
}


TEST RSI,RSI
JZ 0x0012e258
SUB RSP,0x8
XOR EDX,EDX
CALL 0x0012b0d0
TEST RAX,RAX
JZ 0x0012e24d
MOV EDX,dword ptr [RAX]
CMP EDX,0xe
JZ 0x0012e238
JBE 0x0012e248
CMP EDX,0x14
JZ 0x0012e238
CMP EDX,0x15
JNZ 0x0012e24d
MOV RAX,qword ptr [RAX + 0x10]
ADD RSP,0x8
RET
CMP EDX,0xc
JZ 0x0012e238
XOR EAX,EAX
ADD RSP,0x8
RET
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_0012e210(undefined8 param_1,long param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0012e210(undefined8 param_1,long param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0012e210(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  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * 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 "puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);" (assignment_expression "puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0)" identifier = (cast_expression "(uint *)FUN_0012b0d0(param_1,param_2,0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012b0d0(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }" if (parenthesized_expression "(puVar2 != (uint *)0x0)" ( (binary_expression "puVar2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\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 *(undefined8 *)(puVar2 + 4);\n  }" { (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 *(undefined8 *)(puVar2 + 4);" return (pointer_expression "*(undefined8 *)(puVar2 + 4)" * (cast_expression "(undefined8 *)(puVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return 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    return (debug_type_conflict)0x0;\n  }\n  pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n  if (pdVar2 != (debug_type_s *)0x0) {\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  return (debug_type_conflict)0x0;\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    return (debug_type_conflict)0x0;\n  }\n  pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n  if (pdVar2 != (debug_type_s *)0x0) {\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  return (debug_type_conflict)0x0;\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    return (debug_type_conflict)0x0;\n  }\n  pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)0x0);\n  if (pdVar2 != (debug_type_s *)0x0) {\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  return (debug_type_conflict)0x0;\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    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 "pdVar2 = debug_get_real_type(handle,type,(debug_type_real_list *)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) )))) ;) (if_statement "if (pdVar2 != (debug_type_s *)0x0) {\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  }" if (parenthesized_expression "(pdVar2 != (debug_type_s *)0x0)" ( (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    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  }" { (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) ;) })) (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_0012e210(undefined8 param_1,long param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0012e210(undefined8 param_1,long param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0012e210(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  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * 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 "puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);" (assignment_expression "puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0)" identifier = (cast_expression "(uint *)FUN_0012b0d0(param_1,param_2,0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012b0d0(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }" if (parenthesized_expression "(puVar2 != (uint *)0x0)" ( (binary_expression "puVar2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\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 *(undefined8 *)(puVar2 + 4);\n  }" { (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 *(undefined8 *)(puVar2 + 4);" return (pointer_expression "*(undefined8 *)(puVar2 + 4)" * (cast_expression "(undefined8 *)(puVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 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 IDENT ;) (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 IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0012e210(undefined8 param_1,long param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_0012e210(undefined8 param_1,long param_2)" (identifier "FUN_0012e210") (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  uint uVar1;\n  uint *puVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);\n  if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }\n  return 0;\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) {\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 "puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);" (assignment_expression "puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0)" (identifier "puVar2") (= "=") (cast_expression "(uint *)FUN_0012b0d0(param_1,param_2,0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0012b0d0(param_1,param_2,0)" (identifier "FUN_0012b0d0") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (puVar2 != (uint *)0x0) {\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 *(undefined8 *)(puVar2 + 4);\n  }" (if "if") (parenthesized_expression "(puVar2 != (uint *)0x0)" (( "(") (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    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 *(undefined8 *)(puVar2 + 4);\n  }" ({ "{") (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 *(undefined8 *)(puVar2 + 4);" (return "return") (pointer_expression "*(undefined8 *)(puVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(puVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (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_4;
  type_3 *var_3;
  
  if (var_1 == (type_1)0x0) {
    return (type_1)0x0;
  }
  var_3 = var_2(handle,var_1,(type_4 *)0x0);
  if (var_3 != (type_3 *)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;
  }
  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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))) (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 (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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)

{
  uint uVar1;
  uint *puVar2;
  
  if (param_2 == 0) {
    return 0;
  }
  puVar2 = (uint *)FUN_0012b0d0(param_1,param_2,0);
  if (puVar2 != (uint *)0x0) {
    uVar1 = *puVar2;
    if (uVar1 != 0xe) {
      if (uVar1 < 0xf) {
        if (uVar1 != 0xc) {
          return 0;
        }
      }
      else if ((uVar1 != 0x14) && (uVar1 != 0x15)) {
        return 0;
      }
    }
    return *(undefined8 *)(puVar2 + 4);
  }
  return 0;
}

