
debug_type_conflict debug_make_volatile_type(void *handle,debug_type_conflict type)

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



int debug_make_volatile_type(undefined4 param_1,int param_2)

{
  int iVar1;
  
  if (param_2 != 0) {
    iVar1 = FUN_0001eb50(0x15,0);
    if (iVar1 != 0) {
      *(int *)(iVar1 + 0xc) = param_2;
    }
    return iVar1;
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,0x371c
addu gp,gp,t9
beq a1,zero,0x000221ac
_nop
addiu sp,sp,-0x20
lw t9,-0x7fa4(gp)
li a0,0x15
sw s0,0x18(sp)
addiu t9,t9,-0x14b0
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0001eb50
_or a1,zero,zero
beq v0,zero,0x000221a0
_lw ra,0x1c(sp)
sw s0,0xc(v0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
jr ra
_or v0,zero,zero
(translation_unit "int debug_make_volatile_type(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int debug_make_volatile_type(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "debug_make_volatile_type(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  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_0001eb50(0x15,0);" (assignment_expression "iVar1 = FUN_0001eb50(0x15,0)" identifier = (call_expression "FUN_0001eb50(0x15,0)" identifier (argument_list "(0x15,0)" ( number_literal , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar1 + 0xc) = param_2;\n    }" { (expression_statement "*(int *)(iVar1 + 0xc) = param_2;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_2" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "debug_type_conflict debug_make_volatile_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  debug_handle *info;\n  uint in_a2;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" (function_definition "debug_type_conflict debug_make_volatile_type(void *handle,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  debug_handle *info;\n  uint in_a2;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_make_volatile_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  debug_handle *info;\n  uint in_a2;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "uint in_a2;" type_identifier identifier ;) (if_statement "if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    }\n    return pdVar1;\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_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      (pdVar1->u).kindirect = (debug_indirect_type *)type;\n    }\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2)" identifier = (call_expression "debug_make_type((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2)" identifier (argument_list "((debug_handle *)0x15,DEBUG_KIND_ILLEGAL,in_a2)" ( (cast_expression "(debug_handle *)0x15" ( (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    }" 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    }" { (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)) ;) })) (return_statement "return pdVar1;" return 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 "int debug_make_volatile_type(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int debug_make_volatile_type(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "debug_make_volatile_type(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  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_0001eb50(0x15,0);" (assignment_expression "iVar1 = FUN_0001eb50(0x15,0)" identifier = (call_expression "FUN_0001eb50(0x15,0)" identifier (argument_list "(0x15,0)" ( number_literal , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar1 + 0xc) = param_2;\n    }" { (expression_statement "*(int *)(iVar1 + 0xc) = param_2;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_2" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int debug_make_volatile_type(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "debug_make_volatile_type(undefined4 param_1,int param_2)" (identifier "debug_make_volatile_type") (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  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_2 != 0) {\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0001eb50(0x15,0);\n    if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001eb50(0x15,0);" (assignment_expression "iVar1 = FUN_0001eb50(0x15,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0001eb50(0x15,0)" (identifier "FUN_0001eb50") (argument_list "(0x15,0)" (( "(") (number_literal "0x15") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      *(int *)(iVar1 + 0xc) = param_2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(iVar1 + 0xc) = param_2;\n    }" ({ "{") (expression_statement "*(int *)(iVar1 + 0xc) = param_2;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_2" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(void *handle,type_1 var_1)

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


(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement (identifier)))) (return_statement (number_literal)))))

int MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  
  if (param_2 != 0) {
    iVar1 = FUN_0001eb50(0x15,0);
    if (iVar1 != 0) {
      *(int *)(iVar1 + 0xc) = param_2;
    }
    return iVar1;
  }
  return 0;
}

