
char * get_page_name(mpage_info *mpi)

{
  undefined *puVar1;
  mpage_name_func *pmVar2;
  int iVar3;
  
  iVar3 = mpi->page;
  if (iVar3 == 0x3f) {
    if (mpi->subpage != 0xff) {
      return PTR_s_lue_00032498 + -0x18e8;
    }
    return PTR_s_lue_00032498 + -0x190c;
  }
  pmVar2 = get_mpage_name_func(mpi);
  puVar1 = PTR_uint8_t_ARRAY_0003249c;
  if ((pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0)) {
    return pmVar2->name;
  }
  if (mpi->subpage != 0) {
    (*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);
    return puVar1 + -0x5a4c;
  }
  (*(code *)PTR__MIPS_STUBS__00032584)
            (PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);
  return puVar1 + -0x5a4c;
}



undefined * FUN_000156b0(int *param_1)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *param_1;
  if (iVar3 == 0x3f) {
    if (param_1[1] != 0xff) {
      return PTR_s_lue_00032498 + -0x18e8;
    }
    return PTR_s_lue_00032498 + -0x190c;
  }
  iVar2 = get_mpage_name_func();
  puVar1 = PTR_DAT_0003249c;
  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {
    return *(undefined **)(iVar2 + 0xc);
  }
  if (param_1[1] != 0) {
    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);
    return puVar1 + -0x5a4c;
  }
  (*(code *)PTR___snprintf_chk_00032584)
            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);
  return puVar1 + -0x5a4c;
}


