
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int get_fs_usage(char *file,char *disk,fs_usage *fsp)

{
  int iVar1;
  int iVar2;
  __fsword_t _Var3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  statfs fsd;
  char local_126 [262];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1cf09;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (statvfs_works_cache_2292 < 0) {
    iVar2 = uname((utsname *)&fsd);
    if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {
      statvfs_works_cache_2292 = 0;
      goto LAB_0001cfaa;
    }
    statvfs_works_cache_2292 = 1;
LAB_0001cf42:
    iVar1 = statvfs64(file,(statvfs64 *)&fsd);
    iVar2 = -1;
    if (iVar1 < 0) goto LAB_0001d041;
    if (fsd.f_bsize != 0) {
      fsd.f_type = fsd.f_bsize;
    }
    uVar4 = 0xffffffff;
    iVar2 = -1;
    if (fsd.f_type != -1) {
      uVar4 = 0;
      iVar2 = fsd.f_type;
    }
    *(int *)&fsp->fsu_blocksize = iVar2;
    *(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;
  }
  else {
    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;
LAB_0001cfaa:
    iVar2 = statfs64(file,(statfs64 *)&fsd);
    if (iVar2 < 0) {
      iVar2 = -1;
      goto LAB_0001d041;
    }
    iVar2 = -1;
    _Var3 = -1;
    if (fsd.f_bsize != -1) {
      iVar2 = fsd.f_bsize >> 0x1f;
      _Var3 = fsd.f_bsize;
    }
    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;
    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;
  }
  *(undefined4 *)&fsp->fsu_blocks = (undefined4)fsd.f_blocks;
  *(undefined4 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_;
  *(undefined4 *)&fsp->fsu_bfree = (undefined4)fsd.f_bfree;
  *(undefined4 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_;
  *(undefined4 *)&fsp->fsu_bavail = (undefined4)fsd.f_bavail;
  *(uint *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_;
  fsp->fsu_bavail_top_bit_set = SUB41(fsd.f_bavail._4_4_ >> 0x1f,0);
  *(undefined4 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_;
  *(undefined4 *)&fsp->fsu_files = (undefined4)fsd.f_files;
  *(undefined4 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_;
  *(undefined4 *)&fsp->fsu_ffree = (undefined4)fsd.f_ffree;
  iVar2 = 0;
LAB_0001d041:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int in_GS_OFFSET;
  utsname local_1a8;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1cf09;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (DAT_0002c340 < 0) {
    iVar1 = uname(&local_1a8);
    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {
      DAT_0002c340 = 0;
      goto LAB_0001cfaa;
    }
    DAT_0002c340 = 1;
LAB_0001cf42:
    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);
    uVar2 = 0xffffffff;
    if (iVar1 < 0) goto LAB_0001d041;
    if (local_1a8.sysname._4_4_ != 0) {
      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;
    }
    iVar1 = -1;
    iVar3 = -1;
    if (local_1a8.sysname._0_4_ != -1) {
      iVar1 = 0;
      iVar3 = local_1a8.sysname._0_4_;
    }
    *param_3 = iVar3;
    param_3[1] = iVar1;
  }
  else {
    if (DAT_0002c340 != 0) goto LAB_0001cf42;
LAB_0001cfaa:
    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);
    if (iVar1 < 0) {
      uVar2 = 0xffffffff;
      goto LAB_0001d041;
    }
    iVar3 = -1;
    iVar1 = -1;
    if (local_1a8.sysname._4_4_ != -1) {
      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;
      iVar1 = local_1a8.sysname._4_4_;
    }
    *param_3 = iVar1;
    param_3[1] = iVar3;
  }
  param_3[2] = local_1a8.sysname._8_4_;
  param_3[3] = local_1a8.sysname._12_4_;
  param_3[4] = local_1a8.sysname._16_4_;
  param_3[5] = local_1a8.sysname._20_4_;
  param_3[6] = local_1a8.sysname._24_4_;
  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;
  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;
  param_3[10] = local_1a8.sysname._36_4_;
  param_3[9] = local_1a8.sysname._32_4_;
  param_3[0xc] = local_1a8.sysname._44_4_;
  param_3[0xb] = local_1a8.sysname._40_4_;
  uVar2 = 0;
LAB_0001d041:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00023310();
  }
  return uVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f80
ADD EBX,0xf0f7
SUB ESP,0x19c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x18c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x1b0]
MOV ESI,dword ptr [ESP + 0x1b8]
MOV EAX,dword ptr [EBX + 0x340]
TEST EAX,EAX
JS 0x0001cf88
LEA EDI,[ESP + 0x4]
JZ 0x0001cfaa
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x000120d0
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,0xffffffff
TEST EDX,EDX
JS 0x0001d041
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0001d060
MOV ECX,0xffffffff
MOV EBX,0xffffffff
CMP EAX,-0x1
JZ 0x0001cf7d
MOV ECX,EAX
XOR EBX,EBX
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x4],EBX
JMP 0x0001cfda
SUB ESP,0xc
LEA EDI,[ESP + 0x10]
PUSH EDI
CALL 0x00012160
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001d080
MOV dword ptr [EBX + 0x340],0x0
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x000122c0
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001d0b1
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,0xffffffff
MOV EDX,0xffffffff
CMP ECX,-0x1
JZ 0x0001cfd5
MOV EAX,ECX
CDQ
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x4],EDX
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
XOR ECX,ECX
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0xc],EDX
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI + 0x10],EAX
MOV dword ptr [ESI + 0x14],EDX
MOV EAX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x1c]
MOV EDI,EAX
AND EDI,0x80000000
NEG ECX
MOV EBX,EDI
ADC EBX,0x0
OR EDX,ECX
NEG EBX
MOV dword ptr [ESI + 0x18],EDX
MOV EDX,EBX
OR EDX,EAX
SHR EAX,0x1f
MOV dword ptr [ESI + 0x1c],EDX
MOV EDX,dword ptr [ESP + 0x28]
MOV byte ptr [ESI + 0x20],AL
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [ESI + 0x28],EDX
MOV dword ptr [ESI + 0x24],EAX
MOV EDX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESI + 0x30],EDX
MOV dword ptr [ESI + 0x2c],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x18c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0001d0b8
ADD ESP,0x19c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x4]
MOV ECX,0xffffffff
MOV EBX,0xffffffff
CMP EAX,-0x1
JNZ 0x0001cf79
JMP 0x0001cf7d
SUB ESP,0x8
LEA EAX,[EBX + 0xffff9e53]
PUSH EAX
LEA EAX,[ESP + 0x92]
PUSH EAX
CALL 0x00012370
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001cfa0
MOV dword ptr [EBX + 0x340],0x1
JMP 0x0001cf42
MOV EAX,0xffffffff
JMP 0x0001d041
CALL 0x00023310
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023310();\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023310();\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023310();\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "utsname local_1a8;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1cf09;" (assignment_expression "uStack_14 = 0x1cf09" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" if (parenthesized_expression "(DAT_0002c340 < 0)" ( (binary_expression "DAT_0002c340 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }" { (expression_statement "iVar1 = uname(&local_1a8);" (assignment_expression "iVar1 = uname(&local_1a8)" identifier = (call_expression "uname(&local_1a8)" identifier (argument_list "(&local_1a8)" ( (pointer_expression "&local_1a8" & identifier) )))) ;) (if_statement "if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }" if (parenthesized_expression "((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0))" ( (binary_expression "(iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)" ( (comma_expression "iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0" (assignment_expression "iVar1 = strverscmp(local_1a8.release,"2.6.36")" identifier = (call_expression "strverscmp(local_1a8.release,"2.6.36")" identifier (argument_list "(local_1a8.release,"2.6.36")" ( (field_expression "local_1a8.release" identifier . field_identifier) , (string_literal ""2.6.36"" " string_content ") )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }" { (expression_statement "DAT_0002c340 = 0;" (assignment_expression "DAT_0002c340 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001cfaa;" goto statement_identifier ;) })) (expression_statement "DAT_0002c340 = 1;" (assignment_expression "DAT_0002c340 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);" statement_identifier : (expression_statement "iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);" (assignment_expression "iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8)" identifier = (call_expression "statvfs64(param_1,(statvfs64 *)&local_1a8)" identifier (argument_list "(param_1,(statvfs64 *)&local_1a8)" ( identifier , (cast_expression "(statvfs64 *)&local_1a8" ( (type_descriptor "statvfs64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1a8" & identifier)) )))) ;)) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar1 < 0) goto LAB_0001d041;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001d041;" goto statement_identifier ;)) (if_statement "if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }" if (parenthesized_expression "(local_1a8.sysname._4_4_ != 0)" ( (binary_expression "local_1a8.sysname._4_4_ != 0" (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }" { (expression_statement "local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;" (assignment_expression "local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) = (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) })) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }" if (parenthesized_expression "(local_1a8.sysname._0_4_ != -1)" ( (binary_expression "local_1a8.sysname._0_4_ != -1" (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = local_1a8.sysname._0_4_;" (assignment_expression "iVar3 = local_1a8.sysname._0_4_" identifier = (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) })) (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[1] = iVar1;" (assignment_expression "param_3[1] = iVar1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" else (compound_statement "{\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" { (if_statement "if (DAT_0002c340 != 0) goto LAB_0001cf42;" if (parenthesized_expression "(DAT_0002c340 != 0)" ( (binary_expression "DAT_0002c340 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001cf42;" goto statement_identifier ;)) (labeled_statement "LAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);" statement_identifier : (expression_statement "iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);" (assignment_expression "iVar1 = statfs64(param_1,(statfs64 *)&local_1a8)" identifier = (call_expression "statfs64(param_1,(statfs64 *)&local_1a8)" identifier (argument_list "(param_1,(statfs64 *)&local_1a8)" ( identifier , (cast_expression "(statfs64 *)&local_1a8" ( (type_descriptor "statfs64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1a8" & identifier)) )))) ;)) (if_statement "if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0001d041;" goto statement_identifier ;) })) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (if_statement "if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }" if (parenthesized_expression "(local_1a8.sysname._4_4_ != -1)" ( (binary_expression "local_1a8.sysname._4_4_ != -1" (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }" { (expression_statement "iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;" (assignment_expression "iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f" identifier = (binary_expression "(int)local_1a8.sysname._4_4_ >> 0x1f" (cast_expression "(int)local_1a8.sysname._4_4_" ( (type_descriptor "int" primitive_type) ) (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) >> number_literal)) ;) (expression_statement "iVar1 = local_1a8.sysname._4_4_;" (assignment_expression "iVar1 = local_1a8.sysname._4_4_" identifier = (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) })) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[1] = iVar3;" (assignment_expression "param_3[1] = iVar3" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "param_3[2] = local_1a8.sysname._8_4_;" (assignment_expression "param_3[2] = local_1a8.sysname._8_4_" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._8_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[3] = local_1a8.sysname._12_4_;" (assignment_expression "param_3[3] = local_1a8.sysname._12_4_" (subscript_expression "param_3[3]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._12_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[4] = local_1a8.sysname._16_4_;" (assignment_expression "param_3[4] = local_1a8.sysname._16_4_" (subscript_expression "param_3[4]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._16_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[5] = local_1a8.sysname._20_4_;" (assignment_expression "param_3[5] = local_1a8.sysname._20_4_" (subscript_expression "param_3[5]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._20_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[6] = local_1a8.sysname._24_4_;" (assignment_expression "param_3[6] = local_1a8.sysname._24_4_" (subscript_expression "param_3[6]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._24_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;" (assignment_expression "param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_" (subscript_expression "param_3[7]" identifier [ number_literal ]) = (binary_expression "-(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_" (unary_expression "-(local_1a8.sysname._28_4_ & 0x80000000)" - (parenthesized_expression "(local_1a8.sysname._28_4_ & 0x80000000)" ( (binary_expression "local_1a8.sysname._28_4_ & 0x80000000" (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) & number_literal) ))) | (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier))) ;) (expression_statement "*(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;" (assignment_expression "*(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7" (pointer_expression "*(byte *)(param_3 + 8)" * (cast_expression "(byte *)(param_3 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = (binary_expression "SUB41(local_1a8.sysname._28_4_,3) >> 7" (call_expression "SUB41(local_1a8.sysname._28_4_,3)" identifier (argument_list "(local_1a8.sysname._28_4_,3)" ( (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) , number_literal ))) >> number_literal)) ;) (expression_statement "param_3[10] = local_1a8.sysname._36_4_;" (assignment_expression "param_3[10] = local_1a8.sysname._36_4_" (subscript_expression "param_3[10]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._36_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[9] = local_1a8.sysname._32_4_;" (assignment_expression "param_3[9] = local_1a8.sysname._32_4_" (subscript_expression "param_3[9]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._32_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[0xc] = local_1a8.sysname._44_4_;" (assignment_expression "param_3[0xc] = local_1a8.sysname._44_4_" (subscript_expression "param_3[0xc]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._44_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[0xb] = local_1a8.sysname._40_4_;" (assignment_expression "param_3[0xb] = local_1a8.sysname._40_4_" (subscript_expression "param_3[0xb]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._40_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023310();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00023310();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00023310();\n  }" { comment (expression_statement "FUN_00023310();" (call_expression "FUN_00023310()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint get_fs_usage(char *file,char *disk,fs_usage *fsp)\n\n{\n  int iVar1;\n  int iVar2;\n  __fsword_t _Var3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  statfs fsd;\n  char local_126 [262];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (statvfs_works_cache_2292 < 0) {\n    iVar2 = uname((utsname *)&fsd);\n    if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }\n    statvfs_works_cache_2292 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(file,(statvfs64 *)&fsd);\n    iVar2 = -1;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (fsd.f_bsize != 0) {\n      fsd.f_type = fsd.f_bsize;\n    }\n    uVar4 = 0xffffffff;\n    iVar2 = -1;\n    if (fsd.f_type != -1) {\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }\n    *(int *)&fsp->fsu_blocksize = iVar2;\n    *(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;\n  }\n  else {\n    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);\n    if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }\n    iVar2 = -1;\n    _Var3 = -1;\n    if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }\n    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;\n    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;\n  }\n  *(undefined4 *)&fsp->fsu_blocks = (undefined4)fsd.f_blocks;\n  *(undefined4 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_;\n  *(undefined4 *)&fsp->fsu_bfree = (undefined4)fsd.f_bfree;\n  *(undefined4 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_;\n  *(undefined4 *)&fsp->fsu_bavail = (undefined4)fsd.f_bavail;\n  *(uint *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_;\n  fsp->fsu_bavail_top_bit_set = SUB41(fsd.f_bavail._4_4_ >> 0x1f,0);\n  *(undefined4 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_;\n  *(undefined4 *)&fsp->fsu_files = (undefined4)fsd.f_files;\n  *(undefined4 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_;\n  *(undefined4 *)&fsp->fsu_ffree = (undefined4)fsd.f_ffree;\n  iVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int get_fs_usage(char *file,char *disk,fs_usage *fsp)\n\n{\n  int iVar1;\n  int iVar2;\n  __fsword_t _Var3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  statfs fsd;\n  char local_126 [262];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (statvfs_works_cache_2292 < 0) {\n    iVar2 = uname((utsname *)&fsd);\n    if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }\n    statvfs_works_cache_2292 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(file,(statvfs64 *)&fsd);\n    iVar2 = -1;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (fsd.f_bsize != 0) {\n      fsd.f_type = fsd.f_bsize;\n    }\n    uVar4 = 0xffffffff;\n    iVar2 = -1;\n    if (fsd.f_type != -1) {\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }\n    *(int *)&fsp->fsu_blocksize = iVar2;\n    *(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;\n  }\n  else {\n    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);\n    if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }\n    iVar2 = -1;\n    _Var3 = -1;\n    if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }\n    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;\n    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;\n  }\n  *(undefined4 *)&fsp->fsu_blocks = (undefined4)fsd.f_blocks;\n  *(undefined4 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_;\n  *(undefined4 *)&fsp->fsu_bfree = (undefined4)fsd.f_bfree;\n  *(undefined4 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_;\n  *(undefined4 *)&fsp->fsu_bavail = (undefined4)fsd.f_bavail;\n  *(uint *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_;\n  fsp->fsu_bavail_top_bit_set = SUB41(fsd.f_bavail._4_4_ >> 0x1f,0);\n  *(undefined4 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_;\n  *(undefined4 *)&fsp->fsu_files = (undefined4)fsd.f_files;\n  *(undefined4 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_;\n  *(undefined4 *)&fsp->fsu_ffree = (undefined4)fsd.f_ffree;\n  iVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "get_fs_usage(char *file,char *disk,fs_usage *fsp)" identifier (parameter_list "(char *file,char *disk,fs_usage *fsp)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "char *disk" primitive_type (pointer_declarator "*disk" * identifier)) , (parameter_declaration "fs_usage *fsp" type_identifier (pointer_declarator "*fsp" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  __fsword_t _Var3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  statfs fsd;\n  char local_126 [262];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (statvfs_works_cache_2292 < 0) {\n    iVar2 = uname((utsname *)&fsd);\n    if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }\n    statvfs_works_cache_2292 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(file,(statvfs64 *)&fsd);\n    iVar2 = -1;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (fsd.f_bsize != 0) {\n      fsd.f_type = fsd.f_bsize;\n    }\n    uVar4 = 0xffffffff;\n    iVar2 = -1;\n    if (fsd.f_type != -1) {\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }\n    *(int *)&fsp->fsu_blocksize = iVar2;\n    *(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;\n  }\n  else {\n    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);\n    if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }\n    iVar2 = -1;\n    _Var3 = -1;\n    if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }\n    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;\n    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;\n  }\n  *(undefined4 *)&fsp->fsu_blocks = (undefined4)fsd.f_blocks;\n  *(undefined4 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_;\n  *(undefined4 *)&fsp->fsu_bfree = (undefined4)fsd.f_bfree;\n  *(undefined4 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_;\n  *(undefined4 *)&fsp->fsu_bavail = (undefined4)fsd.f_bavail;\n  *(uint *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_;\n  fsp->fsu_bavail_top_bit_set = SUB41(fsd.f_bavail._4_4_ >> 0x1f,0);\n  *(undefined4 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_;\n  *(undefined4 *)&fsp->fsu_files = (undefined4)fsd.f_files;\n  *(undefined4 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_;\n  *(undefined4 *)&fsp->fsu_ffree = (undefined4)fsd.f_ffree;\n  iVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "__fsword_t _Var3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "statfs fsd;" type_identifier identifier ;) (declaration "char local_126 [262];" primitive_type (array_declarator "local_126 [262]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1cf09;" (assignment_expression "uStack_14 = 0x1cf09" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (statvfs_works_cache_2292 < 0) {\n    iVar2 = uname((utsname *)&fsd);\n    if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }\n    statvfs_works_cache_2292 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(file,(statvfs64 *)&fsd);\n    iVar2 = -1;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (fsd.f_bsize != 0) {\n      fsd.f_type = fsd.f_bsize;\n    }\n    uVar4 = 0xffffffff;\n    iVar2 = -1;\n    if (fsd.f_type != -1) {\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }\n    *(int *)&fsp->fsu_blocksize = iVar2;\n    *(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;\n  }\n  else {\n    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);\n    if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }\n    iVar2 = -1;\n    _Var3 = -1;\n    if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }\n    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;\n    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;\n  }" if (parenthesized_expression "(statvfs_works_cache_2292 < 0)" ( (binary_expression "statvfs_works_cache_2292 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = uname((utsname *)&fsd);\n    if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }\n    statvfs_works_cache_2292 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(file,(statvfs64 *)&fsd);\n    iVar2 = -1;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (fsd.f_bsize != 0) {\n      fsd.f_type = fsd.f_bsize;\n    }\n    uVar4 = 0xffffffff;\n    iVar2 = -1;\n    if (fsd.f_type != -1) {\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }\n    *(int *)&fsp->fsu_blocksize = iVar2;\n    *(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;\n  }" { (expression_statement "iVar2 = uname((utsname *)&fsd);" (assignment_expression "iVar2 = uname((utsname *)&fsd)" identifier = (call_expression "uname((utsname *)&fsd)" identifier (argument_list "((utsname *)&fsd)" ( (cast_expression "(utsname *)&fsd" ( (type_descriptor "utsname *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsd" & identifier)) )))) ;) (if_statement "if ((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)) {\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }" if (parenthesized_expression "((iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0))" ( (binary_expression "(iVar2 != 0) || (iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0)" ( (comma_expression "iVar2 = strverscmp(local_126,"2.6.36"), iVar2 < 0" (assignment_expression "iVar2 = strverscmp(local_126,"2.6.36")" identifier = (call_expression "strverscmp(local_126,"2.6.36")" identifier (argument_list "(local_126,"2.6.36")" ( identifier , (string_literal ""2.6.36"" " string_content ") )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      statvfs_works_cache_2292 = 0;\n      goto LAB_0001cfaa;\n    }" { (expression_statement "statvfs_works_cache_2292 = 0;" (assignment_expression "statvfs_works_cache_2292 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001cfaa;" goto statement_identifier ;) })) (expression_statement "statvfs_works_cache_2292 = 1;" (assignment_expression "statvfs_works_cache_2292 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0001cf42:\n    iVar1 = statvfs64(file,(statvfs64 *)&fsd);" statement_identifier : (expression_statement "iVar1 = statvfs64(file,(statvfs64 *)&fsd);" (assignment_expression "iVar1 = statvfs64(file,(statvfs64 *)&fsd)" identifier = (call_expression "statvfs64(file,(statvfs64 *)&fsd)" identifier (argument_list "(file,(statvfs64 *)&fsd)" ( identifier , (cast_expression "(statvfs64 *)&fsd" ( (type_descriptor "statvfs64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsd" & identifier)) )))) ;)) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (if_statement "if (iVar1 < 0) goto LAB_0001d041;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001d041;" goto statement_identifier ;)) (if_statement "if (fsd.f_bsize != 0) {\n      fsd.f_type = fsd.f_bsize;\n    }" if (parenthesized_expression "(fsd.f_bsize != 0)" ( (binary_expression "fsd.f_bsize != 0" (field_expression "fsd.f_bsize" identifier . field_identifier) != number_literal) )) (compound_statement "{\n      fsd.f_type = fsd.f_bsize;\n    }" { (expression_statement "fsd.f_type = fsd.f_bsize;" (assignment_expression "fsd.f_type = fsd.f_bsize" (field_expression "fsd.f_type" identifier . field_identifier) = (field_expression "fsd.f_bsize" identifier . field_identifier)) ;) })) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (if_statement "if (fsd.f_type != -1) {\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }" if (parenthesized_expression "(fsd.f_type != -1)" ( (binary_expression "fsd.f_type != -1" (field_expression "fsd.f_type" identifier . field_identifier) != number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      iVar2 = fsd.f_type;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = fsd.f_type;" (assignment_expression "iVar2 = fsd.f_type" identifier = (field_expression "fsd.f_type" identifier . field_identifier)) ;) })) (expression_statement "*(int *)&fsp->fsu_blocksize = iVar2;" (assignment_expression "*(int *)&fsp->fsu_blocksize = iVar2" (pointer_expression "*(int *)&fsp->fsu_blocksize" * (cast_expression "(int *)&fsp->fsu_blocksize" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_blocksize" & (field_expression "fsp->fsu_blocksize" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4;" (assignment_expression "*(undefined4 *)((int)&fsp->fsu_blocksize + 4) = uVar4" (pointer_expression "*(undefined4 *)((int)&fsp->fsu_blocksize + 4)" * (cast_expression "(undefined4 *)((int)&fsp->fsu_blocksize + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_blocksize + 4)" ( (binary_expression "(int)&fsp->fsu_blocksize + 4" (cast_expression "(int)&fsp->fsu_blocksize" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_blocksize" & (field_expression "fsp->fsu_blocksize" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);\n    if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }\n    iVar2 = -1;\n    _Var3 = -1;\n    if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }\n    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;\n    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;\n  }" else (compound_statement "{\n    if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);\n    if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }\n    iVar2 = -1;\n    _Var3 = -1;\n    if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }\n    *(__fsword_t *)&fsp->fsu_blocksize = _Var3;\n    *(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;\n  }" { (if_statement "if (statvfs_works_cache_2292 != 0) goto LAB_0001cf42;" if (parenthesized_expression "(statvfs_works_cache_2292 != 0)" ( (binary_expression "statvfs_works_cache_2292 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001cf42;" goto statement_identifier ;)) (labeled_statement "LAB_0001cfaa:\n    iVar2 = statfs64(file,(statfs64 *)&fsd);" statement_identifier : (expression_statement "iVar2 = statfs64(file,(statfs64 *)&fsd);" (assignment_expression "iVar2 = statfs64(file,(statfs64 *)&fsd)" identifier = (call_expression "statfs64(file,(statfs64 *)&fsd)" identifier (argument_list "(file,(statfs64 *)&fsd)" ( identifier , (cast_expression "(statfs64 *)&fsd" ( (type_descriptor "statfs64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsd" & identifier)) )))) ;)) (if_statement "if (iVar2 < 0) {\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = -1;\n      goto LAB_0001d041;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0001d041;" goto statement_identifier ;) })) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "_Var3 = -1;" (assignment_expression "_Var3 = -1" identifier = number_literal) ;) (if_statement "if (fsd.f_bsize != -1) {\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }" if (parenthesized_expression "(fsd.f_bsize != -1)" ( (binary_expression "fsd.f_bsize != -1" (field_expression "fsd.f_bsize" identifier . field_identifier) != number_literal) )) (compound_statement "{\n      iVar2 = fsd.f_bsize >> 0x1f;\n      _Var3 = fsd.f_bsize;\n    }" { (expression_statement "iVar2 = fsd.f_bsize >> 0x1f;" (assignment_expression "iVar2 = fsd.f_bsize >> 0x1f" identifier = (binary_expression "fsd.f_bsize >> 0x1f" (field_expression "fsd.f_bsize" identifier . field_identifier) >> number_literal)) ;) (expression_statement "_Var3 = fsd.f_bsize;" (assignment_expression "_Var3 = fsd.f_bsize" identifier = (field_expression "fsd.f_bsize" identifier . field_identifier)) ;) })) (expression_statement "*(__fsword_t *)&fsp->fsu_blocksize = _Var3;" (assignment_expression "*(__fsword_t *)&fsp->fsu_blocksize = _Var3" (pointer_expression "*(__fsword_t *)&fsp->fsu_blocksize" * (cast_expression "(__fsword_t *)&fsp->fsu_blocksize" ( (type_descriptor "__fsword_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_blocksize" & (field_expression "fsp->fsu_blocksize" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&fsp->fsu_blocksize + 4) = iVar2;" (assignment_expression "*(int *)((int)&fsp->fsu_blocksize + 4) = iVar2" (pointer_expression "*(int *)((int)&fsp->fsu_blocksize + 4)" * (cast_expression "(int *)((int)&fsp->fsu_blocksize + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_blocksize + 4)" ( (binary_expression "(int)&fsp->fsu_blocksize + 4" (cast_expression "(int)&fsp->fsu_blocksize" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_blocksize" & (field_expression "fsp->fsu_blocksize" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) }))) (expression_statement "*(undefined4 *)&fsp->fsu_blocks = (undefined4)fsd.f_blocks;" (assignment_expression "*(undefined4 *)&fsp->fsu_blocks = (undefined4)fsd.f_blocks" (pointer_expression "*(undefined4 *)&fsp->fsu_blocks" * (cast_expression "(undefined4 *)&fsp->fsu_blocks" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_blocks" & (field_expression "fsp->fsu_blocks" identifier -> field_identifier)))) = (cast_expression "(undefined4)fsd.f_blocks" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "fsd.f_blocks" identifier . field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_;" (assignment_expression "*(undefined4 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_" (pointer_expression "*(undefined4 *)((int)&fsp->fsu_blocks + 4)" * (cast_expression "(undefined4 *)((int)&fsp->fsu_blocks + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_blocks + 4)" ( (binary_expression "(int)&fsp->fsu_blocks + 4" (cast_expression "(int)&fsp->fsu_blocks" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_blocks" & (field_expression "fsp->fsu_blocks" identifier -> field_identifier))) + number_literal) )))) = (field_expression "fsd.f_blocks._4_4_" (field_expression "fsd.f_blocks" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)&fsp->fsu_bfree = (undefined4)fsd.f_bfree;" (assignment_expression "*(undefined4 *)&fsp->fsu_bfree = (undefined4)fsd.f_bfree" (pointer_expression "*(undefined4 *)&fsp->fsu_bfree" * (cast_expression "(undefined4 *)&fsp->fsu_bfree" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_bfree" & (field_expression "fsp->fsu_bfree" identifier -> field_identifier)))) = (cast_expression "(undefined4)fsd.f_bfree" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "fsd.f_bfree" identifier . field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_;" (assignment_expression "*(undefined4 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_" (pointer_expression "*(undefined4 *)((int)&fsp->fsu_bfree + 4)" * (cast_expression "(undefined4 *)((int)&fsp->fsu_bfree + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_bfree + 4)" ( (binary_expression "(int)&fsp->fsu_bfree + 4" (cast_expression "(int)&fsp->fsu_bfree" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_bfree" & (field_expression "fsp->fsu_bfree" identifier -> field_identifier))) + number_literal) )))) = (field_expression "fsd.f_bfree._4_4_" (field_expression "fsd.f_bfree" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)&fsp->fsu_bavail = (undefined4)fsd.f_bavail;" (assignment_expression "*(undefined4 *)&fsp->fsu_bavail = (undefined4)fsd.f_bavail" (pointer_expression "*(undefined4 *)&fsp->fsu_bavail" * (cast_expression "(undefined4 *)&fsp->fsu_bavail" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_bavail" & (field_expression "fsp->fsu_bavail" identifier -> field_identifier)))) = (cast_expression "(undefined4)fsd.f_bavail" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "fsd.f_bavail" identifier . field_identifier))) ;) (expression_statement "*(uint *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_;" (assignment_expression "*(uint *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_" (pointer_expression "*(uint *)((int)&fsp->fsu_bavail + 4)" * (cast_expression "(uint *)((int)&fsp->fsu_bavail + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_bavail + 4)" ( (binary_expression "(int)&fsp->fsu_bavail + 4" (cast_expression "(int)&fsp->fsu_bavail" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_bavail" & (field_expression "fsp->fsu_bavail" identifier -> field_identifier))) + number_literal) )))) = (binary_expression "-(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_" (unary_expression "-(fsd.f_bavail._4_4_ & 0x80000000)" - (parenthesized_expression "(fsd.f_bavail._4_4_ & 0x80000000)" ( (binary_expression "fsd.f_bavail._4_4_ & 0x80000000" (field_expression "fsd.f_bavail._4_4_" (field_expression "fsd.f_bavail" identifier . field_identifier) . field_identifier) & number_literal) ))) | (field_expression "fsd.f_bavail._4_4_" (field_expression "fsd.f_bavail" identifier . field_identifier) . field_identifier))) ;) (expression_statement "fsp->fsu_bavail_top_bit_set = SUB41(fsd.f_bavail._4_4_ >> 0x1f,0);" (assignment_expression "fsp->fsu_bavail_top_bit_set = SUB41(fsd.f_bavail._4_4_ >> 0x1f,0)" (field_expression "fsp->fsu_bavail_top_bit_set" identifier -> field_identifier) = (call_expression "SUB41(fsd.f_bavail._4_4_ >> 0x1f,0)" identifier (argument_list "(fsd.f_bavail._4_4_ >> 0x1f,0)" ( (binary_expression "fsd.f_bavail._4_4_ >> 0x1f" (field_expression "fsd.f_bavail._4_4_" (field_expression "fsd.f_bavail" identifier . field_identifier) . field_identifier) >> number_literal) , number_literal )))) ;) (expression_statement "*(undefined4 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_;" (assignment_expression "*(undefined4 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_" (pointer_expression "*(undefined4 *)((int)&fsp->fsu_files + 4)" * (cast_expression "(undefined4 *)((int)&fsp->fsu_files + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_files + 4)" ( (binary_expression "(int)&fsp->fsu_files + 4" (cast_expression "(int)&fsp->fsu_files" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_files" & (field_expression "fsp->fsu_files" identifier -> field_identifier))) + number_literal) )))) = (field_expression "fsd.f_files._4_4_" (field_expression "fsd.f_files" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)&fsp->fsu_files = (undefined4)fsd.f_files;" (assignment_expression "*(undefined4 *)&fsp->fsu_files = (undefined4)fsd.f_files" (pointer_expression "*(undefined4 *)&fsp->fsu_files" * (cast_expression "(undefined4 *)&fsp->fsu_files" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_files" & (field_expression "fsp->fsu_files" identifier -> field_identifier)))) = (cast_expression "(undefined4)fsd.f_files" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "fsd.f_files" identifier . field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_;" (assignment_expression "*(undefined4 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_" (pointer_expression "*(undefined4 *)((int)&fsp->fsu_ffree + 4)" * (cast_expression "(undefined4 *)((int)&fsp->fsu_ffree + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fsp->fsu_ffree + 4)" ( (binary_expression "(int)&fsp->fsu_ffree + 4" (cast_expression "(int)&fsp->fsu_ffree" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fsp->fsu_ffree" & (field_expression "fsp->fsu_ffree" identifier -> field_identifier))) + number_literal) )))) = (field_expression "fsd.f_ffree._4_4_" (field_expression "fsd.f_ffree" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)&fsp->fsu_ffree = (undefined4)fsd.f_ffree;" (assignment_expression "*(undefined4 *)&fsp->fsu_ffree = (undefined4)fsd.f_ffree" (pointer_expression "*(undefined4 *)&fsp->fsu_ffree" * (cast_expression "(undefined4 *)&fsp->fsu_ffree" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fsp->fsu_ffree" & (field_expression "fsp->fsu_ffree" identifier -> field_identifier)))) = (cast_expression "(undefined4)fsd.f_ffree" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "fsd.f_ffree" identifier . field_identifier))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "utsname local_1a8;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1cf09;" (assignment_expression "uStack_14 = 0x1cf09" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" if (parenthesized_expression "(DAT_0002c340 < 0)" ( (binary_expression "DAT_0002c340 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }" { (expression_statement "iVar1 = uname(&local_1a8);" (assignment_expression "iVar1 = uname(&local_1a8)" identifier = (call_expression "uname(&local_1a8)" identifier (argument_list "(&local_1a8)" ( (pointer_expression "&local_1a8" & identifier) )))) ;) (if_statement "if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }" if (parenthesized_expression "((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0))" ( (binary_expression "(iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)" ( (comma_expression "iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0" (assignment_expression "iVar1 = strverscmp(local_1a8.release,"2.6.36")" identifier = (call_expression "strverscmp(local_1a8.release,"2.6.36")" identifier (argument_list "(local_1a8.release,"2.6.36")" ( (field_expression "local_1a8.release" identifier . field_identifier) , (string_literal ""2.6.36"" " string_content ") )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }" { (expression_statement "DAT_0002c340 = 0;" (assignment_expression "DAT_0002c340 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001cfaa;" goto statement_identifier ;) })) (expression_statement "DAT_0002c340 = 1;" (assignment_expression "DAT_0002c340 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);" statement_identifier : (expression_statement "iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);" (assignment_expression "iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8)" identifier = (call_expression "statvfs64(param_1,(statvfs64 *)&local_1a8)" identifier (argument_list "(param_1,(statvfs64 *)&local_1a8)" ( identifier , (cast_expression "(statvfs64 *)&local_1a8" ( (type_descriptor "statvfs64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1a8" & identifier)) )))) ;)) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (iVar1 < 0) goto LAB_0001d041;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001d041;" goto statement_identifier ;)) (if_statement "if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }" if (parenthesized_expression "(local_1a8.sysname._4_4_ != 0)" ( (binary_expression "local_1a8.sysname._4_4_ != 0" (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }" { (expression_statement "local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;" (assignment_expression "local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) = (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) })) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }" if (parenthesized_expression "(local_1a8.sysname._0_4_ != -1)" ( (binary_expression "local_1a8.sysname._0_4_ != -1" (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = local_1a8.sysname._0_4_;" (assignment_expression "iVar3 = local_1a8.sysname._0_4_" identifier = (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) })) (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[1] = iVar1;" (assignment_expression "param_3[1] = iVar1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" else (compound_statement "{\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" { (if_statement "if (DAT_0002c340 != 0) goto LAB_0001cf42;" if (parenthesized_expression "(DAT_0002c340 != 0)" ( (binary_expression "DAT_0002c340 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001cf42;" goto statement_identifier ;)) (labeled_statement "LAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);" statement_identifier : (expression_statement "iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);" (assignment_expression "iVar1 = statfs64(param_1,(statfs64 *)&local_1a8)" identifier = (call_expression "statfs64(param_1,(statfs64 *)&local_1a8)" identifier (argument_list "(param_1,(statfs64 *)&local_1a8)" ( identifier , (cast_expression "(statfs64 *)&local_1a8" ( (type_descriptor "statfs64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_1a8" & identifier)) )))) ;)) (if_statement "if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0001d041;" goto statement_identifier ;) })) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (if_statement "if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }" if (parenthesized_expression "(local_1a8.sysname._4_4_ != -1)" ( (binary_expression "local_1a8.sysname._4_4_ != -1" (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }" { (expression_statement "iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;" (assignment_expression "iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f" identifier = (binary_expression "(int)local_1a8.sysname._4_4_ >> 0x1f" (cast_expression "(int)local_1a8.sysname._4_4_" ( (type_descriptor "int" primitive_type) ) (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) >> number_literal)) ;) (expression_statement "iVar1 = local_1a8.sysname._4_4_;" (assignment_expression "iVar1 = local_1a8.sysname._4_4_" identifier = (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) })) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[1] = iVar3;" (assignment_expression "param_3[1] = iVar3" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "param_3[2] = local_1a8.sysname._8_4_;" (assignment_expression "param_3[2] = local_1a8.sysname._8_4_" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._8_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[3] = local_1a8.sysname._12_4_;" (assignment_expression "param_3[3] = local_1a8.sysname._12_4_" (subscript_expression "param_3[3]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._12_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[4] = local_1a8.sysname._16_4_;" (assignment_expression "param_3[4] = local_1a8.sysname._16_4_" (subscript_expression "param_3[4]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._16_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[5] = local_1a8.sysname._20_4_;" (assignment_expression "param_3[5] = local_1a8.sysname._20_4_" (subscript_expression "param_3[5]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._20_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[6] = local_1a8.sysname._24_4_;" (assignment_expression "param_3[6] = local_1a8.sysname._24_4_" (subscript_expression "param_3[6]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._24_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;" (assignment_expression "param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_" (subscript_expression "param_3[7]" identifier [ number_literal ]) = (binary_expression "-(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_" (unary_expression "-(local_1a8.sysname._28_4_ & 0x80000000)" - (parenthesized_expression "(local_1a8.sysname._28_4_ & 0x80000000)" ( (binary_expression "local_1a8.sysname._28_4_ & 0x80000000" (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) & number_literal) ))) | (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier))) ;) (expression_statement "*(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;" (assignment_expression "*(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7" (pointer_expression "*(byte *)(param_3 + 8)" * (cast_expression "(byte *)(param_3 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = (binary_expression "SUB41(local_1a8.sysname._28_4_,3) >> 7" (call_expression "SUB41(local_1a8.sysname._28_4_,3)" identifier (argument_list "(local_1a8.sysname._28_4_,3)" ( (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier) , number_literal ))) >> number_literal)) ;) (expression_statement "param_3[10] = local_1a8.sysname._36_4_;" (assignment_expression "param_3[10] = local_1a8.sysname._36_4_" (subscript_expression "param_3[10]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._36_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[9] = local_1a8.sysname._32_4_;" (assignment_expression "param_3[9] = local_1a8.sysname._32_4_" (subscript_expression "param_3[9]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._32_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[0xc] = local_1a8.sysname._44_4_;" (assignment_expression "param_3[0xc] = local_1a8.sysname._44_4_" (subscript_expression "param_3[0xc]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._44_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "param_3[0xb] = local_1a8.sysname._40_4_;" (assignment_expression "param_3[0xb] = local_1a8.sysname._40_4_" (subscript_expression "param_3[0xb]" identifier [ number_literal ]) = (field_expression "local_1a8.sysname._40_4_" (field_expression "local_1a8.sysname" identifier . field_identifier) . field_identifier)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00023310();\n  }" { (expression_statement "FUN_00023310();" (call_expression "FUN_00023310()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (field_expression IDENT . field_identifier) , (string_literal " string_content ") )))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) )))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) != LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression (field_expression IDENT . field_identifier) . field_identifier)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (unary_expression - (parenthesized_expression ( (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) & LIT) ))) | (field_expression (field_expression IDENT . field_identifier) . field_identifier))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (call_expression IDENT (argument_list ( (field_expression (field_expression IDENT . field_identifier) . field_identifier) , LIT ))) >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001cf00(char *param_1,undefined4 param_2,int *param_3)" (identifier "FUN_0001cf00") (parameter_list "(char *param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  utsname local_1a8;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1cf09;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }\n  param_3[2] = local_1a8.sysname._8_4_;\n  param_3[3] = local_1a8.sysname._12_4_;\n  param_3[4] = local_1a8.sysname._16_4_;\n  param_3[5] = local_1a8.sysname._20_4_;\n  param_3[6] = local_1a8.sysname._24_4_;\n  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;\n  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;\n  param_3[10] = local_1a8.sysname._36_4_;\n  param_3[9] = local_1a8.sysname._32_4_;\n  param_3[0xc] = local_1a8.sysname._44_4_;\n  param_3[0xb] = local_1a8.sysname._40_4_;\n  uVar2 = 0;\nLAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "utsname local_1a8;" (type_identifier "utsname") (identifier "local_1a8") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1cf09;" (assignment_expression "uStack_14 = 0x1cf09" (identifier "uStack_14") (= "=") (number_literal "0x1cf09")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (DAT_0002c340 < 0) {\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }\n  else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" (if "if") (parenthesized_expression "(DAT_0002c340 < 0)" (( "(") (binary_expression "DAT_0002c340 < 0" (identifier "DAT_0002c340") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = uname(&local_1a8);\n    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }\n    DAT_0002c340 = 1;\nLAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);\n    uVar2 = 0xffffffff;\n    if (iVar1 < 0) goto LAB_0001d041;\n    if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }\n    iVar1 = -1;\n    iVar3 = -1;\n    if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }\n    *param_3 = iVar3;\n    param_3[1] = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = uname(&local_1a8);" (assignment_expression "iVar1 = uname(&local_1a8)" (identifier "iVar1") (= "=") (call_expression "uname(&local_1a8)" (identifier "uname") (argument_list "(&local_1a8)" (( "(") (pointer_expression "&local_1a8" (& "&") (identifier "local_1a8")) () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0))" (( "(") (binary_expression "(iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)" (( "(") (comma_expression "iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0" (assignment_expression "iVar1 = strverscmp(local_1a8.release,"2.6.36")" (identifier "iVar1") (= "=") (call_expression "strverscmp(local_1a8.release,"2.6.36")" (identifier "strverscmp") (argument_list "(local_1a8.release,"2.6.36")" (( "(") (field_expression "local_1a8.release" (identifier "local_1a8") (. ".") (field_identifier "release")) (, ",") (string_literal ""2.6.36"" (" """) (string_content "2.6.36") (" """)) () ")")))) (, ",") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      DAT_0002c340 = 0;\n      goto LAB_0001cfaa;\n    }" ({ "{") (expression_statement "DAT_0002c340 = 0;" (assignment_expression "DAT_0002c340 = 0" (identifier "DAT_0002c340") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0001cfaa;" (goto "goto") (statement_identifier "LAB_0001cfaa") (; ";")) (} "}"))) (expression_statement "DAT_0002c340 = 1;" (assignment_expression "DAT_0002c340 = 1" (identifier "DAT_0002c340") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0001cf42:\n    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);" (statement_identifier "LAB_0001cf42") (: ":") (expression_statement "iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);" (assignment_expression "iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8)" (identifier "iVar1") (= "=") (call_expression "statvfs64(param_1,(statvfs64 *)&local_1a8)" (identifier "statvfs64") (argument_list "(param_1,(statvfs64 *)&local_1a8)" (( "(") (identifier "param_1") (, ",") (cast_expression "(statvfs64 *)&local_1a8" (( "(") (type_descriptor "statvfs64 *" (type_identifier "statvfs64") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_1a8" (& "&") (identifier "local_1a8"))) () ")")))) (; ";"))) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (iVar1 < 0) goto LAB_0001d041;" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001d041;" (goto "goto") (statement_identifier "LAB_0001d041") (; ";"))) (if_statement "if (local_1a8.sysname._4_4_ != 0) {\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }" (if "if") (parenthesized_expression "(local_1a8.sysname._4_4_ != 0)" (( "(") (binary_expression "local_1a8.sysname._4_4_ != 0" (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_4_4_")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;\n    }" ({ "{") (expression_statement "local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;" (assignment_expression "local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_0_4_")) (= "=") (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_4_4_"))) (; ";")) (} "}"))) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (if_statement "if (local_1a8.sysname._0_4_ != -1) {\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }" (if "if") (parenthesized_expression "(local_1a8.sysname._0_4_ != -1)" (( "(") (binary_expression "local_1a8.sysname._0_4_ != -1" (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_0_4_")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar1 = 0;\n      iVar3 = local_1a8.sysname._0_4_;\n    }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = local_1a8.sysname._0_4_;" (assignment_expression "iVar3 = local_1a8.sysname._0_4_" (identifier "iVar3") (= "=") (field_expression "local_1a8.sysname._0_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_0_4_"))) (; ";")) (} "}"))) (expression_statement "*param_3 = iVar3;" (assignment_expression "*param_3 = iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_3[1] = iVar1;" (assignment_expression "param_3[1] = iVar1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (else_clause "else {\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" (else "else") (compound_statement "{\n    if (DAT_0002c340 != 0) goto LAB_0001cf42;\nLAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);\n    if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }\n    iVar3 = -1;\n    iVar1 = -1;\n    if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }\n    *param_3 = iVar1;\n    param_3[1] = iVar3;\n  }" ({ "{") (if_statement "if (DAT_0002c340 != 0) goto LAB_0001cf42;" (if "if") (parenthesized_expression "(DAT_0002c340 != 0)" (( "(") (binary_expression "DAT_0002c340 != 0" (identifier "DAT_0002c340") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001cf42;" (goto "goto") (statement_identifier "LAB_0001cf42") (; ";"))) (labeled_statement "LAB_0001cfaa:\n    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);" (statement_identifier "LAB_0001cfaa") (: ":") (expression_statement "iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);" (assignment_expression "iVar1 = statfs64(param_1,(statfs64 *)&local_1a8)" (identifier "iVar1") (= "=") (call_expression "statfs64(param_1,(statfs64 *)&local_1a8)" (identifier "statfs64") (argument_list "(param_1,(statfs64 *)&local_1a8)" (( "(") (identifier "param_1") (, ",") (cast_expression "(statfs64 *)&local_1a8" (( "(") (type_descriptor "statfs64 *" (type_identifier "statfs64") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_1a8" (& "&") (identifier "local_1a8"))) () ")")))) (; ";"))) (if_statement "if (iVar1 < 0) {\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 0xffffffff;\n      goto LAB_0001d041;\n    }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_0001d041;" (goto "goto") (statement_identifier "LAB_0001d041") (; ";")) (} "}"))) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (if_statement "if (local_1a8.sysname._4_4_ != -1) {\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }" (if "if") (parenthesized_expression "(local_1a8.sysname._4_4_ != -1)" (( "(") (binary_expression "local_1a8.sysname._4_4_ != -1" (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_4_4_")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;\n      iVar1 = local_1a8.sysname._4_4_;\n    }" ({ "{") (expression_statement "iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;" (assignment_expression "iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f" (identifier "iVar3") (= "=") (binary_expression "(int)local_1a8.sysname._4_4_ >> 0x1f" (cast_expression "(int)local_1a8.sysname._4_4_" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_4_4_"))) (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "iVar1 = local_1a8.sysname._4_4_;" (assignment_expression "iVar1 = local_1a8.sysname._4_4_" (identifier "iVar1") (= "=") (field_expression "local_1a8.sysname._4_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_4_4_"))) (; ";")) (} "}"))) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_3[1] = iVar3;" (assignment_expression "param_3[1] = iVar3" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (} "}")))) (expression_statement "param_3[2] = local_1a8.sysname._8_4_;" (assignment_expression "param_3[2] = local_1a8.sysname._8_4_" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (field_expression "local_1a8.sysname._8_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_8_4_"))) (; ";")) (expression_statement "param_3[3] = local_1a8.sysname._12_4_;" (assignment_expression "param_3[3] = local_1a8.sysname._12_4_" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (field_expression "local_1a8.sysname._12_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_12_4_"))) (; ";")) (expression_statement "param_3[4] = local_1a8.sysname._16_4_;" (assignment_expression "param_3[4] = local_1a8.sysname._16_4_" (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]")) (= "=") (field_expression "local_1a8.sysname._16_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_16_4_"))) (; ";")) (expression_statement "param_3[5] = local_1a8.sysname._20_4_;" (assignment_expression "param_3[5] = local_1a8.sysname._20_4_" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (field_expression "local_1a8.sysname._20_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_20_4_"))) (; ";")) (expression_statement "param_3[6] = local_1a8.sysname._24_4_;" (assignment_expression "param_3[6] = local_1a8.sysname._24_4_" (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]")) (= "=") (field_expression "local_1a8.sysname._24_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_24_4_"))) (; ";")) (expression_statement "param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;" (assignment_expression "param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_" (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "-(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_" (unary_expression "-(local_1a8.sysname._28_4_ & 0x80000000)" (- "-") (parenthesized_expression "(local_1a8.sysname._28_4_ & 0x80000000)" (( "(") (binary_expression "local_1a8.sysname._28_4_ & 0x80000000" (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_28_4_")) (& "&") (number_literal "0x80000000")) () ")"))) (| "|") (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_28_4_")))) (; ";")) (expression_statement "*(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;" (assignment_expression "*(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7" (pointer_expression "*(byte *)(param_3 + 8)" (* "*") (cast_expression "(byte *)(param_3 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "SUB41(local_1a8.sysname._28_4_,3) >> 7" (call_expression "SUB41(local_1a8.sysname._28_4_,3)" (identifier "SUB41") (argument_list "(local_1a8.sysname._28_4_,3)" (( "(") (field_expression "local_1a8.sysname._28_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_28_4_")) (, ",") (number_literal "3") () ")"))) (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "param_3[10] = local_1a8.sysname._36_4_;" (assignment_expression "param_3[10] = local_1a8.sysname._36_4_" (subscript_expression "param_3[10]" (identifier "param_3") ([ "[") (number_literal "10") (] "]")) (= "=") (field_expression "local_1a8.sysname._36_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_36_4_"))) (; ";")) (expression_statement "param_3[9] = local_1a8.sysname._32_4_;" (assignment_expression "param_3[9] = local_1a8.sysname._32_4_" (subscript_expression "param_3[9]" (identifier "param_3") ([ "[") (number_literal "9") (] "]")) (= "=") (field_expression "local_1a8.sysname._32_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_32_4_"))) (; ";")) (expression_statement "param_3[0xc] = local_1a8.sysname._44_4_;" (assignment_expression "param_3[0xc] = local_1a8.sysname._44_4_" (subscript_expression "param_3[0xc]" (identifier "param_3") ([ "[") (number_literal "0xc") (] "]")) (= "=") (field_expression "local_1a8.sysname._44_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_44_4_"))) (; ";")) (expression_statement "param_3[0xb] = local_1a8.sysname._40_4_;" (assignment_expression "param_3[0xb] = local_1a8.sysname._40_4_" (subscript_expression "param_3[0xb]" (identifier "param_3") ([ "[") (number_literal "0xb") (] "]")) (= "=") (field_expression "local_1a8.sysname._40_4_" (field_expression "local_1a8.sysname" (identifier "local_1a8") (. ".") (field_identifier "sysname")) (. ".") (field_identifier "_40_4_"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0001d041:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }" (statement_identifier "LAB_0001d041") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00023310();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00023310();\n  }" ({ "{") (expression_statement "FUN_00023310();" (call_expression "FUN_00023310()" (identifier "FUN_00023310") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *file,char *disk,type_1 *fsp)

{
  int var_7;
  int var_4;
  type_2 _Var3;
  type_3 uVar4;
  int var_1;
  type_4 fsd;
  char local_126 [262];
  int var_10;
  type_3 uStack_14;
  
  uStack_14 = 0x1cf09;
  var_10 = *(int *)(var_1 + 0x14);
  if (var_2 < 0) {
    var_4 = var_3((type_5 *)&fsd);
    if ((var_4 != 0) || (var_4 = var_5(local_126,"2.6.36"), var_4 < 0)) {
      var_2 = 0;
      goto LAB_0001cfaa;
    }
    var_2 = 1;
LAB_0001cf42:
    var_7 = var_6(file,(var_6 *)&fsd);
    var_4 = -1;
    if (var_7 < 0) goto LAB_0001d041;
    if (fsd.f_bsize != 0) {
      fsd.f_type = fsd.f_bsize;
    }
    uVar4 = 0xffffffff;
    var_4 = -1;
    if (fsd.f_type != -1) {
      uVar4 = 0;
      var_4 = fsd.f_type;
    }
    *(int *)&fsp->fsu_blocksize = var_4;
    *(type_3 *)((int)&fsp->fsu_blocksize + 4) = uVar4;
  }
  else {
    if (var_2 != 0) goto LAB_0001cf42;
LAB_0001cfaa:
    var_4 = var_8(file,(var_8 *)&fsd);
    if (var_4 < 0) {
      var_4 = -1;
      goto LAB_0001d041;
    }
    var_4 = -1;
    _Var3 = -1;
    if (fsd.f_bsize != -1) {
      var_4 = fsd.f_bsize >> 0x1f;
      _Var3 = fsd.f_bsize;
    }
    *(type_2 *)&fsp->fsu_blocksize = _Var3;
    *(int *)((int)&fsp->fsu_blocksize + 4) = var_4;
  }
  *(type_3 *)&fsp->fsu_blocks = (type_3)fsd.f_blocks;
  *(type_3 *)((int)&fsp->fsu_blocks + 4) = fsd.f_blocks._4_4_;
  *(type_3 *)&fsp->fsu_bfree = (type_3)fsd.f_bfree;
  *(type_3 *)((int)&fsp->fsu_bfree + 4) = fsd.f_bfree._4_4_;
  *(type_3 *)&fsp->fsu_bavail = (type_3)fsd.f_bavail;
  *(type_6 *)((int)&fsp->fsu_bavail + 4) = -(fsd.f_bavail._4_4_ & 0x80000000) | fsd.f_bavail._4_4_;
  fsp->fsu_bavail_top_bit_set = var_9(fsd.f_bavail._4_4_ >> 0x1f,0);
  *(type_3 *)((int)&fsp->fsu_files + 4) = fsd.f_files._4_4_;
  *(type_3 *)&fsp->fsu_files = (type_3)fsd.f_files;
  *(type_3 *)((int)&fsp->fsu_ffree + 4) = fsd.f_ffree._4_4_;
  *(type_3 *)&fsp->fsu_ffree = (type_3)fsd.f_ffree;
  var_4 = 0;
LAB_0001d041:
  if (var_10 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return var_4;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(char *param_1,undefined4 param_2,int *param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int in_GS_OFFSET;
  utsname local_1a8;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1cf09;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (DAT_0002c340 < 0) {
    iVar1 = uname(&local_1a8);
    if ((iVar1 != 0) || (iVar1 = strverscmp(local_1a8.release,"2.6.36"), iVar1 < 0)) {
      DAT_0002c340 = 0;
      goto LAB_0001cfaa;
    }
    DAT_0002c340 = 1;
LAB_0001cf42:
    iVar1 = statvfs64(param_1,(statvfs64 *)&local_1a8);
    uVar2 = 0xffffffff;
    if (iVar1 < 0) goto LAB_0001d041;
    if (local_1a8.sysname._4_4_ != 0) {
      local_1a8.sysname._0_4_ = local_1a8.sysname._4_4_;
    }
    iVar1 = -1;
    iVar3 = -1;
    if (local_1a8.sysname._0_4_ != -1) {
      iVar1 = 0;
      iVar3 = local_1a8.sysname._0_4_;
    }
    *param_3 = iVar3;
    param_3[1] = iVar1;
  }
  else {
    if (DAT_0002c340 != 0) goto LAB_0001cf42;
LAB_0001cfaa:
    iVar1 = statfs64(param_1,(statfs64 *)&local_1a8);
    if (iVar1 < 0) {
      uVar2 = 0xffffffff;
      goto LAB_0001d041;
    }
    iVar3 = -1;
    iVar1 = -1;
    if (local_1a8.sysname._4_4_ != -1) {
      iVar3 = (int)local_1a8.sysname._4_4_ >> 0x1f;
      iVar1 = local_1a8.sysname._4_4_;
    }
    *param_3 = iVar1;
    param_3[1] = iVar3;
  }
  param_3[2] = local_1a8.sysname._8_4_;
  param_3[3] = local_1a8.sysname._12_4_;
  param_3[4] = local_1a8.sysname._16_4_;
  param_3[5] = local_1a8.sysname._20_4_;
  param_3[6] = local_1a8.sysname._24_4_;
  param_3[7] = -(local_1a8.sysname._28_4_ & 0x80000000) | local_1a8.sysname._28_4_;
  *(byte *)(param_3 + 8) = SUB41(local_1a8.sysname._28_4_,3) >> 7;
  param_3[10] = local_1a8.sysname._36_4_;
  param_3[9] = local_1a8.sysname._32_4_;
  param_3[0xc] = local_1a8.sysname._44_4_;
  param_3[0xb] = local_1a8.sysname._40_4_;
  uVar2 = 0;
LAB_0001d041:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00023310();
  }
  return uVar2;
}

