
fsword filesystem_type(FTSENT *p,int fd)

{
  long lVar1;
  FTS *pFVar2;
  int iVar3;
  void *pvVar4;
  Hash_table *table;
  __dev_t *entry;
  __dev_t *p_Var5;
  long in_FS_OFFSET;
  dev_type tmp;
  statfs fs_buf;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  pFVar2 = p->fts_fts;
  if ((pFVar2->fts_options & 0x200) == 0) {
    fs_buf.f_type = 0;
    goto LAB_00107575;
  }
  table = pFVar2->fts_leaf_optimization_works_ht;
  if (table == (Hash_table *)0x0) {
    table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,
                            (Hash_data_freer)PTR_free_0010ff98);
    pFVar2->fts_leaf_optimization_works_ht = table;
    if (table != (Hash_table *)0x0) goto LAB_001074ad;
  }
  else {
LAB_001074ad:
    tmp.st_dev = p->fts_statp[0].st_dev;
    pvVar4 = hash_lookup(table,&tmp);
    if (pvVar4 != (void *)0x0) {
      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);
      goto LAB_00107575;
    }
  }
  if (fd < 0) {
    fs_buf.f_type = 0;
  }
  else {
    iVar3 = fstatfs(fd,(statfs *)&fs_buf);
    if (iVar3 == 0) {
      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)
         ) {
        *entry = p->fts_statp[0].st_dev;
        entry[1] = fs_buf.f_type;
        p_Var5 = (__dev_t *)hash_insert(table,entry);
        if (p_Var5 == (__dev_t *)0x0) {
          free(entry);
        }
        else if (entry != p_Var5) {
                    /* WARNING: Subroutine does not return */
          abort();
        }
      }
    }
    else {
      fs_buf.f_type = 0;
    }
  }
LAB_00107575:
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return fs_buf.f_type;
}



long FUN_00107470(long param_1,int param_2)

{
  int iVar1;
  long lVar2;
  long lVar3;
  undefined8 *__ptr;
  undefined8 *puVar4;
  long in_FS_OFFSET;
  undefined8 local_b8 [2];
  statfs local_a8;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  lVar2 = *(long *)(param_1 + 0x50);
  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {
    local_a8.f_type = 0;
    goto LAB_00107575;
  }
  lVar3 = *(long *)(lVar2 + 0x50);
  if (lVar3 == 0) {
    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);
    *(long *)(lVar2 + 0x50) = lVar3;
    if (lVar3 != 0) goto LAB_001074ad;
  }
  else {
LAB_001074ad:
    local_b8[0] = *(undefined8 *)(param_1 + 0x78);
    lVar2 = FUN_00109989(lVar3,local_b8);
    if (lVar2 != 0) {
      local_a8.f_type = *(long *)(lVar2 + 8);
      goto LAB_00107575;
    }
  }
  if (param_2 < 0) {
    local_a8.f_type = 0;
  }
  else {
    iVar1 = fstatfs(param_2,&local_a8);
    if (iVar1 == 0) {
      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {
        *__ptr = *(undefined8 *)(param_1 + 0x78);
        __ptr[1] = local_a8.f_type;
        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);
        if (puVar4 == (undefined8 *)0x0) {
          free(__ptr);
        }
        else if (__ptr != puVar4) {
                    /* WARNING: Subroutine does not return */
          abort();
        }
      }
    }
    else {
      local_a8.f_type = 0;
    }
  }
