
char * fcomplete(char *s)

{
  int iVar1;
  char *filename;
  char *str;
  char *pcVar2;
  char *pcVar3;
  
  if (*(int *)PTR_secure_0004ec48 == 0) {
    iVar1 = (*(code *)PTR_strlen_0004f30c)();
    filename = (char *)ecalloc(iVar1 + 2,1);
    (*(code *)PTR___snprintf_chk_0004f3a8)
              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);
    str = lglob(filename);
    pcVar2 = shell_unquote(str);
    iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);
    pcVar3 = str;
    if (iVar1 == 0) {
      pcVar3 = (char *)0x0;
      (*(code *)PTR_free_0004f37c)(str);
    }
    (*(code *)PTR_free_0004f37c)(pcVar2);
    (*(code *)PTR_free_0004f37c)(filename);
    return pcVar3;
  }
  return (char *)0x0;
}



undefined4 fcomplete(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  
  if (*(int *)PTR_secure_0004ec48 == 0) {
    iVar1 = (*(code *)PTR_strlen_0004f30c)();
    uVar2 = ecalloc(iVar1 + 2,1);
    (*(code *)PTR___snprintf_chk_0004f3a8)
              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);
    uVar3 = lglob(uVar2);
    uVar4 = shell_unquote(uVar3);
    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);
    uVar5 = uVar3;
    if (iVar1 == 0) {
      uVar5 = 0;
      (*(code *)PTR_free_0004f37c)(uVar3);
    }
    (*(code *)PTR_free_0004f37c)(uVar4);
    (*(code *)PTR_free_0004f37c)(uVar2);
    return uVar5;
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,0x2dcc
addu gp,gp,t9
lw v1,-0x7f88(gp)
addiu sp,sp,-0x30
sw gp,0x18(sp)
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
lw v1,0x0(v1)
bne v1,zero,0x00023f1c
_lw t9,-0x78c4(gp)
jalr t9
_or s1,a0,zero
li a1,0x1
lw gp,0x18(sp)
addiu s2,v0,0x2
lw t9,-0x7f94(gp)
bal 0x00015a8c
_or a0,s2,zero
li a3,-0x1
lw gp,0x18(sp)
or s0,v0,zero
or a0,v0,zero
sw s1,0x14(sp)
li a2,0x1
or a1,s2,zero
lw v0,-0x7fc8(gp)
lw t9,-0x7828(gp)
addiu v0,v0,0x7d58
jalr t9
_sw v0,0x10(sp)
lw gp,0x18(sp)
lw t9,-0x7b74(gp)
bal 0x00023a70
_or a0,s0,zero
lw gp,0x18(sp)
or a0,v0,zero
lw t9,-0x7bf8(gp)
bal 0x00022ec8
_or s1,v0,zero
or a1,s0,zero
lw gp,0x18(sp)
or a0,v0,zero
lw t9,-0x7834(gp)
jalr t9
_or s2,v0,zero
beq v0,zero,0x00023f04
_lw gp,0x18(sp)
lw t9,-0x7854(gp)
jalr t9
_or a0,s2,zero
lw gp,0x18(sp)
lw t9,-0x7854(gp)
jalr t9
_or a0,s0,zero
or v0,s1,zero
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7854(gp)
or a0,s1,zero
jalr t9
_or s1,zero,zero
b 0x00023ecc
_lw gp,0x18(sp)
lw ra,0x2c(sp)
or s1,zero,zero
lw s2,0x28(sp)
or v0,s1,zero
lw s0,0x20(sp)
lw s1,0x24(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined4 fcomplete(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 fcomplete(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}" type_identifier (function_declarator "fcomplete(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }" if (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" ( (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" * (cast_expression "(int *)PTR_secure_0004ec48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0004f30c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004f30c)()" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)()" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = ecalloc(iVar1 + 2,1);" (assignment_expression "uVar2 = ecalloc(iVar1 + 2,1)" identifier = (call_expression "ecalloc(iVar1 + 2,1)" identifier (argument_list "(iVar1 + 2,1)" ( (binary_expression "iVar1 + 2" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1)" ( identifier , (binary_expression "iVar1 + 2" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7d58" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar3 = lglob(uVar2);" (assignment_expression "uVar3 = lglob(uVar2)" identifier = (call_expression "lglob(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar4 = shell_unquote(uVar3);" (assignment_expression "uVar4 = shell_unquote(uVar3)" identifier = (call_expression "shell_unquote(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2)" identifier = (call_expression "(*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_0004f39c)" ( (pointer_expression "*(code *)PTR_strcmp_0004f39c" * (cast_expression "(code *)PTR_strcmp_0004f39c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,uVar2)" ( identifier , identifier )))) ;) (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar4);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * fcomplete(char *s)\n\n{\n  int iVar1;\n  char *filename;\n  char *str;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    filename = (char *)ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);\n    str = lglob(filename);\n    pcVar2 = shell_unquote(str);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);\n    pcVar3 = str;\n    if (iVar1 == 0) {\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar2);\n    (*(code *)PTR_free_0004f37c)(filename);\n    return pcVar3;\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * fcomplete(char *s)\n\n{\n  int iVar1;\n  char *filename;\n  char *str;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    filename = (char *)ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);\n    str = lglob(filename);\n    pcVar2 = shell_unquote(str);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);\n    pcVar3 = str;\n    if (iVar1 == 0) {\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar2);\n    (*(code *)PTR_free_0004f37c)(filename);\n    return pcVar3;\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* fcomplete(char *s)" * (function_declarator "fcomplete(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *filename;\n  char *str;\n  char *pcVar2;\n  char *pcVar3;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    filename = (char *)ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);\n    str = lglob(filename);\n    pcVar2 = shell_unquote(str);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);\n    pcVar3 = str;\n    if (iVar1 == 0) {\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar2);\n    (*(code *)PTR_free_0004f37c)(filename);\n    return pcVar3;\n  }\n  return (char *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *filename;" primitive_type (pointer_declarator "*filename" * identifier) ;) (declaration "char *str;" primitive_type (pointer_declarator "*str" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    filename = (char *)ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);\n    str = lglob(filename);\n    pcVar2 = shell_unquote(str);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);\n    pcVar3 = str;\n    if (iVar1 == 0) {\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar2);\n    (*(code *)PTR_free_0004f37c)(filename);\n    return pcVar3;\n  }" if (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" ( (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" * (cast_expression "(int *)PTR_secure_0004ec48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    filename = (char *)ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);\n    str = lglob(filename);\n    pcVar2 = shell_unquote(str);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);\n    pcVar3 = str;\n    if (iVar1 == 0) {\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }\n    (*(code *)PTR_free_0004f37c)(pcVar2);\n    (*(code *)PTR_free_0004f37c)(filename);\n    return pcVar3;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0004f30c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004f30c)()" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)()" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "filename = (char *)ecalloc(iVar1 + 2,1);" (assignment_expression "filename = (char *)ecalloc(iVar1 + 2,1)" identifier = (cast_expression "(char *)ecalloc(iVar1 + 2,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "ecalloc(iVar1 + 2,1)" identifier (argument_list "(iVar1 + 2,1)" ( (binary_expression "iVar1 + 2" identifier + number_literal) , number_literal ))))) ;) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,s)" ( identifier , (binary_expression "iVar1 + 2" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7d58" identifier + number_literal) , identifier ))) ;) (expression_statement "str = lglob(filename);" (assignment_expression "str = lglob(filename)" identifier = (call_expression "lglob(filename)" identifier (argument_list "(filename)" ( identifier )))) ;) (expression_statement "pcVar2 = shell_unquote(str);" (assignment_expression "pcVar2 = shell_unquote(str)" identifier = (call_expression "shell_unquote(str)" identifier (argument_list "(str)" ( identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0004f39c)(pcVar2,filename)" identifier = (call_expression "(*(code *)PTR_strcmp_0004f39c)(pcVar2,filename)" (parenthesized_expression "(*(code *)PTR_strcmp_0004f39c)" ( (pointer_expression "*(code *)PTR_strcmp_0004f39c" * (cast_expression "(code *)PTR_strcmp_0004f39c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,filename)" ( identifier , identifier )))) ;) (expression_statement "pcVar3 = str;" (assignment_expression "pcVar3 = str" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = (char *)0x0;\n      (*(code *)PTR_free_0004f37c)(str);\n    }" { (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(str);" (call_expression "(*(code *)PTR_free_0004f37c)(str)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(str)" ( identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0004f37c)(pcVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(filename);" (call_expression "(*(code *)PTR_free_0004f37c)(filename)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(filename)" ( identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 fcomplete(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 fcomplete(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}" type_identifier (function_declarator "fcomplete(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }" if (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" ( (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" * (cast_expression "(int *)PTR_secure_0004ec48" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0004f30c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004f30c)()" identifier = (call_expression "(*(code *)PTR_strlen_0004f30c)()" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" ( (pointer_expression "*(code *)PTR_strlen_0004f30c" * (cast_expression "(code *)PTR_strlen_0004f30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = ecalloc(iVar1 + 2,1);" (assignment_expression "uVar2 = ecalloc(iVar1 + 2,1)" identifier = (call_expression "ecalloc(iVar1 + 2,1)" identifier (argument_list "(iVar1 + 2,1)" ( (binary_expression "iVar1 + 2" identifier + number_literal) , number_literal )))) ;) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1)" ( identifier , (binary_expression "iVar1 + 2" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7d58" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar3 = lglob(uVar2);" (assignment_expression "uVar3 = lglob(uVar2)" identifier = (call_expression "lglob(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar4 = shell_unquote(uVar3);" (assignment_expression "uVar4 = shell_unquote(uVar3)" identifier = (call_expression "shell_unquote(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2)" identifier = (call_expression "(*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_0004f39c)" ( (pointer_expression "*(code *)PTR_strcmp_0004f39c" * (cast_expression "(code *)PTR_strcmp_0004f39c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,uVar2)" ( identifier , identifier )))) ;) (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar4);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" ( (pointer_expression "*(code *)PTR_free_0004f37c" * (cast_expression "(code *)PTR_free_0004f37c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression 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 , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 fcomplete(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "fcomplete(undefined4 param_1)" (identifier "fcomplete") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (if_statement "if (*(int *)PTR_secure_0004ec48 == 0) {\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_secure_0004ec48 == 0)" (( "(") (binary_expression "*(int *)PTR_secure_0004ec48 == 0" (pointer_expression "*(int *)PTR_secure_0004ec48" (* "*") (cast_expression "(int *)PTR_secure_0004ec48" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_secure_0004ec48"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004f30c)();\n    uVar2 = ecalloc(iVar1 + 2,1);\n    (*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);\n    uVar3 = lglob(uVar2);\n    uVar4 = shell_unquote(uVar3);\n    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);\n    uVar5 = uVar3;\n    if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }\n    (*(code *)PTR_free_0004f37c)(uVar4);\n    (*(code *)PTR_free_0004f37c)(uVar2);\n    return uVar5;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_0004f30c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004f30c)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0004f30c)()" (parenthesized_expression "(*(code *)PTR_strlen_0004f30c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004f30c" (* "*") (cast_expression "(code *)PTR_strlen_0004f30c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004f30c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = ecalloc(iVar1 + 2,1);" (assignment_expression "uVar2 = ecalloc(iVar1 + 2,1)" (identifier "uVar2") (= "=") (call_expression "ecalloc(iVar1 + 2,1)" (identifier "ecalloc") (argument_list "(iVar1 + 2,1)" (( "(") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" (* "*") (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_0004f3a8"))) () ")")) (argument_list "(uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1)" (( "(") (identifier "uVar2") (, ",") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_LAB_0004ec08 + 0x7d58" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "0x7d58")) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar3 = lglob(uVar2);" (assignment_expression "uVar3 = lglob(uVar2)" (identifier "uVar3") (= "=") (call_expression "lglob(uVar2)" (identifier "lglob") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar4 = shell_unquote(uVar3);" (assignment_expression "uVar4 = shell_unquote(uVar3)" (identifier "uVar4") (= "=") (call_expression "shell_unquote(uVar3)" (identifier "shell_unquote") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2)" (parenthesized_expression "(*(code *)PTR_strcmp_0004f39c)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0004f39c" (* "*") (cast_expression "(code *)PTR_strcmp_0004f39c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0004f39c"))) () ")")) (argument_list "(uVar4,uVar2)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" (identifier "uVar5") (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 0;\n      (*(code *)PTR_free_0004f37c)(uVar3);\n    }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar3);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar3)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" (( "(") (pointer_expression "*(code *)PTR_free_0004f37c" (* "*") (cast_expression "(code *)PTR_free_0004f37c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004f37c"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar4);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" (( "(") (pointer_expression "*(code *)PTR_free_0004f37c" (* "*") (cast_expression "(code *)PTR_free_0004f37c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004f37c"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0004f37c)(uVar2);" (call_expression "(*(code *)PTR_free_0004f37c)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004f37c)" (( "(") (pointer_expression "*(code *)PTR_free_0004f37c" (* "*") (cast_expression "(code *)PTR_free_0004f37c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004f37c"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

char * function_1(char *s)

{
  int var_2;
  char *filename;
  char *str;
  char *pcVar2;
  char *pcVar3;
  
  if (*(int *)PTR_secure_0004ec48 == 0) {
    var_2 = (*(type_1 *)PTR_strlen_0004f30c)();
    filename = (char *)var_1(var_2 + 2,1);
    (*(type_1 *)PTR___snprintf_chk_0004f3a8)
              (filename,var_2 + 2,1,0xffffffff,var_3 + 0x7d58,s);
    str = var_4(filename);
    pcVar2 = var_5(str);
    var_2 = (*(type_1 *)PTR_strcmp_0004f39c)(pcVar2,filename);
    pcVar3 = str;
    if (var_2 == 0) {
      pcVar3 = (char *)0x0;
      (*(type_1 *)PTR_free_0004f37c)(str);
    }
    (*(type_1 *)PTR_free_0004f37c)(pcVar2);
    (*(type_1 *)PTR_free_0004f37c)(filename);
    return pcVar3;
  }
  return (char *)0x0;
}


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

undefined4 MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  
  if (*(int *)PTR_secure_0004ec48 == 0) {
    iVar1 = (*(code *)PTR_strlen_0004f30c)();
    uVar2 = ecalloc(iVar1 + 2,1);
    (*(code *)PTR___snprintf_chk_0004f3a8)
              (uVar2,iVar1 + 2,1,0xffffffff,PTR_LAB_0004ec08 + 0x7d58,param_1);
    uVar3 = lglob(uVar2);
    uVar4 = shell_unquote(uVar3);
    iVar1 = (*(code *)PTR_strcmp_0004f39c)(uVar4,uVar2);
    uVar5 = uVar3;
    if (iVar1 == 0) {
      uVar5 = 0;
      (*(code *)PTR_free_0004f37c)(uVar3);
    }
    (*(code *)PTR_free_0004f37c)(uVar4);
    (*(code *)PTR_free_0004f37c)(uVar2);
    return uVar5;
  }
  return 0;
}

