
char * proper_name(char *name)

{
  undefined3 extraout_var;
  char *string;
  _Bool _Var4;
  int iVar1;
  int iVar2;
  char *pcVar3;
  
  string = (char *)(*(code *)PTR_dcgettext_00030290)(0,name,5);
  if (name != string) {
    _Var4 = mbsstr_trimmed_wordbounded(string,name);
    if (CONCAT31(extraout_var,_Var4) == 0) {
      iVar1 = (*(code *)PTR_strlen_0003023c)(string);
      iVar2 = (*(code *)PTR_strlen_0003023c)(name);
      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);
      (*(code *)PTR___sprintf_chk_000301b4)
                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);
      return pcVar3;
    }
  }
  return string;
}



int proper_name(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);
  if (param_1 != iVar1) {
    iVar2 = FUN_000147ec(iVar1,param_1);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);
      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);
      iVar2 = xmalloc(iVar2 + iVar3 + 4);
      (*(code *)PTR___sprintf_chk_000301b4)
                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);
      return iVar2;
    }
  }
  return iVar1;
}


lui gp,0x2
addiu gp,gp,0x2eb0
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7e10(gp)
li a2,0x5
sw s1,0x24(sp)
or s1,a0,zero
or a0,zero,zero
sw gp,0x18(sp)
sw s0,0x20(sp)
or a1,s1,zero
sw ra,0x2c(sp)
jalr t9
_sw s2,0x28(sp)
lw gp,0x18(sp)
beq s1,v0,0x00015254
_or s0,v0,zero
lw t9,-0x7fcc(gp)
or a1,s1,zero
addiu t9,t9,0x47ec
bal 0x000147ec
_or a0,v0,zero
beq v0,zero,0x00015270
_lw gp,0x18(sp)
lw ra,0x2c(sp)
or v0,s0,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7e64(gp)
jalr t9
_or a0,s0,zero
or a0,s1,zero
lw gp,0x18(sp)
lw t9,-0x7e64(gp)
jalr t9
_or s2,v0,zero
lw gp,0x18(sp)
addu v0,s2,v0
lw t9,-0x7fc0(gp)
bal 0x000165a0
_addiu a0,v0,0x4
li a2,-0x1
lw gp,0x18(sp)
li a1,0x1
sw s0,0x10(sp)
or a0,v0,zero
sw s1,0x14(sp)
or s2,v0,zero
or s0,s2,zero
lw a3,-0x7fc8(gp)
lw t9,-0x7eec(gp)
jalr t9
_addiu a3,a3,-0x1984
or v0,s0,zero
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int proper_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int proper_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "proper_name(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);" (assignment_expression "iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00030290)(0,param_1,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00030290)" ( (pointer_expression "*(code *)PTR_dcgettext_00030290" * (cast_expression "(code *)PTR_dcgettext_00030290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,param_1,5)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) (compound_statement "{\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }" { (expression_statement "iVar2 = FUN_000147ec(iVar1,param_1);" (assignment_expression "iVar2 = FUN_000147ec(iVar1,param_1)" identifier = (call_expression "FUN_000147ec(iVar1,param_1)" identifier (argument_list "(iVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0003023c)(iVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" ( (pointer_expression "*(code *)PTR_strlen_0003023c" * (cast_expression "(code *)PTR_strlen_0003023c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0003023c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0003023c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" ( (pointer_expression "*(code *)PTR_strlen_0003023c" * (cast_expression "(code *)PTR_strlen_0003023c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = xmalloc(iVar2 + iVar3 + 4);" (assignment_expression "iVar2 = xmalloc(iVar2 + iVar3 + 4)" identifier = (call_expression "xmalloc(iVar2 + iVar3 + 4)" identifier (argument_list "(iVar2 + iVar3 + 4)" ( (binary_expression "iVar2 + iVar3 + 4" (binary_expression "iVar2 + iVar3" identifier + identifier) + number_literal) )))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);" (call_expression "(*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000301b4)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000301b4" * (cast_expression "(code *)PTR___sprintf_chk_000301b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1)" ( identifier , number_literal , number_literal , (binary_expression "PTR_DAT_000300d8 + -0x1984" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "char * proper_name(char *name)\n\n{\n  undefined3 extraout_var;\n  char *string;\n  _Bool _Var4;\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  string = (char *)(*(code *)PTR_dcgettext_00030290)(0,name,5);\n  if (name != string) {\n    _Var4 = mbsstr_trimmed_wordbounded(string,name);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }\n  }\n  return string;\n}\n\n" (function_definition "char * proper_name(char *name)\n\n{\n  undefined3 extraout_var;\n  char *string;\n  _Bool _Var4;\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  string = (char *)(*(code *)PTR_dcgettext_00030290)(0,name,5);\n  if (name != string) {\n    _Var4 = mbsstr_trimmed_wordbounded(string,name);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }\n  }\n  return string;\n}" primitive_type (pointer_declarator "* proper_name(char *name)" * (function_declarator "proper_name(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  undefined3 extraout_var;\n  char *string;\n  _Bool _Var4;\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  string = (char *)(*(code *)PTR_dcgettext_00030290)(0,name,5);\n  if (name != string) {\n    _Var4 = mbsstr_trimmed_wordbounded(string,name);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }\n  }\n  return string;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "string = (char *)(*(code *)PTR_dcgettext_00030290)(0,name,5);" (assignment_expression "string = (char *)(*(code *)PTR_dcgettext_00030290)(0,name,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_00030290)(0,name,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_00030290)(0,name,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00030290)" ( (pointer_expression "*(code *)PTR_dcgettext_00030290" * (cast_expression "(code *)PTR_dcgettext_00030290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,name,5)" ( number_literal , identifier , number_literal ))))) ;) (if_statement "if (name != string) {\n    _Var4 = mbsstr_trimmed_wordbounded(string,name);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }\n  }" if (parenthesized_expression "(name != string)" ( (binary_expression "name != string" identifier != identifier) )) (compound_statement "{\n    _Var4 = mbsstr_trimmed_wordbounded(string,name);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }\n  }" { (expression_statement "_Var4 = mbsstr_trimmed_wordbounded(string,name);" (assignment_expression "_Var4 = mbsstr_trimmed_wordbounded(string,name)" identifier = (call_expression "mbsstr_trimmed_wordbounded(string,name)" identifier (argument_list "(string,name)" ( identifier , identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var4) == 0) {\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var4) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var4) == 0" (call_expression "CONCAT31(extraout_var,_Var4)" identifier (argument_list "(extraout_var,_Var4)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_strlen_0003023c)(string);\n      iVar2 = (*(code *)PTR_strlen_0003023c)(name);\n      pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);\n      return pcVar3;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0003023c)(string);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003023c)(string)" identifier = (call_expression "(*(code *)PTR_strlen_0003023c)(string)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" ( (pointer_expression "*(code *)PTR_strlen_0003023c" * (cast_expression "(code *)PTR_strlen_0003023c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string)" ( identifier )))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0003023c)(name);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003023c)(name)" identifier = (call_expression "(*(code *)PTR_strlen_0003023c)(name)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" ( (pointer_expression "*(code *)PTR_strlen_0003023c" * (cast_expression "(code *)PTR_strlen_0003023c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar1 + iVar2 + 4)" identifier = (cast_expression "(char *)xmalloc(iVar1 + iVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar1 + iVar2 + 4)" identifier (argument_list "(iVar1 + iVar2 + 4)" ( (binary_expression "iVar1 + iVar2 + 4" (binary_expression "iVar1 + iVar2" identifier + identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name);" (call_expression "(*(code *)PTR___sprintf_chk_000301b4)\n                (pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000301b4)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000301b4" * (cast_expression "(code *)PTR___sprintf_chk_000301b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,string,name)" ( identifier , number_literal , number_literal , (binary_expression "PTR_DAT_000300d8 + -0x1984" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })) })) (return_statement "return string;" return identifier ;) })))
(translation_unit "int proper_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int proper_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "proper_name(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);" (assignment_expression "iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00030290)(0,param_1,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00030290)" ( (pointer_expression "*(code *)PTR_dcgettext_00030290" * (cast_expression "(code *)PTR_dcgettext_00030290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,param_1,5)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) (compound_statement "{\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }" { (expression_statement "iVar2 = FUN_000147ec(iVar1,param_1);" (assignment_expression "iVar2 = FUN_000147ec(iVar1,param_1)" identifier = (call_expression "FUN_000147ec(iVar1,param_1)" identifier (argument_list "(iVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0003023c)(iVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" ( (pointer_expression "*(code *)PTR_strlen_0003023c" * (cast_expression "(code *)PTR_strlen_0003023c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0003023c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0003023c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" ( (pointer_expression "*(code *)PTR_strlen_0003023c" * (cast_expression "(code *)PTR_strlen_0003023c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = xmalloc(iVar2 + iVar3 + 4);" (assignment_expression "iVar2 = xmalloc(iVar2 + iVar3 + 4)" identifier = (call_expression "xmalloc(iVar2 + iVar3 + 4)" identifier (argument_list "(iVar2 + iVar3 + 4)" ( (binary_expression "iVar2 + iVar3 + 4" (binary_expression "iVar2 + iVar3" identifier + identifier) + number_literal) )))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);" (call_expression "(*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000301b4)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000301b4" * (cast_expression "(code *)PTR___sprintf_chk_000301b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1)" ( identifier , number_literal , number_literal , (binary_expression "PTR_DAT_000300d8 + -0x1984" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int proper_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "proper_name(int param_1)" (identifier "proper_name") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);\n  if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);" (assignment_expression "iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_dcgettext_00030290)(0,param_1,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00030290)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00030290" (* "*") (cast_expression "(code *)PTR_dcgettext_00030290" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00030290"))) () ")")) (argument_list "(0,param_1,5)" (( "(") (number_literal "0") (, ",") (identifier "param_1") (, ",") (number_literal "5") () ")")))) (; ";")) (if_statement "if (param_1 != iVar1) {\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != iVar1)" (( "(") (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n    iVar2 = FUN_000147ec(iVar1,param_1);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_000147ec(iVar1,param_1);" (assignment_expression "iVar2 = FUN_000147ec(iVar1,param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_000147ec(iVar1,param_1)" (identifier "FUN_000147ec") (argument_list "(iVar1,param_1)" (( "(") (identifier "iVar1") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);\n      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);\n      iVar2 = xmalloc(iVar2 + iVar3 + 4);\n      (*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);\n      return iVar2;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0003023c)(iVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0003023c" (* "*") (cast_expression "(code *)PTR_strlen_0003023c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0003023c"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0003023c)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0003023c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0003023c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0003023c" (* "*") (cast_expression "(code *)PTR_strlen_0003023c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0003023c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar2 = xmalloc(iVar2 + iVar3 + 4);" (assignment_expression "iVar2 = xmalloc(iVar2 + iVar3 + 4)" (identifier "iVar2") (= "=") (call_expression "xmalloc(iVar2 + iVar3 + 4)" (identifier "xmalloc") (argument_list "(iVar2 + iVar3 + 4)" (( "(") (binary_expression "iVar2 + iVar3 + 4" (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);" (call_expression "(*(code *)PTR___sprintf_chk_000301b4)\n                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000301b4)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_000301b4" (* "*") (cast_expression "(code *)PTR___sprintf_chk_000301b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_000301b4"))) () ")")) (argument_list "(iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1)" (( "(") (identifier "iVar2") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_DAT_000300d8 + -0x1984" (identifier "PTR_DAT_000300d8") (+ "+") (number_literal "-0x1984")) (, ",") (identifier "iVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

char * function_1(char *var_1)

{
  type_1 extraout_var;
  char *var_2;
  type_2 _Var4;
  int var_6;
  int var_7;
  char *pcVar3;
  
  var_2 = (char *)(*(type_3 *)PTR_dcgettext_00030290)(0,var_1,5);
  if (var_1 != var_2) {
    _Var4 = var_3(var_2,var_1);
    if (var_4(extraout_var,_Var4) == 0) {
      var_6 = (*(type_3 *)PTR_strlen_0003023c)(var_2);
      var_7 = (*(type_3 *)PTR_strlen_0003023c)(var_1);
      pcVar3 = (char *)var_5(var_6 + var_7 + 4);
      (*(type_3 *)PTR___sprintf_chk_000301b4)
                (pcVar3,1,0xffffffff,var_8 + -0x1984,var_2,var_1);
      return pcVar3;
    }
  }
  return var_2;
}


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

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = (*(code *)PTR_dcgettext_00030290)(0,param_1,5);
  if (param_1 != iVar1) {
    iVar2 = FUN_000147ec(iVar1,param_1);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_strlen_0003023c)(iVar1);
      iVar3 = (*(code *)PTR_strlen_0003023c)(param_1);
      iVar2 = xmalloc(iVar2 + iVar3 + 4);
      (*(code *)PTR___sprintf_chk_000301b4)
                (iVar2,1,0xffffffff,PTR_DAT_000300d8 + -0x1984,iVar1,param_1);
      return iVar2;
    }
  }
  return iVar1;
}

