
_Bool atdir_eq(char *dir,ptrdiff_t dirlen)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_DAT_00036388;
  if (dirlen == 0) {
    dirlen = 1;
    dir = PTR_LAB_00036398 + 0x4e00;
  }
  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen);
  if (iVar2 != 0) {
    return false;
  }
  return puVar1[dirlen + 0x6860] == '\0';
}



bool FUN_0001481c(undefined *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_DAT_00036388;
  if (param_2 == 0) {
    param_2 = 1;
    param_1 = PTR_LAB_00036398 + 0x4e00;
  }
  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);
  if (iVar2 != 0) {
    return false;
  }
  return puVar1[param_2 + 0x6860] == '\0';
}


lui gp,0x3
addiu gp,gp,-0x64bc
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
beq a1,zero,0x00014898
_sw s0,0x1c(sp)
or s0,a1,zero
or a2,a1,zero
lw s1,-0x7fd8(gp)
or a1,a0,zero
lw t9,-0x7cd8(gp)
jalr t9
_addiu a0,s1,0x6860
bne v0,zero,0x00014884
_lw ra,0x24(sp)
addiu s1,s1,0x6860
addu s0,s0,s1
lw s1,0x20(sp)
lb v0,0x0(s0)
lw s0,0x1c(sp)
addiu sp,sp,0x28
jr ra
_sltiu v0,v0,0x1
or v0,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a0,-0x7fc8(gp)
li a2,0x1
li s0,0x1
b 0x00014848
_addiu a0,a0,0x4e00
(translation_unit "bool FUN_0001481c(undefined *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}\n\n" (function_definition "bool FUN_0001481c(undefined *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}" primitive_type (function_declarator "FUN_0001481c(undefined *param_1,int param_2)" identifier (parameter_list "(undefined *param_1,int param_2)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_00036388;" (assignment_expression "puVar1 = PTR_DAT_00036388" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) (expression_statement "param_1 = PTR_LAB_00036398 + 0x4e00;" (assignment_expression "param_1 = PTR_LAB_00036398 + 0x4e00" identifier = (binary_expression "PTR_LAB_00036398 + 0x4e00" identifier + number_literal)) ;) })) (expression_statement "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2)" identifier = (call_expression "(*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcmp_00036688)" ( (pointer_expression "*(code *)PTR_memcmp_00036688" * (cast_expression "(code *)PTR_memcmp_00036688" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00036388 + 0x6860,param_1,param_2)" ( (binary_expression "PTR_DAT_00036388 + 0x6860" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (return_statement "return puVar1[param_2 + 0x6860] == '\0';" return (binary_expression "puVar1[param_2 + 0x6860] == '\0'" (subscript_expression "puVar1[param_2 + 0x6860]" identifier [ (binary_expression "param_2 + 0x6860" identifier + number_literal) ]) == (char_literal "'\0'" ' escape_sequence ')) ;) })))
(translation_unit "_Bool atdir_eq(char *dir,ptrdiff_t dirlen)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (dirlen == 0) {\n    dirlen = 1;\n    dir = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[dirlen + 0x6860] == '\0';\n}\n\n" (function_definition "_Bool atdir_eq(char *dir,ptrdiff_t dirlen)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (dirlen == 0) {\n    dirlen = 1;\n    dir = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[dirlen + 0x6860] == '\0';\n}" type_identifier (function_declarator "atdir_eq(char *dir,ptrdiff_t dirlen)" identifier (parameter_list "(char *dir,ptrdiff_t dirlen)" ( (parameter_declaration "char *dir" primitive_type (pointer_declarator "*dir" * identifier)) , (parameter_declaration "ptrdiff_t dirlen" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (dirlen == 0) {\n    dirlen = 1;\n    dir = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[dirlen + 0x6860] == '\0';\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_00036388;" (assignment_expression "puVar1 = PTR_DAT_00036388" identifier = identifier) ;) (if_statement "if (dirlen == 0) {\n    dirlen = 1;\n    dir = PTR_LAB_00036398 + 0x4e00;\n  }" if (parenthesized_expression "(dirlen == 0)" ( (binary_expression "dirlen == 0" identifier == number_literal) )) (compound_statement "{\n    dirlen = 1;\n    dir = PTR_LAB_00036398 + 0x4e00;\n  }" { (expression_statement "dirlen = 1;" (assignment_expression "dirlen = 1" identifier = number_literal) ;) (expression_statement "dir = PTR_LAB_00036398 + 0x4e00;" (assignment_expression "dir = PTR_LAB_00036398 + 0x4e00" identifier = (binary_expression "PTR_LAB_00036398 + 0x4e00" identifier + number_literal)) ;) })) (expression_statement "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen)" identifier = (call_expression "(*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,dir,dirlen)" (parenthesized_expression "(*(code *)PTR_memcmp_00036688)" ( (pointer_expression "*(code *)PTR_memcmp_00036688" * (cast_expression "(code *)PTR_memcmp_00036688" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00036388 + 0x6860,dir,dirlen)" ( (binary_expression "PTR_DAT_00036388 + 0x6860" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (return_statement "return puVar1[dirlen + 0x6860] == '\0';" return (binary_expression "puVar1[dirlen + 0x6860] == '\0'" (subscript_expression "puVar1[dirlen + 0x6860]" identifier [ (binary_expression "dirlen + 0x6860" identifier + number_literal) ]) == (char_literal "'\0'" ' escape_sequence ')) ;) })))
(translation_unit "bool FUN_0001481c(undefined *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}\n\n" (function_definition "bool FUN_0001481c(undefined *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}" primitive_type (function_declarator "FUN_0001481c(undefined *param_1,int param_2)" identifier (parameter_list "(undefined *param_1,int param_2)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_00036388;" (assignment_expression "puVar1 = PTR_DAT_00036388" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) (expression_statement "param_1 = PTR_LAB_00036398 + 0x4e00;" (assignment_expression "param_1 = PTR_LAB_00036398 + 0x4e00" identifier = (binary_expression "PTR_LAB_00036398 + 0x4e00" identifier + number_literal)) ;) })) (expression_statement "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2)" identifier = (call_expression "(*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcmp_00036688)" ( (pointer_expression "*(code *)PTR_memcmp_00036688" * (cast_expression "(code *)PTR_memcmp_00036688" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00036388 + 0x6860,param_1,param_2)" ( (binary_expression "PTR_DAT_00036388 + 0x6860" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (return_statement "return puVar1[param_2 + 0x6860] == '\0';" return (binary_expression "puVar1[param_2 + 0x6860] == '\0'" (subscript_expression "puVar1[param_2 + 0x6860]" identifier [ (binary_expression "param_2 + 0x6860" identifier + number_literal) ]) == (char_literal "'\0'" ' escape_sequence ')) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (assignment_expression IDENT = (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 ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return BOOL ;) })) (return_statement return (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == (char_literal ' escape_sequence ')) ;) })))
(function_definition "bool FUN_0001481c(undefined *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}" (primitive_type "bool") (function_declarator "FUN_0001481c(undefined *param_1,int param_2)" (identifier "FUN_0001481c") (parameter_list "(undefined *param_1,int param_2)" (( "(") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_DAT_00036388;\n  if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }\n  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);\n  if (iVar2 != 0) {\n    return false;\n  }\n  return puVar1[param_2 + 0x6860] == '\0';\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = PTR_DAT_00036388;" (assignment_expression "puVar1 = PTR_DAT_00036388" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00036388")) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = 1;\n    param_1 = PTR_LAB_00036398 + 0x4e00;\n  }" ({ "{") (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1 = PTR_LAB_00036398 + 0x4e00;" (assignment_expression "param_1 = PTR_LAB_00036398 + 0x4e00" (identifier "param_1") (= "=") (binary_expression "PTR_LAB_00036398 + 0x4e00" (identifier "PTR_LAB_00036398") (+ "+") (number_literal "0x4e00"))) (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcmp_00036688)" (( "(") (pointer_expression "*(code *)PTR_memcmp_00036688" (* "*") (cast_expression "(code *)PTR_memcmp_00036688" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_00036688"))) () ")")) (argument_list "(PTR_DAT_00036388 + 0x6860,param_1,param_2)" (( "(") (binary_expression "PTR_DAT_00036388 + 0x6860" (identifier "PTR_DAT_00036388") (+ "+") (number_literal "0x6860")) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    return false;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return false;\n  }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (return_statement "return puVar1[param_2 + 0x6860] == '\0';" (return "return") (binary_expression "puVar1[param_2 + 0x6860] == '\0'" (subscript_expression "puVar1[param_2 + 0x6860]" (identifier "puVar1") ([ "[") (binary_expression "param_2 + 0x6860" (identifier "param_2") (+ "+") (number_literal "0x6860")) (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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 (assignment_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (false)))) (return_statement (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence)))))))

bool MASKED(undefined *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_DAT_00036388;
  if (param_2 == 0) {
    param_2 = 1;
    param_1 = PTR_LAB_00036398 + 0x4e00;
  }
  iVar2 = (*(code *)PTR_memcmp_00036688)(PTR_DAT_00036388 + 0x6860,param_1,param_2);
  if (iVar2 != 0) {
    return false;
  }
  return puVar1[param_2 + 0x6860] == '\0';
}

