
debug_type_conflict debug_make_pointer_type(void *handle,debug_type_conflict type)

{
  debug_type_s *pdVar1;
  uint in_EDX;
  debug_handle *info;
  
  if (type == (debug_type_conflict)0x0) {
    return (debug_type_conflict)0x0;
  }
  if (type->pointer != (debug_type_conflict)0x0) {
    return type->pointer;
  }
  pdVar1 = debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX);
  if (pdVar1 != (debug_type_s *)0x0) {
    (pdVar1->u).kindirect = (debug_indirect_type *)type;
    type->pointer = pdVar1;
  }
  return pdVar1;
}



long FUN_0010f5f0(undefined8 param_1,long param_2)

{
  long lVar1;
  
  if (param_2 == 0) {
    return 0;
  }
  if (*(long *)(param_2 + 8) != 0) {
    return *(long *)(param_2 + 8);
  }
  lVar1 = FUN_0010d270(0xc,0);
  if (lVar1 != 0) {
    *(long *)(lVar1 + 0x10) = param_2;
    *(long *)(param_2 + 8) = lVar1;
  }
  return lVar1;
}


TEST RSI,RSI
JZ 0x0010f620
MOV RAX,qword ptr [RSI + 0x8]
TEST RAX,RAX
JZ 0x0010f600
RET
PUSH RBX
MOV EDI,0xc
MOV RBX,RSI
XOR ESI,ESI
CALL 0x0010d270
TEST RAX,RAX
JZ 0x0010f61d
MOV qword ptr [RAX + 0x10],RBX
MOV qword ptr [RBX + 0x8],RAX
POP RBX
RET
XOR EAX,EAX
RET
(translation_unit "long FUN_0010f5f0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_0010f5f0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010f5f0(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  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) 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 ;) })) (if_statement "if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }" if (parenthesized_expression "(*(long *)(param_2 + 8) != 0)" ( (binary_expression "*(long *)(param_2 + 8) != 0" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(long *)(param_2 + 8);\n  }" { (return_statement "return *(long *)(param_2 + 8);" return (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (expression_statement "lVar1 = FUN_0010d270(0xc,0);" (assignment_expression "lVar1 = FUN_0010d270(0xc,0)" identifier = (call_expression "FUN_0010d270(0xc,0)" identifier (argument_list "(0xc,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }" { (expression_statement "*(long *)(lVar1 + 0x10) = param_2;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_2" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_2 + 8) = lVar1;" (assignment_expression "*(long *)(param_2 + 8) = lVar1" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "debug_type_conflict debug_make_pointer_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  uint in_EDX;\n  debug_handle *info;\n  \n  if (type == (debug_type_conflict)0x0) {\n    return (debug_type_conflict)0x0;\n  }\n  if (type->pointer != (debug_type_conflict)0x0) {\n    return type->pointer;\n  }\n  pdVar1 = debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    type->pointer = pdVar1;\n  }\n  return pdVar1;\n}\n\n" (function_definition "debug_type_conflict debug_make_pointer_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  uint in_EDX;\n  debug_handle *info;\n  \n  if (type == (debug_type_conflict)0x0) {\n    return (debug_type_conflict)0x0;\n  }\n  if (type->pointer != (debug_type_conflict)0x0) {\n    return type->pointer;\n  }\n  pdVar1 = debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    type->pointer = pdVar1;\n  }\n  return pdVar1;\n}" type_identifier (function_declarator "debug_make_pointer_type(void *handle,debug_type_conflict type)" identifier (parameter_list "(void *handle,debug_type_conflict type)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  uint in_EDX;\n  debug_handle *info;\n  \n  if (type == (debug_type_conflict)0x0) {\n    return (debug_type_conflict)0x0;\n  }\n  if (type->pointer != (debug_type_conflict)0x0) {\n    return type->pointer;\n  }\n  pdVar1 = debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    type->pointer = pdVar1;\n  }\n  return pdVar1;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "uint in_EDX;" type_identifier identifier ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * 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) ;) })) (if_statement "if (type->pointer != (debug_type_conflict)0x0) {\n    return type->pointer;\n  }" if (parenthesized_expression "(type->pointer != (debug_type_conflict)0x0)" ( (binary_expression "type->pointer != (debug_type_conflict)0x0" (field_expression "type->pointer" identifier -> field_identifier) != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n    return type->pointer;\n  }" { (return_statement "return type->pointer;" return (field_expression "type->pointer" identifier -> field_identifier) ;) })) (expression_statement "pdVar1 = debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX)" identifier = (call_expression "debug_make_type((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX)" identifier (argument_list "((debug_handle *)0xc,DEBUG_KIND_ILLEGAL,in_EDX)" ( (cast_expression "(debug_handle *)0xc" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n    (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    type->pointer = pdVar1;\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    (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    type->pointer = pdVar1;\n  }" { (expression_statement "(pdVar1->u).kindirect = (debug_indirect_type *)type;" (assignment_expression "(pdVar1->u).kindirect = (debug_indirect_type *)type" (field_expression "(pdVar1->u).kindirect" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(debug_indirect_type *)type" ( (type_descriptor "debug_indirect_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "type->pointer = pdVar1;" (assignment_expression "type->pointer = pdVar1" (field_expression "type->pointer" identifier -> field_identifier) = identifier) ;) })) (return_statement "return pdVar1;" return identifier ;) })))
(translation_unit "long FUN_0010f5f0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_0010f5f0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010f5f0(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  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) 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 ;) })) (if_statement "if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }" if (parenthesized_expression "(*(long *)(param_2 + 8) != 0)" ( (binary_expression "*(long *)(param_2 + 8) != 0" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(long *)(param_2 + 8);\n  }" { (return_statement "return *(long *)(param_2 + 8);" return (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (expression_statement "lVar1 = FUN_0010d270(0xc,0);" (assignment_expression "lVar1 = FUN_0010d270(0xc,0)" identifier = (call_expression "FUN_0010d270(0xc,0)" identifier (argument_list "(0xc,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }" { (expression_statement "*(long *)(lVar1 + 0x10) = param_2;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_2" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_2 + 8) = lVar1;" (assignment_expression "*(long *)(param_2 + 8) = lVar1" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_0010f5f0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0010f5f0(undefined8 param_1,long param_2)" (identifier "FUN_0010f5f0") (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  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }\n  lVar1 = FUN_0010d270(0xc,0);\n  if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (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") (; ";")) (} "}"))) (if_statement "if (*(long *)(param_2 + 8) != 0) {\n    return *(long *)(param_2 + 8);\n  }" (if "if") (parenthesized_expression "(*(long *)(param_2 + 8) != 0)" (( "(") (binary_expression "*(long *)(param_2 + 8) != 0" (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(long *)(param_2 + 8);\n  }" ({ "{") (return_statement "return *(long *)(param_2 + 8);" (return "return") (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (expression_statement "lVar1 = FUN_0010d270(0xc,0);" (assignment_expression "lVar1 = FUN_0010d270(0xc,0)" (identifier "lVar1") (= "=") (call_expression "FUN_0010d270(0xc,0)" (identifier "FUN_0010d270") (argument_list "(0xc,0)" (( "(") (number_literal "0xc") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(long *)(lVar1 + 0x10) = param_2;\n    *(long *)(param_2 + 8) = lVar1;\n  }" ({ "{") (expression_statement "*(long *)(lVar1 + 0x10) = param_2;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_2" (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(long *)(param_2 + 8) = lVar1;" (assignment_expression "*(long *)(param_2 + 8) = lVar1" (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (} "}"))) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

type_1 function_1(void *handle,type_1 var_1)

{
  type_2 *var_3;
  type_3 in_EDX;
  type_4 *info;
  
  if (var_1 == (type_1)0x0) {
    return (type_1)0x0;
  }
  if (var_1->pointer != (type_1)0x0) {
    return var_1->pointer;
  }
  var_3 = var_2((type_4 *)0xc,DEBUG_KIND_ILLEGAL,in_EDX);
  if (var_3 != (type_2 *)0x0) {
    (var_3->u).kindirect = (type_5 *)var_1;
    var_1->pointer = var_3;
  }
  return var_3;
}


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

long MASKED(undefined8 param_1,long param_2)

{
  long lVar1;
  
  if (param_2 == 0) {
    return 0;
  }
  if (*(long *)(param_2 + 8) != 0) {
    return *(long *)(param_2 + 8);
  }
  lVar1 = FUN_0010d270(0xc,0);
  if (lVar1 != 0) {
    *(long *)(lVar1 + 0x10) = param_2;
    *(long *)(param_2 + 8) = lVar1;
  }
  return lVar1;
}

