
/* WARNING: Unknown calling convention */

char * xstrdup(char *s)

{
  int iVar1;
  char *pcVar2;
  
  if (s != (char *)0x0) {
    iVar1 = (*(code *)PTR_strlen_004b22a0)();
    pcVar2 = (char *)xmemdup(s,iVar1 + 1);
    pcVar2[iVar1] = '\0';
    return pcVar2;
  }
  pcVar2 = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);
  r_fatal(pcVar2);
  pcVar2 = (char *)xcalloc(1,(size_t)pcVar2);
  return pcVar2;
}



void FUN_0047b64c(int param_1)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (param_1 != 0) {
    iVar1 = (*(code *)PTR_strlen_004b22a0)();
    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);
    *(undefined1 *)(iVar2 + iVar1) = 0;
    return;
  }
  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);
  r_fatal(uVar3);
  FUN_00475a30(1,uVar3);
  return;
}


lui gp,0x4c
addiu sp,sp,-0x20
addiu gp,gp,-0x64e0
sw ra,0x1c(sp)
sw s0,0x18(sp)
beq a0,zero,0x0047b69c
_sw gp,0x10(sp)
lw t9,-0x7880(gp)
jalr t9
_or s0,a0,zero
or a0,s0,zero
addiu a1,v0,0x1
jal 0x0047b5f8
_or s0,v0,zero
addu s0,v0,s0
sb zero,0x0(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lui a1,0x4a
lw t9,-0x77c4(gp)
li a2,0x5
jalr t9
_addiu a1,a1,-0x1708
lw gp,0x10(sp)
lw t9,-0x7fb0(gp)
bal 0x004675e4
_or a0,v0,zero
or a1,a0,zero
j 0x00475a30
_li a0,0x1
(translation_unit "void FUN_0047b64c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}\n\n" (function_definition "void FUN_0047b64c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}" primitive_type (function_declarator "FUN_0047b64c(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  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_004b22a0)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_004b22a0)()" identifier = (call_expression "(*(code *)PTR_strlen_004b22a0)()" (parenthesized_expression "(*(code *)PTR_strlen_004b22a0)" ( (pointer_expression "*(code *)PTR_strlen_004b22a0" * (cast_expression "(code *)PTR_strlen_004b22a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);" (assignment_expression "iVar2 = FUN_0047b5f8(param_1,iVar1 + 1)" identifier = (call_expression "FUN_0047b5f8(param_1,iVar1 + 1)" identifier (argument_list "(param_1,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(iVar2 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + iVar1) = 0" (pointer_expression "*(undefined1 *)(iVar2 + iVar1)" * (cast_expression "(undefined1 *)(iVar2 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"xstrdup: null parameter",5)" ( number_literal , (string_literal ""xstrdup: null parameter"" " string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar3);" (call_expression "r_fatal(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "FUN_00475a30(1,uVar3);" (call_expression "FUN_00475a30(1,uVar3)" identifier (argument_list "(1,uVar3)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * xstrdup(char *s)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (s != (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    pcVar2 = (char *)xmemdup(s,iVar1 + 1);\n    pcVar2[iVar1] = '\0';\n    return pcVar2;\n  }\n  pcVar2 = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(pcVar2);\n  pcVar2 = (char *)xcalloc(1,(size_t)pcVar2);\n  return pcVar2;\n}\n\n" comment (function_definition "char * xstrdup(char *s)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (s != (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    pcVar2 = (char *)xmemdup(s,iVar1 + 1);\n    pcVar2[iVar1] = '\0';\n    return pcVar2;\n  }\n  pcVar2 = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(pcVar2);\n  pcVar2 = (char *)xcalloc(1,(size_t)pcVar2);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* xstrdup(char *s)" * (function_declarator "xstrdup(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (s != (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    pcVar2 = (char *)xmemdup(s,iVar1 + 1);\n    pcVar2[iVar1] = '\0';\n    return pcVar2;\n  }\n  pcVar2 = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(pcVar2);\n  pcVar2 = (char *)xcalloc(1,(size_t)pcVar2);\n  return pcVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (s != (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    pcVar2 = (char *)xmemdup(s,iVar1 + 1);\n    pcVar2[iVar1] = '\0';\n    return pcVar2;\n  }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    pcVar2 = (char *)xmemdup(s,iVar1 + 1);\n    pcVar2[iVar1] = '\0';\n    return pcVar2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_004b22a0)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_004b22a0)()" identifier = (call_expression "(*(code *)PTR_strlen_004b22a0)()" (parenthesized_expression "(*(code *)PTR_strlen_004b22a0)" ( (pointer_expression "*(code *)PTR_strlen_004b22a0" * (cast_expression "(code *)PTR_strlen_004b22a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = (char *)xmemdup(s,iVar1 + 1);" (assignment_expression "pcVar2 = (char *)xmemdup(s,iVar1 + 1)" identifier = (cast_expression "(char *)xmemdup(s,iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmemdup(s,iVar1 + 1)" identifier (argument_list "(s,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar2[iVar1] = '\0';" (assignment_expression "pcVar2[iVar1] = '\0'" (subscript_expression "pcVar2[iVar1]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar2 = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"xstrdup: null parameter",5)" ( number_literal , (string_literal ""xstrdup: null parameter"" " string_content ") , number_literal ))))) ;) (expression_statement "r_fatal(pcVar2);" (call_expression "r_fatal(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = (char *)xcalloc(1,(size_t)pcVar2);" (assignment_expression "pcVar2 = (char *)xcalloc(1,(size_t)pcVar2)" identifier = (cast_expression "(char *)xcalloc(1,(size_t)pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,(size_t)pcVar2)" identifier (argument_list "(1,(size_t)pcVar2)" ( number_literal , (cast_expression "(size_t)pcVar2" ( (type_descriptor "size_t" primitive_type) ) identifier) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void FUN_0047b64c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}\n\n" (function_definition "void FUN_0047b64c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}" primitive_type (function_declarator "FUN_0047b64c(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  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_004b22a0)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_004b22a0)()" identifier = (call_expression "(*(code *)PTR_strlen_004b22a0)()" (parenthesized_expression "(*(code *)PTR_strlen_004b22a0)" ( (pointer_expression "*(code *)PTR_strlen_004b22a0" * (cast_expression "(code *)PTR_strlen_004b22a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);" (assignment_expression "iVar2 = FUN_0047b5f8(param_1,iVar1 + 1)" identifier = (call_expression "FUN_0047b5f8(param_1,iVar1 + 1)" identifier (argument_list "(param_1,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(iVar2 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + iVar1) = 0" (pointer_expression "*(undefined1 *)(iVar2 + iVar1)" * (cast_expression "(undefined1 *)(iVar2 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"xstrdup: null parameter",5)" ( number_literal , (string_literal ""xstrdup: null parameter"" " string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar3);" (call_expression "r_fatal(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "FUN_00475a30(1,uVar3);" (call_expression "FUN_00475a30(1,uVar3)" identifier (argument_list "(1,uVar3)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(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 ;) (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 ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0047b64c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0047b64c(int param_1)" (identifier "FUN_0047b64c") (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  undefined4 uVar3;\n  \n  if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);\n  r_fatal(uVar3);\n  FUN_00475a30(1,uVar3);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (param_1 != 0) {\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_004b22a0)();\n    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);\n    *(undefined1 *)(iVar2 + iVar1) = 0;\n    return;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_004b22a0)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_004b22a0)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_004b22a0)()" (parenthesized_expression "(*(code *)PTR_strlen_004b22a0)" (( "(") (pointer_expression "*(code *)PTR_strlen_004b22a0" (* "*") (cast_expression "(code *)PTR_strlen_004b22a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_004b22a0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);" (assignment_expression "iVar2 = FUN_0047b5f8(param_1,iVar1 + 1)" (identifier "iVar2") (= "=") (call_expression "FUN_0047b5f8(param_1,iVar1 + 1)" (identifier "FUN_0047b5f8") (argument_list "(param_1,iVar1 + 1)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + iVar1) = 0" (pointer_expression "*(undefined1 *)(iVar2 + iVar1)" (* "*") (cast_expression "(undefined1 *)(iVar2 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar1)" (( "(") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004b235c" (* "*") (cast_expression "(code *)PTR_dcgettext_004b235c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004b235c"))) () ")")) (argument_list "(0,"xstrdup: null parameter",5)" (( "(") (number_literal "0") (, ",") (string_literal ""xstrdup: null parameter"" (" """) (string_content "xstrdup: null parameter") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "r_fatal(uVar3);" (call_expression "r_fatal(uVar3)" (identifier "r_fatal") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_00475a30(1,uVar3);" (call_expression "FUN_00475a30(1,uVar3)" (identifier "FUN_00475a30") (argument_list "(1,uVar3)" (( "(") (number_literal "1") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(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: (type_identifier) declarator: (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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (return_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) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (param_1 != 0) {
    iVar1 = (*(code *)PTR_strlen_004b22a0)();
    iVar2 = FUN_0047b5f8(param_1,iVar1 + 1);
    *(undefined1 *)(iVar2 + iVar1) = 0;
    return;
  }
  uVar3 = (*(code *)PTR_dcgettext_004b235c)(0,"xstrdup: null parameter",5);
  r_fatal(uVar3);
  FUN_00475a30(1,uVar3);
  return;
}