lui gp,0x2
addiu gp,gp,0x4db0
addu gp,gp,t9
addiu sp,sp,-0x30
lw t4,0x0(a0)
li v1,0x3f
or t3,a0,zero
sw gp,0x20(sp)
sw ra,0x2c(sp)
beq t4,v1,0x00015754
_sw s0,0x28(sp)
lw t9,-0x7fc0(gp)
bal 0x00015310
_nop
beq v0,zero,0x00015708
_lw gp,0x20(sp)
lw v0,0xc(v0)
beq v0,zero,0x00015708
_lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x4(t3)
li a3,0x40
lw s0,-0x7fc4(gp)
li a2,0x1
lw t9,-0x7edc(gp)
beq v0,zero,0x00015778
_li a1,0x40
sw v0,0x18(sp)
addiu a0,s0,-0x5a4c
lw v0,-0x7fc8(gp)
sw t4,0x14(sp)
addiu v0,v0,-0x18d0
jalr t9
_sw v0,0x10(sp)
addiu v0,s0,-0x5a4c
lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw v1,0x4(a0)
li v0,0xff
beq v1,v0,0x000157a4
_lw ra,0x2c(sp)
lw v0,-0x7fc8(gp)
lw s0,0x28(sp)
addiu sp,sp,0x30
jr ra
_addiu v0,v0,-0x18e8
lw v0,-0x7fc8(gp)
addiu a0,s0,-0x5a4c
sw t4,0x14(sp)
addiu v0,v0,-0x18a8
jalr t9
_sw v0,0x10(sp)
addiu v0,s0,-0x5a4c
lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw v0,-0x7fc8(gp)
lw s0,0x28(sp)
addiu sp,sp,0x30
jr ra
_addiu v0,v0,-0x190c
(translation_unit "undefined * FUN_000156b0(int *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}\n\n" (function_definition "undefined * FUN_000156b0(int *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" type_identifier (pointer_declarator "* FUN_000156b0(int *param_1)" * (function_declarator "FUN_000156b0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" if (parenthesized_expression "(iVar3 == 0x3f)" ( (binary_expression "iVar3 == 0x3f" identifier == number_literal) )) (compound_statement "{\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" { (if_statement "if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" if (parenthesized_expression "(param_1[1] != 0xff)" ( (binary_expression "param_1[1] != 0xff" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" { (return_statement "return PTR_s_lue_00032498 + -0x18e8;" return (binary_expression "PTR_s_lue_00032498 + -0x18e8" identifier + number_literal) ;) })) (return_statement "return PTR_s_lue_00032498 + -0x190c;" return (binary_expression "PTR_s_lue_00032498 + -0x190c" identifier + number_literal) ;) })) (expression_statement "iVar2 = get_mpage_name_func();" (assignment_expression "iVar2 = get_mpage_name_func()" identifier = (call_expression "get_mpage_name_func()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR_DAT_0003249c;" (assignment_expression "puVar1 = PTR_DAT_0003249c" identifier = identifier) ;) (if_statement "if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }" if (parenthesized_expression "((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0))" ( (binary_expression "(iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)" ( (binary_expression "*(undefined **)(iVar2 + 0xc) != (undefined *)0x0" (pointer_expression "*(undefined **)(iVar2 + 0xc)" * (cast_expression "(undefined **)(iVar2 + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    return *(undefined **)(iVar2 + 0xc);\n  }" { (return_statement "return *(undefined **)(iVar2 + 0xc);" return (pointer_expression "*(undefined **)(iVar2 + 0xc)" * (cast_expression "(undefined **)(iVar2 + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) ;) })) (if_statement "if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" { (expression_statement "(*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);" (call_expression "(*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00032584)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00032584" * (cast_expression "(code *)PTR___snprintf_chk_00032584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003249c + -0x5a4c)" ( (binary_expression "PTR_DAT_0003249c + -0x5a4c" identifier + number_literal) ))) ;) (return_statement "return puVar1 + -0x5a4c;" return (binary_expression "puVar1 + -0x5a4c" identifier + number_literal) ;) })) (expression_statement "(*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);" (call_expression "(*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00032584)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00032584" * (cast_expression "(code *)PTR___snprintf_chk_00032584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" ( (binary_expression "PTR_DAT_0003249c + -0x5a4c" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_s_lue_00032498 + -0x18a8" identifier + number_literal) , identifier ))) ;) (return_statement "return puVar1 + -0x5a4c;" return (binary_expression "puVar1 + -0x5a4c" identifier + number_literal) ;) })))
(translation_unit "char * get_page_name(mpage_info *mpi)\n\n{\n  undefined *puVar1;\n  mpage_name_func *pmVar2;\n  int iVar3;\n  \n  iVar3 = mpi->page;\n  if (iVar3 == 0x3f) {\n    if (mpi->subpage != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  pmVar2 = get_mpage_name_func(mpi);\n  puVar1 = PTR_uint8_t_ARRAY_0003249c;\n  if ((pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0)) {\n    return pmVar2->name;\n  }\n  if (mpi->subpage != 0) {\n    (*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR__MIPS_STUBS__00032584)\n            (PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}\n\n" (function_definition "char * get_page_name(mpage_info *mpi)\n\n{\n  undefined *puVar1;\n  mpage_name_func *pmVar2;\n  int iVar3;\n  \n  iVar3 = mpi->page;\n  if (iVar3 == 0x3f) {\n    if (mpi->subpage != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  pmVar2 = get_mpage_name_func(mpi);\n  puVar1 = PTR_uint8_t_ARRAY_0003249c;\n  if ((pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0)) {\n    return pmVar2->name;\n  }\n  if (mpi->subpage != 0) {\n    (*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR__MIPS_STUBS__00032584)\n            (PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" primitive_type (pointer_declarator "* get_page_name(mpage_info *mpi)" * (function_declarator "get_page_name(mpage_info *mpi)" identifier (parameter_list "(mpage_info *mpi)" ( (parameter_declaration "mpage_info *mpi" type_identifier (pointer_declarator "*mpi" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  mpage_name_func *pmVar2;\n  int iVar3;\n  \n  iVar3 = mpi->page;\n  if (iVar3 == 0x3f) {\n    if (mpi->subpage != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  pmVar2 = get_mpage_name_func(mpi);\n  puVar1 = PTR_uint8_t_ARRAY_0003249c;\n  if ((pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0)) {\n    return pmVar2->name;\n  }\n  if (mpi->subpage != 0) {\n    (*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR__MIPS_STUBS__00032584)\n            (PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "mpage_name_func *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = mpi->page;" (assignment_expression "iVar3 = mpi->page" identifier = (field_expression "mpi->page" identifier -> field_identifier)) ;) (if_statement "if (iVar3 == 0x3f) {\n    if (mpi->subpage != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" if (parenthesized_expression "(iVar3 == 0x3f)" ( (binary_expression "iVar3 == 0x3f" identifier == number_literal) )) (compound_statement "{\n    if (mpi->subpage != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" { (if_statement "if (mpi->subpage != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" if (parenthesized_expression "(mpi->subpage != 0xff)" ( (binary_expression "mpi->subpage != 0xff" (field_expression "mpi->subpage" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" { (return_statement "return PTR_s_lue_00032498 + -0x18e8;" return (binary_expression "PTR_s_lue_00032498 + -0x18e8" identifier + number_literal) ;) })) (return_statement "return PTR_s_lue_00032498 + -0x190c;" return (binary_expression "PTR_s_lue_00032498 + -0x190c" identifier + number_literal) ;) })) (expression_statement "pmVar2 = get_mpage_name_func(mpi);" (assignment_expression "pmVar2 = get_mpage_name_func(mpi)" identifier = (call_expression "get_mpage_name_func(mpi)" identifier (argument_list "(mpi)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_uint8_t_ARRAY_0003249c;" (assignment_expression "puVar1 = PTR_uint8_t_ARRAY_0003249c" identifier = identifier) ;) (if_statement "if ((pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0)) {\n    return pmVar2->name;\n  }" if (parenthesized_expression "((pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0))" ( (binary_expression "(pmVar2 != (mpage_name_func *)0x0) && (pmVar2->name != (char *)0x0)" (parenthesized_expression "(pmVar2 != (mpage_name_func *)0x0)" ( (binary_expression "pmVar2 != (mpage_name_func *)0x0" identifier != (cast_expression "(mpage_name_func *)0x0" ( (type_descriptor "mpage_name_func *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pmVar2->name != (char *)0x0)" ( (binary_expression "pmVar2->name != (char *)0x0" (field_expression "pmVar2->name" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    return pmVar2->name;\n  }" { (return_statement "return pmVar2->name;" return (field_expression "pmVar2->name" identifier -> field_identifier) ;) })) (if_statement "if (mpi->subpage != 0) {\n    (*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" if (parenthesized_expression "(mpi->subpage != 0)" ( (binary_expression "mpi->subpage != 0" (field_expression "mpi->subpage" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    (*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" { (expression_statement "(*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c);" (call_expression "(*(code *)PTR__MIPS_STUBS__00032584)(PTR_uint8_t_ARRAY_0003249c + -0x5a4c)" (parenthesized_expression "(*(code *)PTR__MIPS_STUBS__00032584)" ( (pointer_expression "*(code *)PTR__MIPS_STUBS__00032584" * (cast_expression "(code *)PTR__MIPS_STUBS__00032584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_uint8_t_ARRAY_0003249c + -0x5a4c)" ( (binary_expression "PTR_uint8_t_ARRAY_0003249c + -0x5a4c" identifier + number_literal) ))) ;) (return_statement "return puVar1 + -0x5a4c;" return (binary_expression "puVar1 + -0x5a4c" identifier + number_literal) ;) })) (expression_statement "(*(code *)PTR__MIPS_STUBS__00032584)\n            (PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);" (call_expression "(*(code *)PTR__MIPS_STUBS__00032584)\n            (PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" (parenthesized_expression "(*(code *)PTR__MIPS_STUBS__00032584)" ( (pointer_expression "*(code *)PTR__MIPS_STUBS__00032584" * (cast_expression "(code *)PTR__MIPS_STUBS__00032584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_uint8_t_ARRAY_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" ( (binary_expression "PTR_uint8_t_ARRAY_0003249c + -0x5a4c" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_s_lue_00032498 + -0x18a8" identifier + number_literal) , identifier ))) ;) (return_statement "return puVar1 + -0x5a4c;" return (binary_expression "puVar1 + -0x5a4c" identifier + number_literal) ;) })))
(translation_unit "undefined * FUN_000156b0(int *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}\n\n" (function_definition "undefined * FUN_000156b0(int *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" type_identifier (pointer_declarator "* FUN_000156b0(int *param_1)" * (function_declarator "FUN_000156b0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" if (parenthesized_expression "(iVar3 == 0x3f)" ( (binary_expression "iVar3 == 0x3f" identifier == number_literal) )) (compound_statement "{\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" { (if_statement "if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" if (parenthesized_expression "(param_1[1] != 0xff)" ( (binary_expression "param_1[1] != 0xff" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" { (return_statement "return PTR_s_lue_00032498 + -0x18e8;" return (binary_expression "PTR_s_lue_00032498 + -0x18e8" identifier + number_literal) ;) })) (return_statement "return PTR_s_lue_00032498 + -0x190c;" return (binary_expression "PTR_s_lue_00032498 + -0x190c" identifier + number_literal) ;) })) (expression_statement "iVar2 = get_mpage_name_func();" (assignment_expression "iVar2 = get_mpage_name_func()" identifier = (call_expression "get_mpage_name_func()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR_DAT_0003249c;" (assignment_expression "puVar1 = PTR_DAT_0003249c" identifier = identifier) ;) (if_statement "if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }" if (parenthesized_expression "((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0))" ( (binary_expression "(iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)" ( (binary_expression "*(undefined **)(iVar2 + 0xc) != (undefined *)0x0" (pointer_expression "*(undefined **)(iVar2 + 0xc)" * (cast_expression "(undefined **)(iVar2 + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    return *(undefined **)(iVar2 + 0xc);\n  }" { (return_statement "return *(undefined **)(iVar2 + 0xc);" return (pointer_expression "*(undefined **)(iVar2 + 0xc)" * (cast_expression "(undefined **)(iVar2 + 0xc)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) ;) })) (if_statement "if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" { (expression_statement "(*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);" (call_expression "(*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00032584)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00032584" * (cast_expression "(code *)PTR___snprintf_chk_00032584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003249c + -0x5a4c)" ( (binary_expression "PTR_DAT_0003249c + -0x5a4c" identifier + number_literal) ))) ;) (return_statement "return puVar1 + -0x5a4c;" return (binary_expression "puVar1 + -0x5a4c" identifier + number_literal) ;) })) (expression_statement "(*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);" (call_expression "(*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00032584)" ( (pointer_expression "*(code *)PTR___snprintf_chk_00032584" * (cast_expression "(code *)PTR___snprintf_chk_00032584" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" ( (binary_expression "PTR_DAT_0003249c + -0x5a4c" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_s_lue_00032498 + -0x18a8" identifier + number_literal) , identifier ))) ;) (return_statement "return puVar1 + -0x5a4c;" return (binary_expression "puVar1 + -0x5a4c" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return (binary_expression IDENT + LIT) ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return (binary_expression IDENT + 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 , LIT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "undefined * FUN_000156b0(int *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_000156b0(int *param_1)" (* "*") (function_declarator "FUN_000156b0(int *param_1)" (identifier "FUN_000156b0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }\n  iVar2 = get_mpage_name_func();\n  puVar1 = PTR_DAT_0003249c;\n  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }\n  if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }\n  (*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);\n  return puVar1 + -0x5a4c;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar3 == 0x3f) {\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0x3f)" (( "(") (binary_expression "iVar3 == 0x3f" (identifier "iVar3") (== "==") (number_literal "0x3f")) () ")")) (compound_statement "{\n    if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }\n    return PTR_s_lue_00032498 + -0x190c;\n  }" ({ "{") (if_statement "if (param_1[1] != 0xff) {\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" (if "if") (parenthesized_expression "(param_1[1] != 0xff)" (( "(") (binary_expression "param_1[1] != 0xff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0xff")) () ")")) (compound_statement "{\n      return PTR_s_lue_00032498 + -0x18e8;\n    }" ({ "{") (return_statement "return PTR_s_lue_00032498 + -0x18e8;" (return "return") (binary_expression "PTR_s_lue_00032498 + -0x18e8" (identifier "PTR_s_lue_00032498") (+ "+") (number_literal "-0x18e8")) (; ";")) (} "}"))) (return_statement "return PTR_s_lue_00032498 + -0x190c;" (return "return") (binary_expression "PTR_s_lue_00032498 + -0x190c" (identifier "PTR_s_lue_00032498") (+ "+") (number_literal "-0x190c")) (; ";")) (} "}"))) (expression_statement "iVar2 = get_mpage_name_func();" (assignment_expression "iVar2 = get_mpage_name_func()" (identifier "iVar2") (= "=") (call_expression "get_mpage_name_func()" (identifier "get_mpage_name_func") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_DAT_0003249c;" (assignment_expression "puVar1 = PTR_DAT_0003249c" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0003249c")) (; ";")) (if_statement "if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {\n    return *(undefined **)(iVar2 + 0xc);\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0))" (( "(") (binary_expression "(iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)" (( "(") (binary_expression "*(undefined **)(iVar2 + 0xc) != (undefined *)0x0" (pointer_expression "*(undefined **)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined **)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    return *(undefined **)(iVar2 + 0xc);\n  }" ({ "{") (return_statement "return *(undefined **)(iVar2 + 0xc);" (return "return") (pointer_expression "*(undefined **)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined **)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_1[1] != 0) {\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);\n    return puVar1 + -0x5a4c;\n  }" ({ "{") (expression_statement "(*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);" (call_expression "(*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00032584)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_00032584" (* "*") (cast_expression "(code *)PTR___snprintf_chk_00032584" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_00032584"))) () ")")) (argument_list "(PTR_DAT_0003249c + -0x5a4c)" (( "(") (binary_expression "PTR_DAT_0003249c + -0x5a4c" (identifier "PTR_DAT_0003249c") (+ "+") (number_literal "-0x5a4c")) () ")"))) (; ";")) (return_statement "return puVar1 + -0x5a4c;" (return "return") (binary_expression "puVar1 + -0x5a4c" (identifier "puVar1") (+ "+") (number_literal "-0x5a4c")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);" (call_expression "(*(code *)PTR___snprintf_chk_00032584)\n            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_00032584)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_00032584" (* "*") (cast_expression "(code *)PTR___snprintf_chk_00032584" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_00032584"))) () ")")) (argument_list "(PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3)" (( "(") (binary_expression "PTR_DAT_0003249c + -0x5a4c" (identifier "PTR_DAT_0003249c") (+ "+") (number_literal "-0x5a4c")) (, ",") (number_literal "0x40") (, ",") (number_literal "1") (, ",") (number_literal "0x40") (, ",") (binary_expression "PTR_s_lue_00032498 + -0x18a8" (identifier "PTR_s_lue_00032498") (+ "+") (number_literal "-0x18a8")) (, ",") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return puVar1 + -0x5a4c;" (return "return") (binary_expression "puVar1 + -0x5a4c" (identifier "puVar1") (+ "+") (number_literal "-0x5a4c")) (; ";")) (} "}")))

char * function_1(type_1 *mpi)

{
  type_2 *var_6;
  type_3 *var_4;
  int var_1;
  
  var_1 = mpi->page;
  if (var_1 == 0x3f) {
    if (mpi->subpage != 0xff) {
      return var_2 + -0x18e8;
    }
    return var_2 + -0x190c;
  }
  var_4 = var_3(mpi);
  var_6 = var_5;
  if ((var_4 != (type_3 *)0x0) && (var_4->name != (char *)0x0)) {
    return var_4->name;
  }
  if (mpi->subpage != 0) {
    (*(type_4 *)PTR__MIPS_STUBS__00032584)(var_5 + -0x5a4c);
    return var_6 + -0x5a4c;
  }
  (*(type_4 *)PTR__MIPS_STUBS__00032584)
            (var_5 + -0x5a4c,0x40,1,0x40,var_2 + -0x18a8,var_1);
  return var_6 + -0x5a4c;
}


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

undefined * MASKED(int *param_1)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *param_1;
  if (iVar3 == 0x3f) {
    if (param_1[1] != 0xff) {
      return PTR_s_lue_00032498 + -0x18e8;
    }
    return PTR_s_lue_00032498 + -0x190c;
  }
  iVar2 = get_mpage_name_func();
  puVar1 = PTR_DAT_0003249c;
  if ((iVar2 != 0) && (*(undefined **)(iVar2 + 0xc) != (undefined *)0x0)) {
    return *(undefined **)(iVar2 + 0xc);
  }
  if (param_1[1] != 0) {
    (*(code *)PTR___snprintf_chk_00032584)(PTR_DAT_0003249c + -0x5a4c);
    return puVar1 + -0x5a4c;
  }
  (*(code *)PTR___snprintf_chk_00032584)
            (PTR_DAT_0003249c + -0x5a4c,0x40,1,0x40,PTR_s_lue_00032498 + -0x18a8,iVar3);
  return puVar1 + -0x5a4c;
}

