
char * gpps_raw(void *handle,char *name,char *def)

{
  char *pcVar1;
  
  pcVar1 = (char *)(*(code *)PTR_read_setting_s_000bd5a0)();
  if ((pcVar1 == (char *)0x0) &&
     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)) {
    if (def == (char *)0x0) {
      pcVar1 = (char *)0x0;
    }
    else {
      pcVar1 = dupstr(def);
    }
  }
  return pcVar1;
}



int FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();
  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {
    if (param_3 == 0) {
      iVar1 = 0;
    }
    else {
      iVar1 = dupstr(param_3);
    }
  }
  return iVar1;
}


lui gp,0x8
addiu gp,gp,0x5fb8
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s1,a1,zero
or s0,a2,zero
lw t9,-0x7c30(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0003f26c
_or a0,s1,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7c2c(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x0003f25c
_lw ra,0x24(sp)
beq s0,zero,0x0003f2a4
_or a0,s0,zero
lw t9,-0x7f60(gp)
bal 0x000373a4
_nop
lw gp,0x10(sp)
b 0x0003f25c
_lw ra,0x24(sp)
b 0x0003f258
_or v0,s0,zero
(translation_unit "int FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();" (assignment_expression "iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)()" identifier = (call_expression "(*(code *)PTR_read_setting_s_000bd5a0)()" (parenthesized_expression "(*(code *)PTR_read_setting_s_000bd5a0)" ( (pointer_expression "*(code *)PTR_read_setting_s_000bd5a0" * (cast_expression "(code *)PTR_read_setting_s_000bd5a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0))" ( (binary_expression "(iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2)" identifier = (call_expression "(*(code *)PTR_platform_default_s_000bd5a4)(param_2)" (parenthesized_expression "(*(code *)PTR_platform_default_s_000bd5a4)" ( (pointer_expression "*(code *)PTR_platform_default_s_000bd5a4" * (cast_expression "(code *)PTR_platform_default_s_000bd5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = dupstr(param_3);\n    }" else (compound_statement "{\n      iVar1 = dupstr(param_3);\n    }" { (expression_statement "iVar1 = dupstr(param_3);" (assignment_expression "iVar1 = dupstr(param_3)" identifier = (call_expression "dupstr(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) }))) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "char * gpps_raw(void *handle,char *name,char *def)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((pcVar1 == (char *)0x0) &&\n     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)) {\n    if (def == (char *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = dupstr(def);\n    }\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * gpps_raw(void *handle,char *name,char *def)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((pcVar1 == (char *)0x0) &&\n     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)) {\n    if (def == (char *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = dupstr(def);\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* gpps_raw(void *handle,char *name,char *def)" * (function_declarator "gpps_raw(void *handle,char *name,char *def)" identifier (parameter_list "(void *handle,char *name,char *def)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *def" primitive_type (pointer_declarator "*def" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)(*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((pcVar1 == (char *)0x0) &&\n     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)) {\n    if (def == (char *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = dupstr(def);\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_read_setting_s_000bd5a0)();" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_read_setting_s_000bd5a0)()" identifier = (cast_expression "(char *)(*(code *)PTR_read_setting_s_000bd5a0)()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_read_setting_s_000bd5a0)()" (parenthesized_expression "(*(code *)PTR_read_setting_s_000bd5a0)" ( (pointer_expression "*(code *)PTR_read_setting_s_000bd5a0" * (cast_expression "(code *)PTR_read_setting_s_000bd5a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((pcVar1 == (char *)0x0) &&\n     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)) {\n    if (def == (char *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = dupstr(def);\n    }\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) &&\n     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0))" ( (binary_expression "(pcVar1 == (char *)0x0) &&\n     (pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0)" ( (comma_expression "pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name), pcVar1 == (char *)0x0" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_platform_default_s_000bd5a4)(name)" identifier = (cast_expression "(char *)(*(code *)PTR_platform_default_s_000bd5a4)(name)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_platform_default_s_000bd5a4)(name)" (parenthesized_expression "(*(code *)PTR_platform_default_s_000bd5a4)" ( (pointer_expression "*(code *)PTR_platform_default_s_000bd5a4" * (cast_expression "(code *)PTR_platform_default_s_000bd5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier ))))) , (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if (def == (char *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = dupstr(def);\n    }\n  }" { (if_statement "if (def == (char *)0x0) {\n      pcVar1 = (char *)0x0;\n    }\n    else {\n      pcVar1 = dupstr(def);\n    }" if (parenthesized_expression "(def == (char *)0x0)" ( (binary_expression "def == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar1 = (char *)0x0;\n    }" { (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      pcVar1 = dupstr(def);\n    }" else (compound_statement "{\n      pcVar1 = dupstr(def);\n    }" { (expression_statement "pcVar1 = dupstr(def);" (assignment_expression "pcVar1 = dupstr(def)" identifier = (call_expression "dupstr(def)" identifier (argument_list "(def)" ( identifier )))) ;) }))) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "int FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();" (assignment_expression "iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)()" identifier = (call_expression "(*(code *)PTR_read_setting_s_000bd5a0)()" (parenthesized_expression "(*(code *)PTR_read_setting_s_000bd5a0)" ( (pointer_expression "*(code *)PTR_read_setting_s_000bd5a0" * (cast_expression "(code *)PTR_read_setting_s_000bd5a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0))" ( (binary_expression "(iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2)" identifier = (call_expression "(*(code *)PTR_platform_default_s_000bd5a4)(param_2)" (parenthesized_expression "(*(code *)PTR_platform_default_s_000bd5a4)" ( (pointer_expression "*(code *)PTR_platform_default_s_000bd5a4" * (cast_expression "(code *)PTR_platform_default_s_000bd5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = dupstr(param_3);\n    }" else (compound_statement "{\n      iVar1 = dupstr(param_3);\n    }" { (expression_statement "iVar1 = dupstr(param_3);" (assignment_expression "iVar1 = dupstr(param_3)" identifier = (call_expression "dupstr(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) }))) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0003f218(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0003f218") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();\n  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();" (assignment_expression "iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_read_setting_s_000bd5a0)()" (parenthesized_expression "(*(code *)PTR_read_setting_s_000bd5a0)" (( "(") (pointer_expression "*(code *)PTR_read_setting_s_000bd5a0" (* "*") (cast_expression "(code *)PTR_read_setting_s_000bd5a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_read_setting_s_000bd5a0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0))" (( "(") (binary_expression "(iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_platform_default_s_000bd5a4)(param_2)" (parenthesized_expression "(*(code *)PTR_platform_default_s_000bd5a4)" (( "(") (pointer_expression "*(code *)PTR_platform_default_s_000bd5a4" (* "*") (cast_expression "(code *)PTR_platform_default_s_000bd5a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_platform_default_s_000bd5a4"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = dupstr(param_3);\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 0;\n    }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = dupstr(param_3);\n    }" (else "else") (compound_statement "{\n      iVar1 = dupstr(param_3);\n    }" ({ "{") (expression_statement "iVar1 = dupstr(param_3);" (assignment_expression "iVar1 = dupstr(param_3)" (identifier "iVar1") (= "=") (call_expression "dupstr(param_3)" (identifier "dupstr") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (} "}")))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

char * function_1(void *handle,char *name,char *var_2)

{
  char *var_1;
  
  var_1 = (char *)(*(type_1 *)PTR_read_setting_s_000bd5a0)();
  if ((var_1 == (char *)0x0) &&
     (var_1 = (char *)(*(type_1 *)PTR_platform_default_s_000bd5a4)(name), var_1 == (char *)0x0)) {
    if (var_2 == (char *)0x0) {
      var_1 = (char *)0x0;
    }
    else {
      var_1 = var_3(var_2);
    }
  }
  return var_1;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) right: (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))))) (return_statement (identifier)))))

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

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_read_setting_s_000bd5a0)();
  if ((iVar1 == 0) && (iVar1 = (*(code *)PTR_platform_default_s_000bd5a4)(param_2), iVar1 == 0)) {
    if (param_3 == 0) {
      iVar1 = 0;
    }
    else {
      iVar1 = dupstr(param_3);
    }
  }
  return iVar1;
}

