
_Bool outside_of_confinement(char *currpath,_Bool allow_tabcomp)

{
  char *pcVar1;
  char *pcVar2;
  int iVar3;
  undefined3 in_register_00000014;
  int iVar4;
  
  pcVar1 = get_full_path(currpath);
  if (pcVar1 == (char *)0x0) {
    return allow_tabcomp;
  }
  iVar4 = *(int *)PTR_operating_dir_000777a8;
  pcVar2 = (char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4);
  if (CONCAT31(in_register_00000014,allow_tabcomp) != 0) {
    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);
    if (iVar4 == iVar3) {
      (*(code *)PTR_free_0007810c)(pcVar1);
      return false;
    }
  }
  (*(code *)PTR_free_0007810c)(pcVar1);
  return pcVar1 != pcVar2;
}



uint FUN_00021aa8(undefined4 param_1,uint param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = get_full_path();
  if (iVar1 == 0) {
    return param_2;
  }
  iVar4 = *(int *)PTR_operating_dir_000777a8;
  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);
  if (param_2 != 0) {
    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);
    if (iVar4 == iVar3) {
      (*(code *)PTR_free_0007810c)(iVar1);
      return 0;
    }
  }
  (*(code *)PTR_free_0007810c)(iVar1);
  return (uint)(iVar1 != iVar2);
}


