
char * find_absolute_program(char *name,int flags)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = file_status(name);
  if (((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))) {
    iVar2 = (*(code *)PTR_strlen_00146390)(name);
                    /* WARNING: Subroutine does not return */
    xmalloc(iVar2 + 1);
  }
  return (char *)0x0;
}



undefined4 FUN_000a5a58(undefined4 param_1,uint param_2)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar1 = file_status();
  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))
  {
    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);
    uVar3 = xmalloc(iVar2 + 1);
                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);
    return uVar3;
  }
  return 0;
}


lui gp,0xa
addiu gp,gp,0x6ae8
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x747c(gp)
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
sw ra,0x24(sp)
bal 0x000a5958
_or s0,a1,zero
andi v1,v0,0x1
beq v1,zero,0x000a5af0
_lw gp,0x10(sp)
andi v1,s0,0x1
bne v1,zero,0x000a5ab0
_andi s0,s0,0x8
beq s0,zero,0x000a5af0
_andi v0,v0,0x2
beq v0,zero,0x000a5af4
_lw ra,0x24(sp)
lw t9,-0x61b0(gp)
jalr t9
_or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
or a1,s1,zero
lw gp,0x10(sp)
or a0,v0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x6128(gp)
jr t9
_addiu sp,sp,0x28
lw ra,0x24(sp)
or v0,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 FUN_000a5a58(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000a5a58(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000a5a58(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = file_status();" (assignment_expression "uVar1 = file_status()" identifier = (call_expression "file_status()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }" if (parenthesized_expression "(((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))" ( (binary_expression "((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))))" (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))))" ( (parenthesized_expression "((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))" ( (binary_expression "(param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))" (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) || (parenthesized_expression "(((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))" ( (parenthesized_expression "((param_2 & 8) != 0 && ((uVar1 & 2) != 0))" ( (binary_expression "(param_2 & 8) != 0 && ((uVar1 & 2) != 0)" (binary_expression "(param_2 & 8) != 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) != number_literal) && (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) ))) )) ))) )) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = xmalloc(iVar2 + 1);" (assignment_expression "uVar3 = xmalloc(iVar2 + 1)" identifier = (call_expression "xmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) comment comment (expression_statement "uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);" (assignment_expression "uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,param_1)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * find_absolute_program(char *name,int flags)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = file_status(name);\n  if (((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))) {\n    iVar2 = (*(code *)PTR_strlen_00146390)(name);\n                    /* WARNING: Subroutine does not return */\n    xmalloc(iVar2 + 1);\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * find_absolute_program(char *name,int flags)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = file_status(name);\n  if (((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))) {\n    iVar2 = (*(code *)PTR_strlen_00146390)(name);\n                    /* WARNING: Subroutine does not return */\n    xmalloc(iVar2 + 1);\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* find_absolute_program(char *name,int flags)" * (function_declarator "find_absolute_program(char *name,int flags)" identifier (parameter_list "(char *name,int flags)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = file_status(name);\n  if (((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))) {\n    iVar2 = (*(code *)PTR_strlen_00146390)(name);\n                    /* WARNING: Subroutine does not return */\n    xmalloc(iVar2 + 1);\n  }\n  return (char *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = file_status(name);" (assignment_expression "uVar1 = file_status(name)" identifier = (call_expression "file_status(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if (((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))) {\n    iVar2 = (*(code *)PTR_strlen_00146390)(name);\n                    /* WARNING: Subroutine does not return */\n    xmalloc(iVar2 + 1);\n  }" if (parenthesized_expression "(((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0))))))" ( (binary_expression "((uVar1 & 1) != 0) && (((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))" (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))))" ( (parenthesized_expression "((flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0))))" ( (binary_expression "(flags & 1U) != 0 || (((flags & 8U) != 0 && ((uVar1 & 2) != 0)))" (binary_expression "(flags & 1U) != 0" (parenthesized_expression "(flags & 1U)" ( (binary_expression "flags & 1U" identifier & number_literal) )) != number_literal) || (parenthesized_expression "(((flags & 8U) != 0 && ((uVar1 & 2) != 0)))" ( (parenthesized_expression "((flags & 8U) != 0 && ((uVar1 & 2) != 0))" ( (binary_expression "(flags & 8U) != 0 && ((uVar1 & 2) != 0)" (binary_expression "(flags & 8U) != 0" (parenthesized_expression "(flags & 8U)" ( (binary_expression "flags & 8U" identifier & number_literal) )) != number_literal) && (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) ))) )) ))) )) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strlen_00146390)(name);\n                    /* WARNING: Subroutine does not return */\n    xmalloc(iVar2 + 1);\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(name);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(name)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(name)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier )))) ;) comment (expression_statement "xmalloc(iVar2 + 1);" (call_expression "xmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_000a5a58(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000a5a58(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000a5a58(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = file_status();" (assignment_expression "uVar1 = file_status()" identifier = (call_expression "file_status()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }" if (parenthesized_expression "(((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))" ( (binary_expression "((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))))" (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))))" ( (parenthesized_expression "((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))" ( (binary_expression "(param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))" (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) || (parenthesized_expression "(((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))" ( (parenthesized_expression "((param_2 & 8) != 0 && ((uVar1 & 2) != 0))" ( (binary_expression "(param_2 & 8) != 0 && ((uVar1 & 2) != 0)" (binary_expression "(param_2 & 8) != 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) != number_literal) && (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) ))) )) ))) )) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = xmalloc(iVar2 + 1);" (assignment_expression "uVar3 = xmalloc(iVar2 + 1)" identifier = (call_expression "xmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);" (assignment_expression "uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,param_1)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != 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 IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000a5a58(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000a5a58(undefined4 param_1,uint param_2)" (identifier "FUN_000a5a58") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = file_status();\n  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = file_status();" (assignment_expression "uVar1 = file_status()" (identifier "uVar1") (= "=") (call_expression "file_status()" (identifier "file_status") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))\n  {\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))" (( "(") (binary_expression "((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))))" (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))))" (( "(") (parenthesized_expression "((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))" (( "(") (binary_expression "(param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))" (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(((param_2 & 8) != 0 && ((uVar1 & 2) != 0)))" (( "(") (parenthesized_expression "((param_2 & 8) != 0 && ((uVar1 & 2) != 0))" (( "(") (binary_expression "(param_2 & 8) != 0 && ((uVar1 & 2) != 0)" (binary_expression "(param_2 & 8) != 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "((uVar1 & 2) != 0)" (( "(") (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n    uVar3 = xmalloc(iVar2 + 1);\n                    \n                    \n    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);\n    return uVar3;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar3 = xmalloc(iVar2 + 1);" (assignment_expression "uVar3 = xmalloc(iVar2 + 1)" (identifier "uVar3") (= "=") (call_expression "xmalloc(iVar2 + 1)" (identifier "xmalloc") (argument_list "(iVar2 + 1)" (( "(") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);" (assignment_expression "uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar3,param_1)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

char * function_1(char *name,int var_3)

{
  type_1 var_2;
  int var_5;
  
  var_2 = var_1(name);
  if (((var_2 & 1) != 0) && (((var_3 & 1U) != 0 || (((var_3 & 8U) != 0 && ((var_2 & 2) != 0)))))) {
    var_5 = (*(type_2 *)PTR_strlen_00146390)(name);
                    /* WARNING: Subroutine does not return */
    var_4(var_5 + 1);
  }
  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)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (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))))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,uint param_2)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar1 = file_status();
  if (((uVar1 & 1) != 0) && (((param_2 & 1) != 0 || (((param_2 & 8) != 0 && ((uVar1 & 2) != 0))))))
  {
    iVar2 = (*(code *)PTR_strlen_00146390)(param_1);
    uVar3 = xmalloc(iVar2 + 1);
                    /* WARNING: Could not recover jumptable at 0x000a5ae8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar3 = (*(code *)PTR_strcpy_00146418)(uVar3,param_1);
    return uVar3;
  }
  return 0;
}

