
char * get_AT_name(ulong attribute)

{
  undefined *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  
  if (attribute == 0) {
    return PTR_LAB_00081fa8 + 0x3500;
  }
  if (attribute != 0x2001) {
    pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();
    puVar1 = PTR_DAT_00081f98;
    if (pcVar2 == (char *)0x0) {
      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);
      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);
      pcVar2 = puVar1 + 0x27ac;
    }
    return pcVar2;
  }
  return PTR_LAB_00081fa8 + 0x3510;
}



undefined * FUN_00022480(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  if (param_1 == 0) {
    return PTR_LAB_00081fa8 + 0x3500;
  }
  if (param_1 != 0x2001) {
    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();
    puVar1 = PTR_DAT_00081f98;
    if (puVar2 == (undefined *)0x0) {
      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);
      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);
      puVar2 = puVar1 + 0x27ac;
    }
    return puVar2;
  }
  return PTR_LAB_00081fa8 + 0x3510;
}


lui gp,0x6
addiu gp,gp,0x7af0
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
beq a0,zero,0x000224f4
_sw s0,0x1c(sp)
li v0,0x2001
beq a0,v0,0x000224d8
_or s1,a0,zero
lw t9,-0x7ef8(gp)
jalr t9
_nop
beq v0,zero,0x00022510
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
lw v0,-0x7fc8(gp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
addiu sp,sp,0x28
jr ra
_addiu v0,v0,0x3510
lw ra,0x24(sp)
lw v0,-0x7fc8(gp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
addiu sp,sp,0x28
jr ra
_addiu v0,v0,0x3500
lw a1,-0x7fc8(gp)
li a2,0x5
lw t9,-0x7b7c(gp)
or a0,zero,zero
lw s0,-0x7fd8(gp)
jalr t9
_addiu a1,a1,0x3538
li a1,0x64
lw gp,0x10(sp)
addiu a0,s0,0x27ac
or a3,s1,zero
lw t9,-0x7c58(gp)
jalr t9
_or a2,v0,zero
b 0x000224c4
_addiu v0,s0,0x27ac
(translation_unit "undefined * FUN_00022480(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}\n\n" (function_definition "undefined * FUN_00022480(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" type_identifier (pointer_declarator "* FUN_00022480(int param_1)" * (function_declarator "FUN_00022480(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" { (return_statement "return PTR_LAB_00081fa8 + 0x3500;" return (binary_expression "PTR_LAB_00081fa8 + 0x3500" identifier + number_literal) ;) })) (if_statement "if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }" if (parenthesized_expression "(param_1 != 0x2001)" ( (binary_expression "param_1 != 0x2001" identifier != number_literal) )) (compound_statement "{\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }" { (expression_statement "puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();" (assignment_expression "puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)()" identifier = (cast_expression "(undefined *)(*(code *)PTR_get_DW_AT_name_00082078)()" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_get_DW_AT_name_00082078)()" (parenthesized_expression "(*(code *)PTR_get_DW_AT_name_00082078)" ( (pointer_expression "*(code *)PTR_get_DW_AT_name_00082078" * (cast_expression "(code *)PTR_get_DW_AT_name_00082078" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "puVar1 = PTR_DAT_00081f98;" (assignment_expression "puVar1 = PTR_DAT_00081f98" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000823f4)" ( (pointer_expression "*(code *)PTR_dcgettext_000823f4" * (cast_expression "(code *)PTR_dcgettext_000823f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00081fa8 + 0x3538,5)" ( number_literal , (binary_expression "PTR_LAB_00081fa8 + 0x3538" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);" (call_expression "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_snprintf_00082318)" ( (pointer_expression "*(code *)PTR_snprintf_00082318" * (cast_expression "(code *)PTR_snprintf_00082318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1 + 0x27ac,100,uVar3,param_1)" ( (binary_expression "puVar1 + 0x27ac" identifier + number_literal) , number_literal , identifier , identifier ))) ;) (expression_statement "puVar2 = puVar1 + 0x27ac;" (assignment_expression "puVar2 = puVar1 + 0x27ac" identifier = (binary_expression "puVar1 + 0x27ac" identifier + number_literal)) ;) })) (return_statement "return puVar2;" return identifier ;) })) (return_statement "return PTR_LAB_00081fa8 + 0x3510;" return (binary_expression "PTR_LAB_00081fa8 + 0x3510" identifier + number_literal) ;) })))
(translation_unit "char * get_AT_name(ulong attribute)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  if (attribute == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (attribute != 0x2001) {\n    pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (pcVar2 == (char *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }\n    return pcVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}\n\n" (function_definition "char * get_AT_name(ulong attribute)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  if (attribute == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (attribute != 0x2001) {\n    pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (pcVar2 == (char *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }\n    return pcVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" primitive_type (pointer_declarator "* get_AT_name(ulong attribute)" * (function_declarator "get_AT_name(ulong attribute)" identifier (parameter_list "(ulong attribute)" ( (parameter_declaration "ulong attribute" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  if (attribute == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (attribute != 0x2001) {\n    pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (pcVar2 == (char *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }\n    return pcVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (attribute == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" if (parenthesized_expression "(attribute == 0)" ( (binary_expression "attribute == 0" identifier == number_literal) )) (compound_statement "{\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" { (return_statement "return PTR_LAB_00081fa8 + 0x3500;" return (binary_expression "PTR_LAB_00081fa8 + 0x3500" identifier + number_literal) ;) })) (if_statement "if (attribute != 0x2001) {\n    pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (pcVar2 == (char *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }\n    return pcVar2;\n  }" if (parenthesized_expression "(attribute != 0x2001)" ( (binary_expression "attribute != 0x2001" identifier != number_literal) )) (compound_statement "{\n    pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (pcVar2 == (char *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }\n    return pcVar2;\n  }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)();" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_get_DW_AT_name_00082078)()" identifier = (cast_expression "(char *)(*(code *)PTR_get_DW_AT_name_00082078)()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_get_DW_AT_name_00082078)()" (parenthesized_expression "(*(code *)PTR_get_DW_AT_name_00082078)" ( (pointer_expression "*(code *)PTR_get_DW_AT_name_00082078" * (cast_expression "(code *)PTR_get_DW_AT_name_00082078" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "puVar1 = PTR_DAT_00081f98;" (assignment_expression "puVar1 = PTR_DAT_00081f98" identifier = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);\n      pcVar2 = puVar1 + 0x27ac;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000823f4)" ( (pointer_expression "*(code *)PTR_dcgettext_000823f4" * (cast_expression "(code *)PTR_dcgettext_000823f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00081fa8 + 0x3538,5)" ( number_literal , (binary_expression "PTR_LAB_00081fa8 + 0x3538" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute);" (call_expression "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,attribute)" (parenthesized_expression "(*(code *)PTR_snprintf_00082318)" ( (pointer_expression "*(code *)PTR_snprintf_00082318" * (cast_expression "(code *)PTR_snprintf_00082318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1 + 0x27ac,100,uVar3,attribute)" ( (binary_expression "puVar1 + 0x27ac" identifier + number_literal) , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar2 = puVar1 + 0x27ac;" (assignment_expression "pcVar2 = puVar1 + 0x27ac" identifier = (binary_expression "puVar1 + 0x27ac" identifier + number_literal)) ;) })) (return_statement "return pcVar2;" return identifier ;) })) (return_statement "return PTR_LAB_00081fa8 + 0x3510;" return (binary_expression "PTR_LAB_00081fa8 + 0x3510" identifier + number_literal) ;) })))
(translation_unit "undefined * FUN_00022480(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}\n\n" (function_definition "undefined * FUN_00022480(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" type_identifier (pointer_declarator "* FUN_00022480(int param_1)" * (function_declarator "FUN_00022480(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" { (return_statement "return PTR_LAB_00081fa8 + 0x3500;" return (binary_expression "PTR_LAB_00081fa8 + 0x3500" identifier + number_literal) ;) })) (if_statement "if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }" if (parenthesized_expression "(param_1 != 0x2001)" ( (binary_expression "param_1 != 0x2001" identifier != number_literal) )) (compound_statement "{\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }" { (expression_statement "puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();" (assignment_expression "puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)()" identifier = (cast_expression "(undefined *)(*(code *)PTR_get_DW_AT_name_00082078)()" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_get_DW_AT_name_00082078)()" (parenthesized_expression "(*(code *)PTR_get_DW_AT_name_00082078)" ( (pointer_expression "*(code *)PTR_get_DW_AT_name_00082078" * (cast_expression "(code *)PTR_get_DW_AT_name_00082078" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "puVar1 = PTR_DAT_00081f98;" (assignment_expression "puVar1 = PTR_DAT_00081f98" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000823f4)" ( (pointer_expression "*(code *)PTR_dcgettext_000823f4" * (cast_expression "(code *)PTR_dcgettext_000823f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00081fa8 + 0x3538,5)" ( number_literal , (binary_expression "PTR_LAB_00081fa8 + 0x3538" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);" (call_expression "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_snprintf_00082318)" ( (pointer_expression "*(code *)PTR_snprintf_00082318" * (cast_expression "(code *)PTR_snprintf_00082318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1 + 0x27ac,100,uVar3,param_1)" ( (binary_expression "puVar1 + 0x27ac" identifier + number_literal) , number_literal , identifier , identifier ))) ;) (expression_statement "puVar2 = puVar1 + 0x27ac;" (assignment_expression "puVar2 = puVar1 + 0x27ac" identifier = (binary_expression "puVar1 + 0x27ac" identifier + number_literal)) ;) })) (return_statement "return puVar2;" return identifier ;) })) (return_statement "return PTR_LAB_00081fa8 + 0x3510;" return (binary_expression "PTR_LAB_00081fa8 + 0x3510" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (binary_expression IDENT + LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return IDENT ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "undefined * FUN_00022480(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00022480(int param_1)" (* "*") (function_declarator "FUN_00022480(int param_1)" (identifier "FUN_00022480") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }\n  if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }\n  return PTR_LAB_00081fa8 + 0x3510;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (param_1 == 0) {\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return PTR_LAB_00081fa8 + 0x3500;\n  }" ({ "{") (return_statement "return PTR_LAB_00081fa8 + 0x3500;" (return "return") (binary_expression "PTR_LAB_00081fa8 + 0x3500" (identifier "PTR_LAB_00081fa8") (+ "+") (number_literal "0x3500")) (; ";")) (} "}"))) (if_statement "if (param_1 != 0x2001) {\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(param_1 != 0x2001)" (( "(") (binary_expression "param_1 != 0x2001" (identifier "param_1") (!= "!=") (number_literal "0x2001")) () ")")) (compound_statement "{\n    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();\n    puVar1 = PTR_DAT_00081f98;\n    if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }\n    return puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();" (assignment_expression "puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)()" (identifier "puVar2") (= "=") (cast_expression "(undefined *)(*(code *)PTR_get_DW_AT_name_00082078)()" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_get_DW_AT_name_00082078)()" (parenthesized_expression "(*(code *)PTR_get_DW_AT_name_00082078)" (( "(") (pointer_expression "*(code *)PTR_get_DW_AT_name_00082078" (* "*") (cast_expression "(code *)PTR_get_DW_AT_name_00082078" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_get_DW_AT_name_00082078"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_DAT_00081f98;" (assignment_expression "puVar1 = PTR_DAT_00081f98" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00081f98")) (; ";")) (if_statement "if (puVar2 == (undefined *)0x0) {\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined *)0x0)" (( "(") (binary_expression "puVar2 == (undefined *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);\n      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);\n      puVar2 = puVar1 + 0x27ac;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000823f4)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000823f4" (* "*") (cast_expression "(code *)PTR_dcgettext_000823f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000823f4"))) () ")")) (argument_list "(0,PTR_LAB_00081fa8 + 0x3538,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_LAB_00081fa8 + 0x3538" (identifier "PTR_LAB_00081fa8") (+ "+") (number_literal "0x3538")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);" (call_expression "(*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_snprintf_00082318)" (( "(") (pointer_expression "*(code *)PTR_snprintf_00082318" (* "*") (cast_expression "(code *)PTR_snprintf_00082318" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_snprintf_00082318"))) () ")")) (argument_list "(puVar1 + 0x27ac,100,uVar3,param_1)" (( "(") (binary_expression "puVar1 + 0x27ac" (identifier "puVar1") (+ "+") (number_literal "0x27ac")) (, ",") (number_literal "100") (, ",") (identifier "uVar3") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "puVar2 = puVar1 + 0x27ac;" (assignment_expression "puVar2 = puVar1 + 0x27ac" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 0x27ac" (identifier "puVar1") (+ "+") (number_literal "0x27ac"))) (; ";")) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (return_statement "return PTR_LAB_00081fa8 + 0x3510;" (return "return") (binary_expression "PTR_LAB_00081fa8 + 0x3510" (identifier "PTR_LAB_00081fa8") (+ "+") (number_literal "0x3510")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (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)) (number_literal) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

undefined * MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  if (param_1 == 0) {
    return PTR_LAB_00081fa8 + 0x3500;
  }
  if (param_1 != 0x2001) {
    puVar2 = (undefined *)(*(code *)PTR_get_DW_AT_name_00082078)();
    puVar1 = PTR_DAT_00081f98;
    if (puVar2 == (undefined *)0x0) {
      uVar3 = (*(code *)PTR_dcgettext_000823f4)(0,PTR_LAB_00081fa8 + 0x3538,5);
      (*(code *)PTR_snprintf_00082318)(puVar1 + 0x27ac,100,uVar3,param_1);
      puVar2 = puVar1 + 0x27ac;
    }
    return puVar2;
  }
  return PTR_LAB_00081fa8 + 0x3510;
}