lui gp,0x6
addiu gp,gp,-0x2588
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7be8(gp)
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
bal 0x00020264
_sw s0,0x1c(sp)
beq v0,zero,0x00021b80
_lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x73c4(gp)
or s0,v0,zero
lw v0,-0x7d78(gp)
lw s2,0x0(v0)
jalr t9
_or a1,s2,zero
lw gp,0x10(sp)
bne s1,zero,0x00021b3c
_or s3,v0,zero
lw t9,-0x7414(gp)
or a0,s0,zero
jalr t9
_xor s0,s0,s3
sltu v0,zero,s0
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x73c4(gp)
or a1,s0,zero
jalr t9
_or a0,s2,zero
bne s2,v0,0x00021b0c
_lw gp,0x10(sp)
lw t9,-0x7414(gp)
jalr t9
_or a0,s0,zero
or v0,zero,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw ra,0x2c(sp)
or v0,s1,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "uint FUN_00021aa8(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}\n\n" (function_definition "uint FUN_00021aa8(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}" type_identifier (function_declarator "FUN_00021aa8(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  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = get_full_path();" (assignment_expression "iVar1 = get_full_path()" identifier = (call_expression "get_full_path()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return param_2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "iVar4 = *(int *)PTR_operating_dir_000777a8;" (assignment_expression "iVar4 = *(int *)PTR_operating_dir_000777a8" identifier = (pointer_expression "*(int *)PTR_operating_dir_000777a8" * (cast_expression "(int *)PTR_operating_dir_000777a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4)" identifier = (call_expression "(*(code *)PTR_strstr_0007815c)(iVar1,iVar4)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" ( (pointer_expression "*(code *)PTR_strstr_0007815c" * (cast_expression "(code *)PTR_strstr_0007815c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1)" identifier = (call_expression "(*(code *)PTR_strstr_0007815c)(iVar4,iVar1)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" ( (pointer_expression "*(code *)PTR_strstr_0007815c" * (cast_expression "(code *)PTR_strstr_0007815c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }" if (parenthesized_expression "(iVar4 == iVar3)" ( (binary_expression "iVar4 == iVar3" identifier == identifier) )) (compound_statement "{\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }" { (expression_statement "(*(code *)PTR_free_0007810c)(iVar1);" (call_expression "(*(code *)PTR_free_0007810c)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "(*(code *)PTR_free_0007810c)(iVar1);" (call_expression "(*(code *)PTR_free_0007810c)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return (uint)(iVar1 != iVar2);" return (call_expression "(uint)(iVar1 != iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) ))) ;) })))
(translation_unit "_Bool outside_of_confinement(char *currpath,_Bool allow_tabcomp)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined3 in_register_00000014;\n  int iVar4;\n  \n  pcVar1 = get_full_path(currpath);\n  if (pcVar1 == (char *)0x0) {\n    return allow_tabcomp;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  pcVar2 = (char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4);\n  if (CONCAT31(in_register_00000014,allow_tabcomp) != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return pcVar1 != pcVar2;\n}\n\n" (function_definition "_Bool outside_of_confinement(char *currpath,_Bool allow_tabcomp)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined3 in_register_00000014;\n  int iVar4;\n  \n  pcVar1 = get_full_path(currpath);\n  if (pcVar1 == (char *)0x0) {\n    return allow_tabcomp;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  pcVar2 = (char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4);\n  if (CONCAT31(in_register_00000014,allow_tabcomp) != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return pcVar1 != pcVar2;\n}" type_identifier (function_declarator "outside_of_confinement(char *currpath,_Bool allow_tabcomp)" identifier (parameter_list "(char *currpath,_Bool allow_tabcomp)" ( (parameter_declaration "char *currpath" primitive_type (pointer_declarator "*currpath" * identifier)) , (parameter_declaration "_Bool allow_tabcomp" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined3 in_register_00000014;\n  int iVar4;\n  \n  pcVar1 = get_full_path(currpath);\n  if (pcVar1 == (char *)0x0) {\n    return allow_tabcomp;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  pcVar2 = (char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4);\n  if (CONCAT31(in_register_00000014,allow_tabcomp) != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(pcVar1);\n  return pcVar1 != pcVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "pcVar1 = get_full_path(currpath);" (assignment_expression "pcVar1 = get_full_path(currpath)" identifier = (call_expression "get_full_path(currpath)" identifier (argument_list "(currpath)" ( identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    return allow_tabcomp;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return allow_tabcomp;\n  }" { (return_statement "return allow_tabcomp;" return identifier ;) })) (expression_statement "iVar4 = *(int *)PTR_operating_dir_000777a8;" (assignment_expression "iVar4 = *(int *)PTR_operating_dir_000777a8" identifier = (pointer_expression "*(int *)PTR_operating_dir_000777a8" * (cast_expression "(int *)PTR_operating_dir_000777a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4)" identifier = (cast_expression "(char *)(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strstr_0007815c)(pcVar1,iVar4)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" ( (pointer_expression "*(code *)PTR_strstr_0007815c" * (cast_expression "(code *)PTR_strstr_0007815c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,iVar4)" ( identifier , identifier ))))) ;) (if_statement "if (CONCAT31(in_register_00000014,allow_tabcomp) != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }\n  }" if (parenthesized_expression "(CONCAT31(in_register_00000014,allow_tabcomp) != 0)" ( (binary_expression "CONCAT31(in_register_00000014,allow_tabcomp) != 0" (call_expression "CONCAT31(in_register_00000014,allow_tabcomp)" identifier (argument_list "(in_register_00000014,allow_tabcomp)" ( identifier , identifier ))) != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,pcVar1)" identifier = (call_expression "(*(code *)PTR_strstr_0007815c)(iVar4,pcVar1)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" ( (pointer_expression "*(code *)PTR_strstr_0007815c" * (cast_expression "(code *)PTR_strstr_0007815c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,pcVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }" if (parenthesized_expression "(iVar4 == iVar3)" ( (binary_expression "iVar4 == iVar3" identifier == identifier) )) (compound_statement "{\n      (*(code *)PTR_free_0007810c)(pcVar1);\n      return false;\n    }" { (expression_statement "(*(code *)PTR_free_0007810c)(pcVar1);" (call_expression "(*(code *)PTR_free_0007810c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return false;" return false ;) })) })) (expression_statement "(*(code *)PTR_free_0007810c)(pcVar1);" (call_expression "(*(code *)PTR_free_0007810c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return pcVar1 != pcVar2;" return (binary_expression "pcVar1 != pcVar2" identifier != identifier) ;) })))
(translation_unit "uint FUN_00021aa8(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}\n\n" (function_definition "uint FUN_00021aa8(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}" type_identifier (function_declarator "FUN_00021aa8(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  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = get_full_path();" (assignment_expression "iVar1 = get_full_path()" identifier = (call_expression "get_full_path()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return param_2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) })) (expression_statement "iVar4 = *(int *)PTR_operating_dir_000777a8;" (assignment_expression "iVar4 = *(int *)PTR_operating_dir_000777a8" identifier = (pointer_expression "*(int *)PTR_operating_dir_000777a8" * (cast_expression "(int *)PTR_operating_dir_000777a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4)" identifier = (call_expression "(*(code *)PTR_strstr_0007815c)(iVar1,iVar4)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" ( (pointer_expression "*(code *)PTR_strstr_0007815c" * (cast_expression "(code *)PTR_strstr_0007815c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1)" identifier = (call_expression "(*(code *)PTR_strstr_0007815c)(iVar4,iVar1)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" ( (pointer_expression "*(code *)PTR_strstr_0007815c" * (cast_expression "(code *)PTR_strstr_0007815c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }" if (parenthesized_expression "(iVar4 == iVar3)" ( (binary_expression "iVar4 == iVar3" identifier == identifier) )) (compound_statement "{\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }" { (expression_statement "(*(code *)PTR_free_0007810c)(iVar1);" (call_expression "(*(code *)PTR_free_0007810c)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "(*(code *)PTR_free_0007810c)(iVar1);" (call_expression "(*(code *)PTR_free_0007810c)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" ( (pointer_expression "*(code *)PTR_free_0007810c" * (cast_expression "(code *)PTR_free_0007810c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return (uint)(iVar1 != iVar2);" return (call_expression "(uint)(iVar1 != iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != iVar2)" ( (binary_expression "iVar1 != iVar2" identifier != identifier) ))) ;) })))
(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 ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != IDENT) ))) ;) })))
(function_definition "uint FUN_00021aa8(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}" (type_identifier "uint") (function_declarator "FUN_00021aa8(undefined4 param_1,uint param_2)" (identifier "FUN_00021aa8") (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  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = get_full_path();\n  if (iVar1 == 0) {\n    return param_2;\n  }\n  iVar4 = *(int *)PTR_operating_dir_000777a8;\n  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);\n  if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }\n  (*(code *)PTR_free_0007810c)(iVar1);\n  return (uint)(iVar1 != iVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar1 = get_full_path();" (assignment_expression "iVar1 = get_full_path()" (identifier "iVar1") (= "=") (call_expression "get_full_path()" (identifier "get_full_path") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return param_2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return param_2;\n  }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)PTR_operating_dir_000777a8;" (assignment_expression "iVar4 = *(int *)PTR_operating_dir_000777a8" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_operating_dir_000777a8" (* "*") (cast_expression "(int *)PTR_operating_dir_000777a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operating_dir_000777a8")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strstr_0007815c)(iVar1,iVar4)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" (( "(") (pointer_expression "*(code *)PTR_strstr_0007815c" (* "*") (cast_expression "(code *)PTR_strstr_0007815c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strstr_0007815c"))) () ")")) (argument_list "(iVar1,iVar4)" (( "(") (identifier "iVar1") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (param_2 != 0) {\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);\n    if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strstr_0007815c)(iVar4,iVar1)" (parenthesized_expression "(*(code *)PTR_strstr_0007815c)" (( "(") (pointer_expression "*(code *)PTR_strstr_0007815c" (* "*") (cast_expression "(code *)PTR_strstr_0007815c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strstr_0007815c"))) () ")")) (argument_list "(iVar4,iVar1)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar4 == iVar3) {\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar4 == iVar3)" (( "(") (binary_expression "iVar4 == iVar3" (identifier "iVar4") (== "==") (identifier "iVar3")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_0007810c)(iVar1);\n      return 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_0007810c)(iVar1);" (call_expression "(*(code *)PTR_free_0007810c)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" (( "(") (pointer_expression "*(code *)PTR_free_0007810c" (* "*") (cast_expression "(code *)PTR_free_0007810c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007810c"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "(*(code *)PTR_free_0007810c)(iVar1);" (call_expression "(*(code *)PTR_free_0007810c)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_0007810c)" (( "(") (pointer_expression "*(code *)PTR_free_0007810c" (* "*") (cast_expression "(code *)PTR_free_0007810c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007810c"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return (uint)(iVar1 != iVar2);" (return "return") (call_expression "(uint)(iVar1 != iVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 != iVar2)" (( "(") (binary_expression "iVar1 != iVar2" (identifier "iVar1") (!= "!=") (identifier "iVar2")) () ")"))) (; ";")) (} "}")))

type_1 function_1(char *currpath,type_1 allow_tabcomp)

{
  char *var_2;
  char *var_6;
  int var_5;
  type_2 in_register_00000014;
  int var_4;
  
  var_2 = var_1(currpath);
  if (var_2 == (char *)0x0) {
    return allow_tabcomp;
  }
  var_4 = *(int *)PTR_operating_dir_000777a8;
  var_6 = (char *)(*(type_3 *)PTR_strstr_0007815c)(var_2,var_4);
  if (var_3(in_register_00000014,allow_tabcomp) != 0) {
    var_5 = (*(type_3 *)PTR_strstr_0007815c)(var_4,var_2);
    if (var_4 == var_5) {
      (*(type_3 *)PTR_free_0007810c)(var_2);
      return false;
    }
  }
  (*(type_3 *)PTR_free_0007810c)(var_2);
  return var_2 != var_6;
}


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

uint MASKED(undefined4 param_1,uint param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = get_full_path();
  if (iVar1 == 0) {
    return param_2;
  }
  iVar4 = *(int *)PTR_operating_dir_000777a8;
  iVar2 = (*(code *)PTR_strstr_0007815c)(iVar1,iVar4);
  if (param_2 != 0) {
    iVar3 = (*(code *)PTR_strstr_0007815c)(iVar4,iVar1);
    if (iVar4 == iVar3) {
      (*(code *)PTR_free_0007810c)(iVar1);
      return 0;
    }
  }
  (*(code *)PTR_free_0007810c)(iVar1);
  return (uint)(iVar1 != iVar2);
}

