
_Bool is_dir(char *buf)

{
  long lVar1;
  int iVar2;
  char *__filename;
  long in_FS_OFFSET;
  stat fileinfo;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  __filename = real_dir_from_tilde(buf);
  iVar2 = __xstat(1,__filename,(stat *)&fileinfo);
  free(__filename);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



bool FUN_0010dbba(void)

{
  int iVar1;
  char *__filename;
  long in_FS_OFFSET;
  stat sStack_b8;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  __filename = (char *)FUN_0010a62b();
  iVar1 = __xstat(1,__filename,&sStack_b8);
  free(__filename);
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0xa8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x98],RAX
XOR EAX,EAX
CALL 0x0010a62b
MOV RBP,RAX
MOV RDX,RSP
MOV RSI,RAX
MOV EDI,0x1
CALL 0x00105640
MOV EBX,0x0
CMP EAX,-0x1
JZ 0x0010dc0c
MOV EAX,dword ptr [RSP + 0x18]
AND EAX,0xf000
CMP EAX,0x4000
SETZ BL
MOVZX EBX,BL
MOV RDI,RBP
CALL 0x001050f0
MOV EAX,EBX
AND EAX,0x1
MOV RCX,qword ptr [RSP + 0x98]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0010dc36
ADD RSP,0xa8
POP RBX
POP RBP
RET
CALL 0x00105340
(translation_unit "bool FUN_0010dbba(void)\n\n{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "bool FUN_0010dbba(void)\n\n{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_0010dbba(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "stat sStack_b8;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__filename = (char *)FUN_0010a62b();" (assignment_expression "__filename = (char *)FUN_0010a62b()" identifier = (cast_expression "(char *)FUN_0010a62b()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010a62b()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = __xstat(1,__filename,&sStack_b8);" (assignment_expression "iVar1 = __xstat(1,__filename,&sStack_b8)" identifier = (call_expression "__xstat(1,__filename,&sStack_b8)" identifier (argument_list "(1,__filename,&sStack_b8)" ( number_literal , identifier , (pointer_expression "&sStack_b8" & identifier) )))) ;) (expression_statement "free(__filename);" (call_expression "free(__filename)" identifier (argument_list "(__filename)" ( identifier ))) ;) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;" return (binary_expression "iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000" (binary_expression "iVar1 != -1" identifier != number_literal) && (binary_expression "(sStack_b8.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sStack_b8.st_mode & 0xf000)" ( (binary_expression "sStack_b8.st_mode & 0xf000" (field_expression "sStack_b8.st_mode" identifier . field_identifier) & number_literal) )) == number_literal)) ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "_Bool is_dir(char *buf)\n\n{\n  long lVar1;\n  int iVar2;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat fileinfo;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = real_dir_from_tilde(buf);\n  iVar2 = __xstat(1,__filename,(stat *)&fileinfo);\n  free(__filename);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "_Bool is_dir(char *buf)\n\n{\n  long lVar1;\n  int iVar2;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat fileinfo;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = real_dir_from_tilde(buf);\n  iVar2 = __xstat(1,__filename,(stat *)&fileinfo);\n  free(__filename);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "is_dir(char *buf)" identifier (parameter_list "(char *buf)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat fileinfo;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = real_dir_from_tilde(buf);\n  iVar2 = __xstat(1,__filename,(stat *)&fileinfo);\n  free(__filename);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "stat fileinfo;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__filename = real_dir_from_tilde(buf);" (assignment_expression "__filename = real_dir_from_tilde(buf)" identifier = (call_expression "real_dir_from_tilde(buf)" identifier (argument_list "(buf)" ( identifier )))) ;) (expression_statement "iVar2 = __xstat(1,__filename,(stat *)&fileinfo);" (assignment_expression "iVar2 = __xstat(1,__filename,(stat *)&fileinfo)" identifier = (call_expression "__xstat(1,__filename,(stat *)&fileinfo)" identifier (argument_list "(1,__filename,(stat *)&fileinfo)" ( number_literal , identifier , (cast_expression "(stat *)&fileinfo" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fileinfo" & identifier)) )))) ;) (expression_statement "free(__filename);" (call_expression "free(__filename)" identifier (argument_list "(__filename)" ( identifier ))) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;" return (binary_expression "iVar2 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000" (binary_expression "iVar2 != -1" identifier != number_literal) && (binary_expression "(fileinfo.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(fileinfo.st_mode & 0xf000)" ( (binary_expression "fileinfo.st_mode & 0xf000" (field_expression "fileinfo.st_mode" identifier . field_identifier) & number_literal) )) == number_literal)) ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool FUN_0010dbba(void)\n\n{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "bool FUN_0010dbba(void)\n\n{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_0010dbba(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "stat sStack_b8;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__filename = (char *)FUN_0010a62b();" (assignment_expression "__filename = (char *)FUN_0010a62b()" identifier = (cast_expression "(char *)FUN_0010a62b()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010a62b()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = __xstat(1,__filename,&sStack_b8);" (assignment_expression "iVar1 = __xstat(1,__filename,&sStack_b8)" identifier = (call_expression "__xstat(1,__filename,&sStack_b8)" identifier (argument_list "(1,__filename,&sStack_b8)" ( number_literal , identifier , (pointer_expression "&sStack_b8" & identifier) )))) ;) (expression_statement "free(__filename);" (call_expression "free(__filename)" identifier (argument_list "(__filename)" ( identifier ))) ;) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;" return (binary_expression "iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000" (binary_expression "iVar1 != -1" identifier != number_literal) && (binary_expression "(sStack_b8.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sStack_b8.st_mode & 0xf000)" ( (binary_expression "sStack_b8.st_mode & 0xf000" (field_expression "sStack_b8.st_mode" identifier . field_identifier) & number_literal) )) == number_literal)) ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return (binary_expression (binary_expression IDENT != LIT) && (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) == LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "bool FUN_0010dbba(void)\n\n{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "bool") (function_declarator "FUN_0010dbba(void)" (identifier "FUN_0010dbba") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *__filename;\n  long in_FS_OFFSET;\n  stat sStack_b8;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __filename = (char *)FUN_0010a62b();\n  iVar1 = __xstat(1,__filename,&sStack_b8);\n  free(__filename);\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *__filename;" (primitive_type "char") (pointer_declarator "*__filename" (* "*") (identifier "__filename")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "stat sStack_b8;" (type_identifier "stat") (identifier "sStack_b8") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "__filename = (char *)FUN_0010a62b();" (assignment_expression "__filename = (char *)FUN_0010a62b()" (identifier "__filename") (= "=") (cast_expression "(char *)FUN_0010a62b()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010a62b()" (identifier "FUN_0010a62b") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = __xstat(1,__filename,&sStack_b8);" (assignment_expression "iVar1 = __xstat(1,__filename,&sStack_b8)" (identifier "iVar1") (= "=") (call_expression "__xstat(1,__filename,&sStack_b8)" (identifier "__xstat") (argument_list "(1,__filename,&sStack_b8)" (( "(") (number_literal "1") (, ",") (identifier "__filename") (, ",") (pointer_expression "&sStack_b8" (& "&") (identifier "sStack_b8")) () ")")))) (; ";")) (expression_statement "free(__filename);" (call_expression "free(__filename)" (identifier "free") (argument_list "(__filename)" (( "(") (identifier "__filename") () ")"))) (; ";")) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;\n  }" ({ "{") (return_statement "return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;" (return "return") (binary_expression "iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000" (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) (&& "&&") (binary_expression "(sStack_b8.st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sStack_b8.st_mode & 0xf000)" (( "(") (binary_expression "sStack_b8.st_mode & 0xf000" (field_expression "sStack_b8.st_mode" (identifier "sStack_b8") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000"))) (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 function_1(char *buf)

{
  long var_5;
  int var_6;
  char *__filename;
  long var_1;
  type_2 fileinfo;
  
  var_5 = *(long *)(var_1 + 0x28);
  __filename = var_2(buf);
  var_6 = var_3(1,__filename,(type_2 *)&fileinfo);
  var_4(__filename);
  if (var_5 == *(long *)(var_1 + 0x28)) {
    return var_6 != -1 && (fileinfo.st_mode & 0xf000) == 0x4000;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

bool MASKED(void)

{
  int iVar1;
  char *__filename;
  long in_FS_OFFSET;
  stat sStack_b8;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  __filename = (char *)FUN_0010a62b();
  iVar1 = __xstat(1,__filename,&sStack_b8);
  free(__filename);
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1 != -1 && (sStack_b8.st_mode & 0xf000) == 0x4000;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

