
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void init_unicode(void)

{
  char *LANG;
  
  if (*PTR_unicode_status_0012a88c == '\0') {
    LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);
    if (LANG == (char *)0x0) {
      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);
      if (LANG == (char *)0x0) {
        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);
      }
    }
    reinit_unicode(LANG);
    return;
  }
  return;
}



void FUN_000f99a8(void)

{
  int iVar1;
  
  if (*PTR_DAT_0012a88c == '\0') {
    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);
    if (iVar1 == 0) {
      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);
      if (iVar1 == 0) {
        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);
      }
    }
    FUN_000f9910(iVar1);
    return;
  }
  return;
}


lui gp,0x4
addiu gp,gp,-0x7858
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,-0x78c4(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lbu v0,0x0(v0)
bne v0,zero,0x000f9a24
_lw a0,-0x7fc4(gp)
lw t9,-0x7184(gp)
jalr t9
_addiu a0,a0,0x7560
bne v0,zero,0x000f9a10
_lw gp,0x10(sp)
lw a0,-0x7fc4(gp)
lw t9,-0x7184(gp)
jalr t9
_addiu a0,a0,0x7568
bne v0,zero,0x000f9a10
_lw gp,0x10(sp)
lw a0,-0x7fc4(gp)
lw t9,-0x7184(gp)
jalr t9
_addiu a0,a0,0x7574
lw gp,0x10(sp)
lw ra,0x1c(sp)
addiu sp,sp,0x20
lw t9,-0x78dc(gp)
b 0x000f9910
_or a0,v0,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_000f99a8(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000f99a8(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000f99a8(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }" if (parenthesized_expression "(*PTR_DAT_0012a88c == '\0')" ( (binary_expression "*PTR_DAT_0012a88c == '\0'" (pointer_expression "*PTR_DAT_0012a88c" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" identifier = (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7560)" ( (binary_expression "PTR_UINT_0012a18c + 0x7560" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" identifier = (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7568)" ( (binary_expression "PTR_UINT_0012a18c + 0x7568" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" { (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" identifier = (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7574)" ( (binary_expression "PTR_UINT_0012a18c + 0x7574" identifier + number_literal) )))) ;) })) })) (expression_statement "FUN_000f9910(iVar1);" (call_expression "FUN_000f9910(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid init_unicode(void)\n\n{\n  char *LANG;\n  \n  if (*PTR_unicode_status_0012a88c == '\0') {\n    LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (LANG == (char *)0x0) {\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    reinit_unicode(LANG);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void init_unicode(void)\n\n{\n  char *LANG;\n  \n  if (*PTR_unicode_status_0012a88c == '\0') {\n    LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (LANG == (char *)0x0) {\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    reinit_unicode(LANG);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "init_unicode(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *LANG;\n  \n  if (*PTR_unicode_status_0012a88c == '\0') {\n    LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (LANG == (char *)0x0) {\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    reinit_unicode(LANG);\n    return;\n  }\n  return;\n}" { (declaration "char *LANG;" primitive_type (pointer_declarator "*LANG" * identifier) ;) (if_statement "if (*PTR_unicode_status_0012a88c == '\0') {\n    LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (LANG == (char *)0x0) {\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    reinit_unicode(LANG);\n    return;\n  }" if (parenthesized_expression "(*PTR_unicode_status_0012a88c == '\0')" ( (binary_expression "*PTR_unicode_status_0012a88c == '\0'" (pointer_expression "*PTR_unicode_status_0012a88c" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (LANG == (char *)0x0) {\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    reinit_unicode(LANG);\n    return;\n  }" { (expression_statement "LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);" (assignment_expression "LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7560)" ( (binary_expression "PTR_UINT_0012a18c + 0x7560" identifier + number_literal) ))))) ;) (if_statement "if (LANG == (char *)0x0) {\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" if (parenthesized_expression "(LANG == (char *)0x0)" ( (binary_expression "LANG == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" { (expression_statement "LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);" (assignment_expression "LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7568)" ( (binary_expression "PTR_UINT_0012a18c + 0x7568" identifier + number_literal) ))))) ;) (if_statement "if (LANG == (char *)0x0) {\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" if (parenthesized_expression "(LANG == (char *)0x0)" ( (binary_expression "LANG == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" { (expression_statement "LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);" (assignment_expression "LANG = (char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7574)" ( (binary_expression "PTR_UINT_0012a18c + 0x7574" identifier + number_literal) ))))) ;) })) })) (expression_statement "reinit_unicode(LANG);" (call_expression "reinit_unicode(LANG)" identifier (argument_list "(LANG)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000f99a8(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000f99a8(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000f99a8(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }" if (parenthesized_expression "(*PTR_DAT_0012a88c == '\0')" ( (binary_expression "*PTR_DAT_0012a88c == '\0'" (pointer_expression "*PTR_DAT_0012a88c" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" identifier = (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7560)" ( (binary_expression "PTR_UINT_0012a18c + 0x7560" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" identifier = (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7568)" ( (binary_expression "PTR_UINT_0012a18c + 0x7568" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" { (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" identifier = (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" ( (pointer_expression "*(code *)PTR_getenv_0012afcc" * (cast_expression "(code *)PTR_getenv_0012afcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x7574)" ( (binary_expression "PTR_UINT_0012a18c + 0x7574" identifier + number_literal) )))) ;) })) })) (expression_statement "FUN_000f9910(iVar1);" (call_expression "FUN_000f9910(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_000f99a8(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000f99a8(void)" (identifier "FUN_000f99a8") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*PTR_DAT_0012a88c == '\0') {\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(*PTR_DAT_0012a88c == '\0')" (( "(") (binary_expression "*PTR_DAT_0012a88c == '\0'" (pointer_expression "*PTR_DAT_0012a88c" (* "*") (identifier "PTR_DAT_0012a88c")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);\n    if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }\n    FUN_000f9910(iVar1);\n    return;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" (( "(") (pointer_expression "*(code *)PTR_getenv_0012afcc" (* "*") (cast_expression "(code *)PTR_getenv_0012afcc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_0012afcc"))) () ")")) (argument_list "(PTR_UINT_0012a18c + 0x7560)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x7560" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x7560")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);\n      if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" (( "(") (pointer_expression "*(code *)PTR_getenv_0012afcc" (* "*") (cast_expression "(code *)PTR_getenv_0012afcc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_0012afcc"))) () ")")) (argument_list "(PTR_UINT_0012a18c + 0x7568)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x7568" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x7568")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);\n      }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574)" (parenthesized_expression "(*(code *)PTR_getenv_0012afcc)" (( "(") (pointer_expression "*(code *)PTR_getenv_0012afcc" (* "*") (cast_expression "(code *)PTR_getenv_0012afcc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_0012afcc"))) () ")")) (argument_list "(PTR_UINT_0012a18c + 0x7574)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x7574" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x7574")) () ")")))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_000f9910(iVar1);" (call_expression "FUN_000f9910(iVar1)" (identifier "FUN_000f9910") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  char *var_2;
  
  if (*PTR_unicode_status_0012a88c == '\0') {
    var_2 = (char *)(*(type_1 *)PTR_getenv_0012afcc)(var_1 + 0x7560);
    if (var_2 == (char *)0x0) {
      var_2 = (char *)(*(type_1 *)PTR_getenv_0012afcc)(var_1 + 0x7568);
      if (var_2 == (char *)0x0) {
        var_2 = (char *)(*(type_1 *)PTR_getenv_0012afcc)(var_1 + 0x7574);
      }
    }
    var_3(var_2);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (binary_expression left: (identifier) right: (number_literal)))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (return_statement))))

void MASKED(void)

{
  int iVar1;
  
  if (*PTR_DAT_0012a88c == '\0') {
    iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7560);
    if (iVar1 == 0) {
      iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7568);
      if (iVar1 == 0) {
        iVar1 = (*(code *)PTR_getenv_0012afcc)(PTR_UINT_0012a18c + 0x7574);
      }
    }
    FUN_000f9910(iVar1);
    return;
  }
  return;
}