LAB_00107575:
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return local_a8.f_type;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x98
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x88],RAX
XOR EAX,EAX
MOV RBX,qword ptr [RDI + 0x50]
TEST byte ptr [RBX + 0x49],0x2
JZ 0x00107570
MOV R12,RDI
MOV R13D,ESI
MOV RBP,qword ptr [RBX + 0x50]
TEST RBP,RBP
JZ 0x001074cf
MOV RAX,qword ptr [R12 + 0x78]
MOV qword ptr [RSP],RAX
MOV RSI,RSP
MOV RDI,RBP
CALL 0x00109989
TEST RAX,RAX
JZ 0x001074ff
MOV RAX,qword ptr [RAX + 0x8]
JMP 0x00107575
MOV R8,qword ptr [0x0010ff98]
LEA RCX,[0x106f8b]
LEA RDX,[0x106f7c]
MOV ESI,0x0
MOV EDI,0xd
CALL 0x00109b7d
MOV RBP,RAX
MOV qword ptr [RBX + 0x50],RAX
TEST RAX,RAX
JNZ 0x001074ad
TEST R13D,R13D
JS 0x00107596
LEA RSI,[RSP + 0x10]
MOV EDI,R13D
CALL 0x001023b0
TEST EAX,EAX
JNZ 0x0010759d
TEST RBP,RBP
JZ 0x0010755a
MOV EDI,0x10
CALL 0x001022b0
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0010755a
MOV RAX,qword ptr [R12 + 0x78]
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x8],RAX
MOV RSI,RBX
MOV RDI,RBP
CALL 0x0010a16d
TEST RAX,RAX
JZ 0x00107566
CMP RBX,RAX
JNZ 0x00107561
MOV RAX,qword ptr [RSP + 0x10]
JMP 0x00107575
CALL 0x00102030
MOV RDI,RBX
CALL 0x00102430
JMP 0x0010755a
MOV EAX,0x0
MOV RDX,qword ptr [RSP + 0x88]
XOR RDX,qword ptr FS:[0x28]
JNZ 0x001075a4
ADD RSP,0x98
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EAX,0x0
JMP 0x00107575
MOV EAX,0x0
JMP 0x00107575
CALL 0x00102140
(translation_unit "long FUN_00107470(long param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}\n\n" (function_definition "long FUN_00107470(long param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00107470(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_b8 [2];" type_identifier (array_declarator "local_b8 [2]" identifier [ number_literal ]) ;) (declaration "statfs local_a8;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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 "lVar2 = *(long *)(param_1 + 0x50);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x50)" identifier = (pointer_expression "*(long *)(param_1 + 0x50)" * (cast_expression "(long *)(param_1 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }" if (parenthesized_expression "((*(byte *)(lVar2 + 0x49) & 2) == 0)" ( (binary_expression "(*(byte *)(lVar2 + 0x49) & 2) == 0" (parenthesized_expression "(*(byte *)(lVar2 + 0x49) & 2)" ( (binary_expression "*(byte *)(lVar2 + 0x49) & 2" (pointer_expression "*(byte *)(lVar2 + 0x49)" * (cast_expression "(byte *)(lVar2 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x49)" ( (binary_expression "lVar2 + 0x49" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }" { (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" identifier . field_identifier) = number_literal) ;) (goto_statement "goto LAB_00107575;" goto statement_identifier ;) })) (expression_statement "lVar3 = *(long *)(lVar2 + 0x50);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0x50)" identifier = (pointer_expression "*(long *)(lVar2 + 0x50)" * (cast_expression "(long *)(lVar2 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) ))))) ;) (if_statement "if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }" { (expression_statement "lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);" (assignment_expression "lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" identifier = (call_expression "FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" identifier (argument_list "(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "*(long *)(lVar2 + 0x50) = lVar3;" (assignment_expression "*(long *)(lVar2 + 0x50) = lVar3" (pointer_expression "*(long *)(lVar2 + 0x50)" * (cast_expression "(long *)(lVar2 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar3 != 0) goto LAB_001074ad;" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001074ad;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" else (compound_statement "{\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" { (labeled_statement "LAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);" statement_identifier : (expression_statement "local_b8[0] = *(undefined8 *)(param_1 + 0x78);" (assignment_expression "local_b8[0] = *(undefined8 *)(param_1 + 0x78)" (subscript_expression "local_b8[0]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 0x78)" * (cast_expression "(undefined8 *)(param_1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;)) (expression_statement "lVar2 = FUN_00109989(lVar3,local_b8);" (assignment_expression "lVar2 = FUN_00109989(lVar3,local_b8)" identifier = (call_expression "FUN_00109989(lVar3,local_b8)" identifier (argument_list "(lVar3,local_b8)" ( identifier , identifier )))) ;) (if_statement "if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }" { (expression_statement "local_a8.f_type = *(long *)(lVar2 + 8);" (assignment_expression "local_a8.f_type = *(long *)(lVar2 + 8)" (field_expression "local_a8.f_type" identifier . field_identifier) = (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00107575;" goto statement_identifier ;) })) }))) (if_statement "if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    local_a8.f_type = 0;\n  }" { (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" identifier . field_identifier) = number_literal) ;) }) (else_clause "else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" { (expression_statement "iVar1 = fstatfs(param_2,&local_a8);" (assignment_expression "iVar1 = fstatfs(param_2,&local_a8)" identifier = (call_expression "fstatfs(param_2,&local_a8)" identifier (argument_list "(param_2,&local_a8)" ( identifier , (pointer_expression "&local_a8" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }" { (if_statement "if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }" if (parenthesized_expression "((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0))" ( (binary_expression "(lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)" (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)" ( (comma_expression "__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0" (assignment_expression "__ptr = (undefined8 *)malloc(0x10)" identifier = (cast_expression "(undefined8 *)malloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) , (binary_expression "__ptr != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }" { (expression_statement "*__ptr = *(undefined8 *)(param_1 + 0x78);" (assignment_expression "*__ptr = *(undefined8 *)(param_1 + 0x78)" (pointer_expression "*__ptr" * identifier) = (pointer_expression "*(undefined8 *)(param_1 + 0x78)" * (cast_expression "(undefined8 *)(param_1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "__ptr[1] = local_a8.f_type;" (assignment_expression "__ptr[1] = local_a8.f_type" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = (field_expression "local_a8.f_type" identifier . field_identifier)) ;) (expression_statement "puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);" (assignment_expression "puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr)" identifier = (cast_expression "(undefined8 *)FUN_0010a16d(lVar3,__ptr)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010a16d(lVar3,__ptr)" identifier (argument_list "(lVar3,__ptr)" ( identifier , identifier ))))) ;) (if_statement "if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" if (parenthesized_expression "(puVar4 == (undefined8 *)0x0)" ( (binary_expression "puVar4 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          free(__ptr);\n        }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" else (if_statement "if (__ptr != puVar4) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" if (parenthesized_expression "(__ptr != puVar4)" ( (binary_expression "__ptr != puVar4" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))) })) }) (else_clause "else {\n      local_a8.f_type = 0;\n    }" else (compound_statement "{\n      local_a8.f_type = 0;\n    }" { (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" identifier . field_identifier) = number_literal) ;) }))) }))) (labeled_statement "LAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 != *(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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_a8.f_type;" return (field_expression "local_a8.f_type" identifier . field_identifier) ;) })))
(translation_unit "fsword filesystem_type(FTSENT *p,int fd)\n\n{\n  long lVar1;\n  FTS *pFVar2;\n  int iVar3;\n  void *pvVar4;\n  Hash_table *table;\n  __dev_t *entry;\n  __dev_t *p_Var5;\n  long in_FS_OFFSET;\n  dev_type tmp;\n  statfs fs_buf;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  pFVar2 = p->fts_fts;\n  if ((pFVar2->fts_options & 0x200) == 0) {\n    fs_buf.f_type = 0;\n    goto LAB_00107575;\n  }\n  table = pFVar2->fts_leaf_optimization_works_ht;\n  if (table == (Hash_table *)0x0) {\n    table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98);\n    pFVar2->fts_leaf_optimization_works_ht = table;\n    if (table != (Hash_table *)0x0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;\n    pvVar4 = hash_lookup(table,&tmp);\n    if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (fd < 0) {\n    fs_buf.f_type = 0;\n  }\n  else {\n    iVar3 = fstatfs(fd,(statfs *)&fs_buf);\n    if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return fs_buf.f_type;\n}\n\n" (function_definition "fsword filesystem_type(FTSENT *p,int fd)\n\n{\n  long lVar1;\n  FTS *pFVar2;\n  int iVar3;\n  void *pvVar4;\n  Hash_table *table;\n  __dev_t *entry;\n  __dev_t *p_Var5;\n  long in_FS_OFFSET;\n  dev_type tmp;\n  statfs fs_buf;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  pFVar2 = p->fts_fts;\n  if ((pFVar2->fts_options & 0x200) == 0) {\n    fs_buf.f_type = 0;\n    goto LAB_00107575;\n  }\n  table = pFVar2->fts_leaf_optimization_works_ht;\n  if (table == (Hash_table *)0x0) {\n    table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98);\n    pFVar2->fts_leaf_optimization_works_ht = table;\n    if (table != (Hash_table *)0x0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;\n    pvVar4 = hash_lookup(table,&tmp);\n    if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (fd < 0) {\n    fs_buf.f_type = 0;\n  }\n  else {\n    iVar3 = fstatfs(fd,(statfs *)&fs_buf);\n    if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return fs_buf.f_type;\n}" type_identifier (function_declarator "filesystem_type(FTSENT *p,int fd)" identifier (parameter_list "(FTSENT *p,int fd)" ( (parameter_declaration "FTSENT *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int fd" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  FTS *pFVar2;\n  int iVar3;\n  void *pvVar4;\n  Hash_table *table;\n  __dev_t *entry;\n  __dev_t *p_Var5;\n  long in_FS_OFFSET;\n  dev_type tmp;\n  statfs fs_buf;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  pFVar2 = p->fts_fts;\n  if ((pFVar2->fts_options & 0x200) == 0) {\n    fs_buf.f_type = 0;\n    goto LAB_00107575;\n  }\n  table = pFVar2->fts_leaf_optimization_works_ht;\n  if (table == (Hash_table *)0x0) {\n    table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98);\n    pFVar2->fts_leaf_optimization_works_ht = table;\n    if (table != (Hash_table *)0x0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;\n    pvVar4 = hash_lookup(table,&tmp);\n    if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (fd < 0) {\n    fs_buf.f_type = 0;\n  }\n  else {\n    iVar3 = fstatfs(fd,(statfs *)&fs_buf);\n    if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return fs_buf.f_type;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "FTS *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "Hash_table *table;" type_identifier (pointer_declarator "*table" * identifier) ;) (declaration "__dev_t *entry;" type_identifier (pointer_declarator "*entry" * identifier) ;) (declaration "__dev_t *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "dev_type tmp;" type_identifier identifier ;) (declaration "statfs fs_buf;" 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 "pFVar2 = p->fts_fts;" (assignment_expression "pFVar2 = p->fts_fts" identifier = (field_expression "p->fts_fts" identifier -> field_identifier)) ;) (if_statement "if ((pFVar2->fts_options & 0x200) == 0) {\n    fs_buf.f_type = 0;\n    goto LAB_00107575;\n  }" if (parenthesized_expression "((pFVar2->fts_options & 0x200) == 0)" ( (binary_expression "(pFVar2->fts_options & 0x200) == 0" (parenthesized_expression "(pFVar2->fts_options & 0x200)" ( (binary_expression "pFVar2->fts_options & 0x200" (field_expression "pFVar2->fts_options" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    fs_buf.f_type = 0;\n    goto LAB_00107575;\n  }" { (expression_statement "fs_buf.f_type = 0;" (assignment_expression "fs_buf.f_type = 0" (field_expression "fs_buf.f_type" identifier . field_identifier) = number_literal) ;) (goto_statement "goto LAB_00107575;" goto statement_identifier ;) })) (expression_statement "table = pFVar2->fts_leaf_optimization_works_ht;" (assignment_expression "table = pFVar2->fts_leaf_optimization_works_ht" identifier = (field_expression "pFVar2->fts_leaf_optimization_works_ht" identifier -> field_identifier)) ;) (if_statement "if (table == (Hash_table *)0x0) {\n    table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98);\n    pFVar2->fts_leaf_optimization_works_ht = table;\n    if (table != (Hash_table *)0x0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;\n    pvVar4 = hash_lookup(table,&tmp);\n    if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }\n  }" if (parenthesized_expression "(table == (Hash_table *)0x0)" ( (binary_expression "table == (Hash_table *)0x0" identifier == (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98);\n    pFVar2->fts_leaf_optimization_works_ht = table;\n    if (table != (Hash_table *)0x0) goto LAB_001074ad;\n  }" { (expression_statement "table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98);" (assignment_expression "table = hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98)" identifier = (call_expression "hash_initialize(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98)" identifier (argument_list "(0xd,(Hash_tuning *)0x0,dev_type_hash,dev_type_compare,\n                            (Hash_data_freer)PTR_free_0010ff98)" ( number_literal , (cast_expression "(Hash_tuning *)0x0" ( (type_descriptor "Hash_tuning *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (cast_expression "(Hash_data_freer)PTR_free_0010ff98" ( (type_descriptor "Hash_data_freer" type_identifier) ) identifier) )))) ;) (expression_statement "pFVar2->fts_leaf_optimization_works_ht = table;" (assignment_expression "pFVar2->fts_leaf_optimization_works_ht = table" (field_expression "pFVar2->fts_leaf_optimization_works_ht" identifier -> field_identifier) = identifier) ;) (if_statement "if (table != (Hash_table *)0x0) goto LAB_001074ad;" if (parenthesized_expression "(table != (Hash_table *)0x0)" ( (binary_expression "table != (Hash_table *)0x0" identifier != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001074ad;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;\n    pvVar4 = hash_lookup(table,&tmp);\n    if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }\n  }" else (compound_statement "{\nLAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;\n    pvVar4 = hash_lookup(table,&tmp);\n    if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }\n  }" { (labeled_statement "LAB_001074ad:\n    tmp.st_dev = p->fts_statp[0].st_dev;" statement_identifier : (expression_statement "tmp.st_dev = p->fts_statp[0].st_dev;" (assignment_expression "tmp.st_dev = p->fts_statp[0].st_dev" (field_expression "tmp.st_dev" identifier . field_identifier) = (field_expression "p->fts_statp[0].st_dev" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;)) (expression_statement "pvVar4 = hash_lookup(table,&tmp);" (assignment_expression "pvVar4 = hash_lookup(table,&tmp)" identifier = (call_expression "hash_lookup(table,&tmp)" identifier (argument_list "(table,&tmp)" ( identifier , (pointer_expression "&tmp" & identifier) )))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);\n      goto LAB_00107575;\n    }" { (expression_statement "fs_buf.f_type = *(fsword *)((long)pvVar4 + 8);" (assignment_expression "fs_buf.f_type = *(fsword *)((long)pvVar4 + 8)" (field_expression "fs_buf.f_type" identifier . field_identifier) = (pointer_expression "*(fsword *)((long)pvVar4 + 8)" * (cast_expression "(fsword *)((long)pvVar4 + 8)" ( (type_descriptor "fsword *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar4 + 8)" ( (binary_expression "(long)pvVar4 + 8" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00107575;" goto statement_identifier ;) })) }))) (if_statement "if (fd < 0) {\n    fs_buf.f_type = 0;\n  }\n  else {\n    iVar3 = fstatfs(fd,(statfs *)&fs_buf);\n    if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }\n  }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n    fs_buf.f_type = 0;\n  }" { (expression_statement "fs_buf.f_type = 0;" (assignment_expression "fs_buf.f_type = 0" (field_expression "fs_buf.f_type" identifier . field_identifier) = number_literal) ;) }) (else_clause "else {\n    iVar3 = fstatfs(fd,(statfs *)&fs_buf);\n    if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }\n  }" else (compound_statement "{\n    iVar3 = fstatfs(fd,(statfs *)&fs_buf);\n    if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }\n  }" { (expression_statement "iVar3 = fstatfs(fd,(statfs *)&fs_buf);" (assignment_expression "iVar3 = fstatfs(fd,(statfs *)&fs_buf)" identifier = (call_expression "fstatfs(fd,(statfs *)&fs_buf)" identifier (argument_list "(fd,(statfs *)&fs_buf)" ( identifier , (cast_expression "(statfs *)&fs_buf" ( (type_descriptor "statfs *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fs_buf" & identifier)) )))) ;) (if_statement "if (iVar3 == 0) {\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }\n    else {\n      fs_buf.f_type = 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n    }" { (if_statement "if ((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         ) {\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }" if (parenthesized_expression "((table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)\n         )" ( (binary_expression "(table != (Hash_table *)0x0) && (entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)" (parenthesized_expression "(table != (Hash_table *)0x0)" ( (binary_expression "table != (Hash_table *)0x0" identifier != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0)" ( (comma_expression "entry = (__dev_t *)malloc(0x10), entry != (__dev_t *)0x0" (assignment_expression "entry = (__dev_t *)malloc(0x10)" identifier = (cast_expression "(__dev_t *)malloc(0x10)" ( (type_descriptor "__dev_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) , (binary_expression "entry != (__dev_t *)0x0" identifier != (cast_expression "(__dev_t *)0x0" ( (type_descriptor "__dev_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        *entry = p->fts_statp[0].st_dev;\n        entry[1] = fs_buf.f_type;\n        p_Var5 = (__dev_t *)hash_insert(table,entry);\n        if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }" { (expression_statement "*entry = p->fts_statp[0].st_dev;" (assignment_expression "*entry = p->fts_statp[0].st_dev" (pointer_expression "*entry" * identifier) = (field_expression "p->fts_statp[0].st_dev" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (expression_statement "entry[1] = fs_buf.f_type;" (assignment_expression "entry[1] = fs_buf.f_type" (subscript_expression "entry[1]" identifier [ number_literal ]) = (field_expression "fs_buf.f_type" identifier . field_identifier)) ;) (expression_statement "p_Var5 = (__dev_t *)hash_insert(table,entry);" (assignment_expression "p_Var5 = (__dev_t *)hash_insert(table,entry)" identifier = (cast_expression "(__dev_t *)hash_insert(table,entry)" ( (type_descriptor "__dev_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(table,entry)" identifier (argument_list "(table,entry)" ( identifier , identifier ))))) ;) (if_statement "if (p_Var5 == (__dev_t *)0x0) {\n          free(entry);\n        }\n        else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" if (parenthesized_expression "(p_Var5 == (__dev_t *)0x0)" ( (binary_expression "p_Var5 == (__dev_t *)0x0" identifier == (cast_expression "(__dev_t *)0x0" ( (type_descriptor "__dev_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          free(entry);\n        }" { (expression_statement "free(entry);" (call_expression "free(entry)" identifier (argument_list "(entry)" ( identifier ))) ;) }) (else_clause "else if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" else (if_statement "if (entry != p_Var5) {\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" if (parenthesized_expression "(entry != p_Var5)" ( (binary_expression "entry != p_Var5" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))) })) }) (else_clause "else {\n      fs_buf.f_type = 0;\n    }" else (compound_statement "{\n      fs_buf.f_type = 0;\n    }" { (expression_statement "fs_buf.f_type = 0;" (assignment_expression "fs_buf.f_type = 0" (field_expression "fs_buf.f_type" identifier . field_identifier) = number_literal) ;) }))) }))) (labeled_statement "LAB_00107575:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return fs_buf.f_type;" return (field_expression "fs_buf.f_type" identifier . field_identifier) ;) })))
(translation_unit "long FUN_00107470(long param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}\n\n" (function_definition "long FUN_00107470(long param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00107470(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_b8 [2];" type_identifier (array_declarator "local_b8 [2]" identifier [ number_literal ]) ;) (declaration "statfs local_a8;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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 "lVar2 = *(long *)(param_1 + 0x50);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x50)" identifier = (pointer_expression "*(long *)(param_1 + 0x50)" * (cast_expression "(long *)(param_1 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }" if (parenthesized_expression "((*(byte *)(lVar2 + 0x49) & 2) == 0)" ( (binary_expression "(*(byte *)(lVar2 + 0x49) & 2) == 0" (parenthesized_expression "(*(byte *)(lVar2 + 0x49) & 2)" ( (binary_expression "*(byte *)(lVar2 + 0x49) & 2" (pointer_expression "*(byte *)(lVar2 + 0x49)" * (cast_expression "(byte *)(lVar2 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x49)" ( (binary_expression "lVar2 + 0x49" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }" { (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" identifier . field_identifier) = number_literal) ;) (goto_statement "goto LAB_00107575;" goto statement_identifier ;) })) (expression_statement "lVar3 = *(long *)(lVar2 + 0x50);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0x50)" identifier = (pointer_expression "*(long *)(lVar2 + 0x50)" * (cast_expression "(long *)(lVar2 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) ))))) ;) (if_statement "if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }" { (expression_statement "lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);" (assignment_expression "lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" identifier = (call_expression "FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" identifier (argument_list "(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "*(long *)(lVar2 + 0x50) = lVar3;" (assignment_expression "*(long *)(lVar2 + 0x50) = lVar3" (pointer_expression "*(long *)(lVar2 + 0x50)" * (cast_expression "(long *)(lVar2 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar3 != 0) goto LAB_001074ad;" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001074ad;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" else (compound_statement "{\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" { (labeled_statement "LAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);" statement_identifier : (expression_statement "local_b8[0] = *(undefined8 *)(param_1 + 0x78);" (assignment_expression "local_b8[0] = *(undefined8 *)(param_1 + 0x78)" (subscript_expression "local_b8[0]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 0x78)" * (cast_expression "(undefined8 *)(param_1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;)) (expression_statement "lVar2 = FUN_00109989(lVar3,local_b8);" (assignment_expression "lVar2 = FUN_00109989(lVar3,local_b8)" identifier = (call_expression "FUN_00109989(lVar3,local_b8)" identifier (argument_list "(lVar3,local_b8)" ( identifier , identifier )))) ;) (if_statement "if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }" { (expression_statement "local_a8.f_type = *(long *)(lVar2 + 8);" (assignment_expression "local_a8.f_type = *(long *)(lVar2 + 8)" (field_expression "local_a8.f_type" identifier . field_identifier) = (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00107575;" goto statement_identifier ;) })) }))) (if_statement "if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    local_a8.f_type = 0;\n  }" { (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" identifier . field_identifier) = number_literal) ;) }) (else_clause "else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" { (expression_statement "iVar1 = fstatfs(param_2,&local_a8);" (assignment_expression "iVar1 = fstatfs(param_2,&local_a8)" identifier = (call_expression "fstatfs(param_2,&local_a8)" identifier (argument_list "(param_2,&local_a8)" ( identifier , (pointer_expression "&local_a8" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }" { (if_statement "if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }" if (parenthesized_expression "((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0))" ( (binary_expression "(lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)" (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)" ( (comma_expression "__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0" (assignment_expression "__ptr = (undefined8 *)malloc(0x10)" identifier = (cast_expression "(undefined8 *)malloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) , (binary_expression "__ptr != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }" { (expression_statement "*__ptr = *(undefined8 *)(param_1 + 0x78);" (assignment_expression "*__ptr = *(undefined8 *)(param_1 + 0x78)" (pointer_expression "*__ptr" * identifier) = (pointer_expression "*(undefined8 *)(param_1 + 0x78)" * (cast_expression "(undefined8 *)(param_1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "__ptr[1] = local_a8.f_type;" (assignment_expression "__ptr[1] = local_a8.f_type" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = (field_expression "local_a8.f_type" identifier . field_identifier)) ;) (expression_statement "puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);" (assignment_expression "puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr)" identifier = (cast_expression "(undefined8 *)FUN_0010a16d(lVar3,__ptr)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010a16d(lVar3,__ptr)" identifier (argument_list "(lVar3,__ptr)" ( identifier , identifier ))))) ;) (if_statement "if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }" if (parenthesized_expression "(puVar4 == (undefined8 *)0x0)" ( (binary_expression "puVar4 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          free(__ptr);\n        }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else if (__ptr != puVar4) {\n                    \n          abort();\n        }" else (if_statement "if (__ptr != puVar4) {\n                    \n          abort();\n        }" if (parenthesized_expression "(__ptr != puVar4)" ( (binary_expression "__ptr != puVar4" identifier != identifier) )) (compound_statement "{\n                    \n          abort();\n        }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))) })) }) (else_clause "else {\n      local_a8.f_type = 0;\n    }" else (compound_statement "{\n      local_a8.f_type = 0;\n    }" { (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" identifier . field_identifier) = number_literal) ;) }))) }))) (labeled_statement "LAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 != *(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                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_a8.f_type;" return (field_expression "local_a8.f_type" identifier . field_identifier) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) }))) }))) (labeled_statement statement_identifier : (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return (field_expression IDENT . field_identifier) ;) })))
(function_definition "long FUN_00107470(long param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00107470(long param_1,int param_2)" (identifier "FUN_00107470") (parameter_list "(long param_1,int param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  long lVar3;\n  undefined8 *__ptr;\n  undefined8 *puVar4;\n  long in_FS_OFFSET;\n  undefined8 local_b8 [2];\n  statfs local_a8;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = *(long *)(param_1 + 0x50);\n  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }\n  lVar3 = *(long *)(lVar2 + 0x50);\n  if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }\n  if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }\nLAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_a8.f_type;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 *__ptr;" (type_identifier "undefined8") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_b8 [2];" (type_identifier "undefined8") (array_declarator "local_b8 [2]" (identifier "local_b8") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "statfs local_a8;" (type_identifier "statfs") (identifier "local_a8") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (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 "lVar2 = *(long *)(param_1 + 0x50);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x50)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_1 + 0x50)" (* "*") (cast_expression "(long *)(param_1 + 0x50)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }" (if "if") (parenthesized_expression "((*(byte *)(lVar2 + 0x49) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(lVar2 + 0x49) & 2) == 0" (parenthesized_expression "(*(byte *)(lVar2 + 0x49) & 2)" (( "(") (binary_expression "*(byte *)(lVar2 + 0x49) & 2" (pointer_expression "*(byte *)(lVar2 + 0x49)" (* "*") (cast_expression "(byte *)(lVar2 + 0x49)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x49)" (( "(") (binary_expression "lVar2 + 0x49" (identifier "lVar2") (+ "+") (number_literal "0x49")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_a8.f_type = 0;\n    goto LAB_00107575;\n  }" ({ "{") (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" (identifier "local_a8") (. ".") (field_identifier "f_type")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00107575;" (goto "goto") (statement_identifier "LAB_00107575") (; ";")) (} "}"))) (expression_statement "lVar3 = *(long *)(lVar2 + 0x50);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0x50)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(lVar2 + 0x50)" (* "*") (cast_expression "(long *)(lVar2 + 0x50)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x50)" (( "(") (binary_expression "lVar2 + 0x50" (identifier "lVar2") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (if_statement "if (lVar3 == 0) {\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }\n  else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);\n    *(long *)(lVar2 + 0x50) = lVar3;\n    if (lVar3 != 0) goto LAB_001074ad;\n  }" ({ "{") (expression_statement "lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);" (assignment_expression "lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" (identifier "lVar3") (= "=") (call_expression "FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" (identifier "FUN_00109b7d") (argument_list "(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98)" (( "(") (number_literal "0xd") (, ",") (number_literal "0") (, ",") (identifier "FUN_00106f7c") (, ",") (identifier "FUN_00106f8b") (, ",") (identifier "PTR_free_0010ff98") () ")")))) (; ";")) (expression_statement "*(long *)(lVar2 + 0x50) = lVar3;" (assignment_expression "*(long *)(lVar2 + 0x50) = lVar3" (pointer_expression "*(long *)(lVar2 + 0x50)" (* "*") (cast_expression "(long *)(lVar2 + 0x50)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x50)" (( "(") (binary_expression "lVar2 + 0x50" (identifier "lVar2") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "lVar3")) (; ";")) (if_statement "if (lVar3 != 0) goto LAB_001074ad;" (if "if") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001074ad;" (goto "goto") (statement_identifier "LAB_001074ad") (; ";"))) (} "}")) (else_clause "else {\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" (else "else") (compound_statement "{\nLAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);\n    lVar2 = FUN_00109989(lVar3,local_b8);\n    if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }\n  }" ({ "{") (labeled_statement "LAB_001074ad:\n    local_b8[0] = *(undefined8 *)(param_1 + 0x78);" (statement_identifier "LAB_001074ad") (: ":") (expression_statement "local_b8[0] = *(undefined8 *)(param_1 + 0x78);" (assignment_expression "local_b8[0] = *(undefined8 *)(param_1 + 0x78)" (subscript_expression "local_b8[0]" (identifier "local_b8") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";"))) (expression_statement "lVar2 = FUN_00109989(lVar3,local_b8);" (assignment_expression "lVar2 = FUN_00109989(lVar3,local_b8)" (identifier "lVar2") (= "=") (call_expression "FUN_00109989(lVar3,local_b8)" (identifier "FUN_00109989") (argument_list "(lVar3,local_b8)" (( "(") (identifier "lVar3") (, ",") (identifier "local_b8") () ")")))) (; ";")) (if_statement "if (lVar2 != 0) {\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_a8.f_type = *(long *)(lVar2 + 8);\n      goto LAB_00107575;\n    }" ({ "{") (expression_statement "local_a8.f_type = *(long *)(lVar2 + 8);" (assignment_expression "local_a8.f_type = *(long *)(lVar2 + 8)" (field_expression "local_a8.f_type" (identifier "local_a8") (. ".") (field_identifier "f_type")) (= "=") (pointer_expression "*(long *)(lVar2 + 8)" (* "*") (cast_expression "(long *)(lVar2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (goto_statement "goto LAB_00107575;" (goto "goto") (statement_identifier "LAB_00107575") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_2 < 0) {\n    local_a8.f_type = 0;\n  }\n  else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    local_a8.f_type = 0;\n  }" ({ "{") (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" (identifier "local_a8") (. ".") (field_identifier "f_type")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = fstatfs(param_2,&local_a8);\n    if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = fstatfs(param_2,&local_a8);" (assignment_expression "iVar1 = fstatfs(param_2,&local_a8)" (identifier "iVar1") (= "=") (call_expression "fstatfs(param_2,&local_a8)" (identifier "fstatfs") (argument_list "(param_2,&local_a8)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_a8" (& "&") (identifier "local_a8")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }\n    else {\n      local_a8.f_type = 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }\n    }" ({ "{") (if_statement "if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }" (if "if") (parenthesized_expression "((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0))" (( "(") (binary_expression "(lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)" (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)" (( "(") (comma_expression "__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0" (assignment_expression "__ptr = (undefined8 *)malloc(0x10)" (identifier "__ptr") (= "=") (cast_expression "(undefined8 *)malloc(0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x10)" (identifier "malloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (, ",") (binary_expression "__ptr != (undefined8 *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n        *__ptr = *(undefined8 *)(param_1 + 0x78);\n        __ptr[1] = local_a8.f_type;\n        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);\n        if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }\n      }" ({ "{") (expression_statement "*__ptr = *(undefined8 *)(param_1 + 0x78);" (assignment_expression "*__ptr = *(undefined8 *)(param_1 + 0x78)" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "__ptr[1] = local_a8.f_type;" (assignment_expression "__ptr[1] = local_a8.f_type" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (= "=") (field_expression "local_a8.f_type" (identifier "local_a8") (. ".") (field_identifier "f_type"))) (; ";")) (expression_statement "puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);" (assignment_expression "puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr)" (identifier "puVar4") (= "=") (cast_expression "(undefined8 *)FUN_0010a16d(lVar3,__ptr)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010a16d(lVar3,__ptr)" (identifier "FUN_0010a16d") (argument_list "(lVar3,__ptr)" (( "(") (identifier "lVar3") (, ",") (identifier "__ptr") () ")"))))) (; ";")) (if_statement "if (puVar4 == (undefined8 *)0x0) {\n          free(__ptr);\n        }\n        else if (__ptr != puVar4) {\n                    \n          abort();\n        }" (if "if") (parenthesized_expression "(puVar4 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar4 == (undefined8 *)0x0" (identifier "puVar4") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          free(__ptr);\n        }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")) (else_clause "else if (__ptr != puVar4) {\n                    \n          abort();\n        }" (else "else") (if_statement "if (__ptr != puVar4) {\n                    \n          abort();\n        }" (if "if") (parenthesized_expression "(__ptr != puVar4)" (( "(") (binary_expression "__ptr != puVar4" (identifier "__ptr") (!= "!=") (identifier "puVar4")) () ")")) (compound_statement "{\n                    \n          abort();\n        }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))) (} "}"))) (} "}")) (else_clause "else {\n      local_a8.f_type = 0;\n    }" (else "else") (compound_statement "{\n      local_a8.f_type = 0;\n    }" ({ "{") (expression_statement "local_a8.f_type = 0;" (assignment_expression "local_a8.f_type = 0" (field_expression "local_a8.f_type" (identifier "local_a8") (. ".") (field_identifier "f_type")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_00107575:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_00107575") (: ":") (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (!= "!=") (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                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return local_a8.f_type;" (return "return") (field_expression "local_a8.f_type" (identifier "local_a8") (. ".") (field_identifier "f_type")) (; ";")) (} "}")))

type_1 function_1(type_2 *p,int var_6)

{
  long var_15;
  type_3 *pFVar2;
  int var_8;
  void *var_5;
  type_4 *var_2;
  type_5 *var_10;
  type_5 *var_12;
  long var_1;
  type_6 tmp;
  type_7 fs_buf;
  
  var_15 = *(long *)(var_1 + 0x28);
  pFVar2 = p->fts_fts;
  if ((pFVar2->fts_options & 0x200) == 0) {
    fs_buf.f_type = 0;
    goto LAB_00107575;
  }
  var_2 = pFVar2->fts_leaf_optimization_works_ht;
  if (var_2 == (type_4 *)0x0) {
    var_2 = var_3(0xd,(type_8 *)0x0,dev_type_hash,dev_type_compare,
                            (type_9)PTR_free_0010ff98);
    pFVar2->fts_leaf_optimization_works_ht = var_2;
    if (var_2 != (type_4 *)0x0) goto LAB_001074ad;
  }
  else {
LAB_001074ad:
    tmp.st_dev = p->fts_statp[0].st_dev;
    var_5 = var_4(var_2,&tmp);
    if (var_5 != (void *)0x0) {
      fs_buf.f_type = *(type_1 *)((long)var_5 + 8);
      goto LAB_00107575;
    }
  }
  if (var_6 < 0) {
    fs_buf.f_type = 0;
  }
  else {
    var_8 = var_7(var_6,(type_7 *)&fs_buf);
    if (var_8 == 0) {
      if ((var_2 != (type_4 *)0x0) && (var_10 = (type_5 *)var_9(0x10), var_10 != (type_5 *)0x0)
         ) {
        *var_10 = p->fts_statp[0].st_dev;
        var_10[1] = fs_buf.f_type;
        var_12 = (type_5 *)var_11(var_2,var_10);
        if (var_12 == (type_5 *)0x0) {
          var_13(var_10);
        }
        else if (var_10 != var_12) {
                    /* WARNING: Subroutine does not return */
          var_14();
        }
      }
    }
    else {
      fs_buf.f_type = 0;
    }
  }
LAB_00107575:
  if (var_15 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return fs_buf.f_type;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (goto_statement label: (statement_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))))))) (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: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (field_expression argument: (identifier) field: (field_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))))))) (goto_statement label: (statement_identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))))))) (labeled_statement label: (statement_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 (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (field_expression argument: (identifier) field: (field_identifier))))))

long MASKED(long param_1,int param_2)

{
  int iVar1;
  long lVar2;
  long lVar3;
  undefined8 *__ptr;
  undefined8 *puVar4;
  long in_FS_OFFSET;
  undefined8 local_b8 [2];
  statfs local_a8;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  lVar2 = *(long *)(param_1 + 0x50);
  if ((*(byte *)(lVar2 + 0x49) & 2) == 0) {
    local_a8.f_type = 0;
    goto LAB_00107575;
  }
  lVar3 = *(long *)(lVar2 + 0x50);
  if (lVar3 == 0) {
    lVar3 = FUN_00109b7d(0xd,0,FUN_00106f7c,FUN_00106f8b,PTR_free_0010ff98);
    *(long *)(lVar2 + 0x50) = lVar3;
    if (lVar3 != 0) goto LAB_001074ad;
  }
  else {
LAB_001074ad:
    local_b8[0] = *(undefined8 *)(param_1 + 0x78);
    lVar2 = FUN_00109989(lVar3,local_b8);
    if (lVar2 != 0) {
      local_a8.f_type = *(long *)(lVar2 + 8);
      goto LAB_00107575;
    }
  }
  if (param_2 < 0) {
    local_a8.f_type = 0;
  }
  else {
    iVar1 = fstatfs(param_2,&local_a8);
    if (iVar1 == 0) {
      if ((lVar3 != 0) && (__ptr = (undefined8 *)malloc(0x10), __ptr != (undefined8 *)0x0)) {
        *__ptr = *(undefined8 *)(param_1 + 0x78);
        __ptr[1] = local_a8.f_type;
        puVar4 = (undefined8 *)FUN_0010a16d(lVar3,__ptr);
        if (puVar4 == (undefined8 *)0x0) {
          free(__ptr);
        }
        else if (__ptr != puVar4) {
                    /* WARNING: Subroutine does not return */
          abort();
        }
      }
    }
    else {
      local_a8.f_type = 0;
    }
  }
LAB_00107575:
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return local_a8.f_type;
}

