
/* WARNING: Unknown calling convention */

double physmem_available(void)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  uint uVar5;
  int *piVar6;
  sysinfo *psVar7;
  uint in_a1;
  undefined4 uVar8;
  __kernel_long_t _Var9;
  __kernel_ulong_t _Var10;
  undefined *puVar11;
  double dVar12;
  double extraout_f0_1;
  double extraout_f0_1_00;
  double extraout_f0_1_01;
  double extraout_f0_1_02;
  double dVar13;
  sysinfo si;
  
  puVar11 = PTR___stack_chk_guard_0003e550;
  iVar1 = *(int *)PTR___stack_chk_guard_0003e550;
  iVar2 = (*(code *)PTR_sysconf_0003e510)(0x56);
  psVar7 = (sysinfo *)0x1e;
  iVar3 = (*(code *)PTR_sysconf_0003e510)();
  if ((iVar2 < 0) || (iVar3 < 0)) {
    psVar7 = &si;
    iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();
    if (iVar2 == 0) {
      dVar12 = (double)(int)si.freeram;
      if ((int)si.freeram < 0) {
        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);
      }
      dVar13 = (double)(int)si.bufferram;
      if ((int)si.bufferram < 0) {
        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);
      }
      dVar12 = dVar12 + dVar13;
      dVar13 = (double)(int)si.mem_unit;
      if ((int)si.mem_unit < 0) {
        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);
      }
    }
    else {
      dVar12 = physmem_total();
      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);
    }
    dVar12 = dVar12 * dVar13;
  }
  else {
    dVar12 = (double)iVar2 * (double)iVar3;
  }
  if (iVar1 == *(int *)puVar11) {
    return dVar12;
  }
  puVar11 = PTR___stack_chk_fail_0003e518;
  (*(code *)PTR___stack_chk_fail_0003e518)();
  iVar1 = *(int *)(puVar11 + 0x1d518);
  _Var9 = psVar7->uptime;
  _Var10 = psVar7->loads[0];
  if (-1 < *(int *)(iVar1 + -0x14c0)) {
    iVar2 = (**(code **)(puVar11 + 0x1d760))();
    dVar12 = extraout_f0_1_00;
    if ((-1 < iVar2) ||
       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,
       *piVar6 != 0x59)) {
      *(undefined4 *)(iVar1 + -0x14c0) = 1;
      return dVar12;
    }
    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;
  }
  if ((in_a1 & 0xfff7ff7f) == 0) {
    iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);
    dVar12 = extraout_f0_1;
    if (-1 < iVar1) {
      if (((in_a1 & 0x80) == 0) ||
         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&
            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&
           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&
          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {
        if (-1 < (int)(in_a1 << 0xc)) {
          return dVar12;
        }
        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);
        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&
           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&
            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {
          return dVar12;
        }
      }
      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();
      uVar8 = *puVar4;
      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);
      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);
      psVar7->uptime = _Var9;
      psVar7->loads[0] = _Var10;
      *puVar4 = uVar8;
    }
  }
  else {
    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();
    *puVar4 = 0x16;
    dVar12 = extraout_f0_1_02;
  }
  return dVar12;
}



int physmem_available(undefined4 param_1,uint param_2)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  uint uVar4;
  int *piVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined *puVar10;
  undefined4 auStack_54 [16];
  int local_14;
  
  puVar10 = PTR___stack_chk_guard_0003e550;
  local_14 = *(int *)PTR___stack_chk_guard_0003e550;
  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);
  puVar6 = (undefined4 *)0x1e;
  iVar2 = (*(code *)PTR_sysconf_0003e510)();
  if ((iVar1 < 0) || (iVar2 < 0)) {
    puVar6 = auStack_54;
    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();
    if (iVar1 != 0) {
      physmem_total();
    }
  }
  if (local_14 == *(int *)puVar10) {
    return *(int *)puVar10;
  }
  puVar10 = PTR___stack_chk_fail_0003e518;
  (*(code *)PTR___stack_chk_fail_0003e518)();
  iVar1 = *(int *)(puVar10 + 0x1d518);
  uVar8 = *puVar6;
  uVar9 = puVar6[1];
  if (-1 < *(int *)(iVar1 + -0x14c0)) {
    iVar2 = (**(code **)(puVar10 + 0x1d760))();
    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {
      *(undefined4 *)(iVar1 + -0x14c0) = 1;
      return iVar2;
    }
    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;
  }
  if ((param_2 & 0xfff7ff7f) == 0) {
    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);
    if (-1 < iVar1) {
      if (((param_2 & 0x80) == 0) ||
         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&
            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&
           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&
          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {
        if (-1 < (int)(param_2 << 0xc)) {
          return 0;
        }
        uVar4 = rpl_fcntl(puVar6[1],1,0);
        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&
           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&
            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {
          return 0;
        }
      }
      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();
      uVar7 = *puVar3;
      (**(code **)(puVar10 + 0x1d71c))(*puVar6);
      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);
      *puVar6 = uVar8;
      puVar6[1] = uVar9;
      *puVar3 = uVar7;
    }
  }
  else {
    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();
    *puVar6 = 0x16;
  }
  return -1;
}


lui gp,0x2
addiu gp,gp,0x5628
addu gp,gp,t9
addiu sp,sp,-0x70
lw t9,-0x7c70(gp)
li a0,0x56
sw s1,0x68(sp)
lw s1,-0x7c30(gp)
sw gp,0x10(sp)
sw ra,0x6c(sp)
sw s0,0x64(sp)
lw v0,0x0(s1)
sw v0,0x5c(sp)
jalr t9
_nop
li a0,0x1e
lw gp,0x10(sp)
lw t9,-0x7c70(gp)
jalr t9
_or s0,v0,zero
bltz s0,0x00020bb8
_lw gp,0x10(sp)
bgez v0,0x00020c58
_mtc1 s0,f0
lw t9,-0x7ce0(gp)
jalr t9
_addiu a0,sp,0x1c
bne v0,zero,0x00020c3c
_lw gp,0x10(sp)
lw v0,0x30(sp)
mtc1 v0,f0
bgez v0,0x00020be8
_cvt.d.W f0,f0
lw v0,-0x7fc8(gp)
ldc1 f2,-0x3d30(v0)
add.D f0,f0,f2
lw v1,0x38(sp)
mtc1 v1,f2
bgez v1,0x00020c04
_cvt.d.W f2,f2
lw v0,-0x7fc8(gp)
ldc1 f4,-0x3d30(v0)
add.D f2,f2,f4
lw v1,0x50(sp)
add.D f0,f0,f2
mtc1 v1,f2
bltz v1,0x00020c6c
_cvt.d.W f2,f2
mul.D f0,f0,f2
lw v1,0x5c(sp)
lw v0,0x0(s1)
bne v1,v0,0x00020c7c
_lw ra,0x6c(sp)
lw s1,0x68(sp)
lw s0,0x64(sp)
jr ra
_addiu sp,sp,0x70
lw t9,-0x7f04(gp)
bal 0x00020a50
_nop
lw gp,0x10(sp)
lw v0,-0x7fc8(gp)
b 0x00020c18
_ldc1 f2,-0x3d58(v0)
mtc1 v0,f2
cvt.d.W f0,f0
cvt.d.W f2,f2
b 0x00020c1c
_mul.D f0,f0,f2
lw v0,-0x7fc8(gp)
ldc1 f4,-0x3d30(v0)
b 0x00020c18
_add.D f2,f2,f4
lw t9,-0x7c68(gp)
jalr t9
_nop
nop
nop
(translation_unit "int physmem_available(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}\n\n" (function_definition "int physmem_available(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}" primitive_type (function_declarator "physmem_available(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 auStack_54 [16];" type_identifier (array_declarator "auStack_54 [16]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar10 = PTR___stack_chk_guard_0003e550;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0003e550" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0003e550;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0003e550" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0003e550" * (cast_expression "(int *)PTR___stack_chk_guard_0003e550" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);" (assignment_expression "iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56)" identifier = (call_expression "(*(code *)PTR_sysconf_0003e510)(0x56)" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" ( (pointer_expression "*(code *)PTR_sysconf_0003e510" * (cast_expression "(code *)PTR_sysconf_0003e510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x56)" ( number_literal )))) ;) (expression_statement "puVar6 = (undefined4 *)0x1e;" (assignment_expression "puVar6 = (undefined4 *)0x1e" identifier = (cast_expression "(undefined4 *)0x1e" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_sysconf_0003e510)();" (assignment_expression "iVar2 = (*(code *)PTR_sysconf_0003e510)()" identifier = (call_expression "(*(code *)PTR_sysconf_0003e510)()" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" ( (pointer_expression "*(code *)PTR_sysconf_0003e510" * (cast_expression "(code *)PTR_sysconf_0003e510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }" if (parenthesized_expression "((iVar1 < 0) || (iVar2 < 0))" ( (binary_expression "(iVar1 < 0) || (iVar2 < 0)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }" { (expression_statement "puVar6 = auStack_54;" (assignment_expression "puVar6 = auStack_54" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();" (assignment_expression "iVar1 = (*(code *)PTR_sysinfo_0003e4a0)()" identifier = (call_expression "(*(code *)PTR_sysinfo_0003e4a0)()" (parenthesized_expression "(*(code *)PTR_sysinfo_0003e4a0)" ( (pointer_expression "*(code *)PTR_sysinfo_0003e4a0" * (cast_expression "(code *)PTR_sysinfo_0003e4a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      physmem_total();\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      physmem_total();\n    }" { (expression_statement "physmem_total();" (call_expression "physmem_total()" identifier (argument_list "()" ( ))) ;) })) })) (if_statement "if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar10)" ( (binary_expression "local_14 == *(int *)puVar10" identifier == (pointer_expression "*(int *)puVar10" * (cast_expression "(int *)puVar10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar10;\n  }" { (return_statement "return *(int *)puVar10;" return (pointer_expression "*(int *)puVar10" * (cast_expression "(int *)puVar10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_0003e518;" (assignment_expression "puVar10 = PTR___stack_chk_fail_0003e518" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0003e518)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003e518)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003e518)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0003e518" * (cast_expression "(code *)PTR___stack_chk_fail_0003e518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(puVar10 + 0x1d518);" (assignment_expression "iVar1 = *(int *)(puVar10 + 0x1d518)" identifier = (pointer_expression "*(int *)(puVar10 + 0x1d518)" * (cast_expression "(int *)(puVar10 + 0x1d518)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x1d518)" ( (binary_expression "puVar10 + 0x1d518" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar9 = puVar6[1];" (assignment_expression "uVar9 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (if_statement "if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -0x14c0))" ( (binary_expression "-1 < *(int *)(iVar1 + -0x14c0)" number_literal < (pointer_expression "*(int *)(iVar1 + -0x14c0)" * (cast_expression "(int *)(iVar1 + -0x14c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" { (expression_statement "iVar2 = (**(code **)(puVar10 + 0x1d760))();" (assignment_expression "iVar2 = (**(code **)(puVar10 + 0x1d760))()" identifier = (call_expression "(**(code **)(puVar10 + 0x1d760))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d760))" ( (pointer_expression "**(code **)(puVar10 + 0x1d760)" * (pointer_expression "*(code **)(puVar10 + 0x1d760)" * (cast_expression "(code **)(puVar10 + 0x1d760)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d760)" ( (binary_expression "puVar10 + 0x1d760" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }" if (parenthesized_expression "((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59))" ( (binary_expression "(-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) || (parenthesized_expression "(piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)" ( (comma_expression "piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59" (assignment_expression "piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))()" identifier = (cast_expression "(int *)(**(code **)(puVar10 + 0x1d7c0))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" * (cast_expression "(code **)(puVar10 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7c0)" ( (binary_expression "puVar10 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) , (binary_expression "*piVar5 != 0x59" (pointer_expression "*piVar5" * identifier) != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 1" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" * (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" * (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" if (parenthesized_expression "((param_2 & 0xfff7ff7f) == 0)" ( (binary_expression "(param_2 & 0xfff7ff7f) == 0" (parenthesized_expression "(param_2 & 0xfff7ff7f)" ( (binary_expression "param_2 & 0xfff7ff7f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6)" identifier = (call_expression "(**(code **)(puVar10 + 0x1d7b4))(puVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7b4))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7b4)" * (pointer_expression "*(code **)(puVar10 + 0x1d7b4)" * (cast_expression "(code **)(puVar10 + 0x1d7b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7b4)" ( (binary_expression "puVar10 + 0x1d7b4" identifier + number_literal) ))))) )) (argument_list "(puVar6)" ( identifier )))) ;) (if_statement "if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }" { (if_statement "if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1))))" ( (binary_expression "((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))" (parenthesized_expression "((param_2 & 0x80) == 0)" ( (binary_expression "(param_2 & 0x80) == 0" (parenthesized_expression "(param_2 & 0x80)" ( (binary_expression "param_2 & 0x80" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))" ( (parenthesized_expression "(((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1))" ( (binary_expression "((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)" (parenthesized_expression "((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4))" ( (binary_expression "(uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)" (parenthesized_expression "(uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1))" ( (comma_expression "uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (assignment_expression "uVar4 = rpl_fcntl(puVar6[1],3,0)" identifier = (call_expression "rpl_fcntl(puVar6[1],3,0)" identifier (argument_list "(puVar6[1],3,0)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80)" identifier = (call_expression "rpl_fcntl(puVar6[1],4,uVar4 | 0x80)" identifier (argument_list "(puVar6[1],4,uVar4 | 0x80)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , (binary_expression "uVar4 | 0x80" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) )))) )) && (parenthesized_expression "(uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)" ( (comma_expression "uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4" (assignment_expression "uVar4 = rpl_fcntl(*puVar6,3,0)" identifier = (call_expression "rpl_fcntl(*puVar6,3,0)" identifier (argument_list "(*puVar6,3,0)" ( (pointer_expression "*puVar6" * identifier) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ))) )) && (parenthesized_expression "(iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80)" identifier = (call_expression "rpl_fcntl(*puVar6,4,uVar4 | 0x80)" identifier (argument_list "(*puVar6,4,uVar4 | 0x80)" ( (pointer_expression "*puVar6" * identifier) , number_literal , (binary_expression "uVar4 | 0x80" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }" { (if_statement "if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }" if (parenthesized_expression "(-1 < (int)(param_2 << 0xc))" ( (binary_expression "-1 < (int)(param_2 << 0xc)" number_literal < (cast_expression "(int)(param_2 << 0xc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_2 << 0xc)" ( (binary_expression "param_2 << 0xc" identifier << number_literal) )))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = rpl_fcntl(puVar6[1],1,0);" (assignment_expression "uVar4 = rpl_fcntl(puVar6[1],1,0)" identifier = (call_expression "rpl_fcntl(puVar6[1],1,0)" identifier (argument_list "(puVar6[1],1,0)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , number_literal )))) ;) (if_statement "if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }" if (parenthesized_expression "(((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1))))" ( (binary_expression "((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))" (parenthesized_expression "((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1))" ( (binary_expression "(-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)" (parenthesized_expression "(-1 < (int)uVar4)" ( (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1)" identifier = (call_expression "rpl_fcntl(puVar6[1],2,uVar4 | 1)" identifier (argument_list "(puVar6[1],2,uVar4 | 1)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , (binary_expression "uVar4 | 1" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) && (parenthesized_expression "((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))" ( (parenthesized_expression "(uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1))" ( (comma_expression "uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (assignment_expression "uVar4 = rpl_fcntl(*puVar6,1,0)" identifier = (call_expression "rpl_fcntl(*puVar6,1,0)" identifier (argument_list "(*puVar6,1,0)" ( (pointer_expression "*puVar6" * identifier) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1)" identifier = (call_expression "rpl_fcntl(*puVar6,2,uVar4 | 1)" identifier (argument_list "(*puVar6,2,uVar4 | 1)" ( (pointer_expression "*puVar6" * identifier) , number_literal , (binary_expression "uVar4 | 1" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" * (cast_expression "(code **)(puVar10 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7c0)" ( (binary_expression "puVar10 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar3;" (assignment_expression "uVar7 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "(**(code **)(puVar10 + 0x1d71c))(*puVar6);" (call_expression "(**(code **)(puVar10 + 0x1d71c))(*puVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x1d71c))" ( (pointer_expression "**(code **)(puVar10 + 0x1d71c)" * (pointer_expression "*(code **)(puVar10 + 0x1d71c)" * (cast_expression "(code **)(puVar10 + 0x1d71c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d71c)" ( (binary_expression "puVar10 + 0x1d71c" identifier + number_literal) ))))) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) ))) ;) (expression_statement "(**(code **)(puVar10 + 0x1d71c))(puVar6[1]);" (call_expression "(**(code **)(puVar10 + 0x1d71c))(puVar6[1])" (parenthesized_expression "(**(code **)(puVar10 + 0x1d71c))" ( (pointer_expression "**(code **)(puVar10 + 0x1d71c)" * (pointer_expression "*(code **)(puVar10 + 0x1d71c)" * (cast_expression "(code **)(puVar10 + 0x1d71c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d71c)" ( (binary_expression "puVar10 + 0x1d71c" identifier + number_literal) ))))) )) (argument_list "(puVar6[1])" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) ))) ;) (expression_statement "*puVar6 = uVar8;" (assignment_expression "*puVar6 = uVar8" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar3 = uVar7;" (assignment_expression "*puVar3 = uVar7" (pointer_expression "*puVar3" * identifier) = identifier) ;) })) }) (else_clause "else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" else (compound_statement "{\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" { (expression_statement "puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();" (assignment_expression "puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" * (cast_expression "(code **)(puVar10 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7c0)" ( (binary_expression "puVar10 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar6 = 0x16;" (assignment_expression "*puVar6 = 0x16" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }))) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\ndouble physmem_available(void)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  uint uVar5;\n  int *piVar6;\n  sysinfo *psVar7;\n  uint in_a1;\n  undefined4 uVar8;\n  __kernel_long_t _Var9;\n  __kernel_ulong_t _Var10;\n  undefined *puVar11;\n  double dVar12;\n  double extraout_f0_1;\n  double extraout_f0_1_00;\n  double extraout_f0_1_01;\n  double extraout_f0_1_02;\n  double dVar13;\n  sysinfo si;\n  \n  puVar11 = PTR___stack_chk_guard_0003e550;\n  iVar1 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  psVar7 = (sysinfo *)0x1e;\n  iVar3 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar2 < 0) || (iVar3 < 0)) {\n    psVar7 = &si;\n    iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar2 == 0) {\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }\n    else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }\n    dVar12 = dVar12 * dVar13;\n  }\n  else {\n    dVar12 = (double)iVar2 * (double)iVar3;\n  }\n  if (iVar1 == *(int *)puVar11) {\n    return dVar12;\n  }\n  puVar11 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar11 + 0x1d518);\n  _Var9 = psVar7->uptime;\n  _Var10 = psVar7->loads[0];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar11 + 0x1d760))();\n    dVar12 = extraout_f0_1_00;\n    if ((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((in_a1 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);\n    dVar12 = extraout_f0_1;\n    if (-1 < iVar1) {\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }\n  }\n  else {\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n    *puVar4 = 0x16;\n    dVar12 = extraout_f0_1_02;\n  }\n  return dVar12;\n}\n\n" comment (function_definition "double physmem_available(void)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  uint uVar5;\n  int *piVar6;\n  sysinfo *psVar7;\n  uint in_a1;\n  undefined4 uVar8;\n  __kernel_long_t _Var9;\n  __kernel_ulong_t _Var10;\n  undefined *puVar11;\n  double dVar12;\n  double extraout_f0_1;\n  double extraout_f0_1_00;\n  double extraout_f0_1_01;\n  double extraout_f0_1_02;\n  double dVar13;\n  sysinfo si;\n  \n  puVar11 = PTR___stack_chk_guard_0003e550;\n  iVar1 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  psVar7 = (sysinfo *)0x1e;\n  iVar3 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar2 < 0) || (iVar3 < 0)) {\n    psVar7 = &si;\n    iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar2 == 0) {\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }\n    else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }\n    dVar12 = dVar12 * dVar13;\n  }\n  else {\n    dVar12 = (double)iVar2 * (double)iVar3;\n  }\n  if (iVar1 == *(int *)puVar11) {\n    return dVar12;\n  }\n  puVar11 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar11 + 0x1d518);\n  _Var9 = psVar7->uptime;\n  _Var10 = psVar7->loads[0];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar11 + 0x1d760))();\n    dVar12 = extraout_f0_1_00;\n    if ((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((in_a1 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);\n    dVar12 = extraout_f0_1;\n    if (-1 < iVar1) {\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }\n  }\n  else {\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n    *puVar4 = 0x16;\n    dVar12 = extraout_f0_1_02;\n  }\n  return dVar12;\n}" primitive_type (function_declarator "physmem_available(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  uint uVar5;\n  int *piVar6;\n  sysinfo *psVar7;\n  uint in_a1;\n  undefined4 uVar8;\n  __kernel_long_t _Var9;\n  __kernel_ulong_t _Var10;\n  undefined *puVar11;\n  double dVar12;\n  double extraout_f0_1;\n  double extraout_f0_1_00;\n  double extraout_f0_1_01;\n  double extraout_f0_1_02;\n  double dVar13;\n  sysinfo si;\n  \n  puVar11 = PTR___stack_chk_guard_0003e550;\n  iVar1 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  psVar7 = (sysinfo *)0x1e;\n  iVar3 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar2 < 0) || (iVar3 < 0)) {\n    psVar7 = &si;\n    iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar2 == 0) {\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }\n    else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }\n    dVar12 = dVar12 * dVar13;\n  }\n  else {\n    dVar12 = (double)iVar2 * (double)iVar3;\n  }\n  if (iVar1 == *(int *)puVar11) {\n    return dVar12;\n  }\n  puVar11 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar11 + 0x1d518);\n  _Var9 = psVar7->uptime;\n  _Var10 = psVar7->loads[0];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar11 + 0x1d760))();\n    dVar12 = extraout_f0_1_00;\n    if ((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((in_a1 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);\n    dVar12 = extraout_f0_1;\n    if (-1 < iVar1) {\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }\n  }\n  else {\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n    *puVar4 = 0x16;\n    dVar12 = extraout_f0_1_02;\n  }\n  return dVar12;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "sysinfo *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "uint in_a1;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "__kernel_long_t _Var9;" type_identifier identifier ;) (declaration "__kernel_ulong_t _Var10;" type_identifier identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "double dVar12;" primitive_type identifier ;) (declaration "double extraout_f0_1;" primitive_type identifier ;) (declaration "double extraout_f0_1_00;" primitive_type identifier ;) (declaration "double extraout_f0_1_01;" primitive_type identifier ;) (declaration "double extraout_f0_1_02;" primitive_type identifier ;) (declaration "double dVar13;" primitive_type identifier ;) (declaration "sysinfo si;" type_identifier identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_0003e550;" (assignment_expression "puVar11 = PTR___stack_chk_guard_0003e550" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_0003e550;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_0003e550" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0003e550" * (cast_expression "(int *)PTR___stack_chk_guard_0003e550" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_sysconf_0003e510)(0x56);" (assignment_expression "iVar2 = (*(code *)PTR_sysconf_0003e510)(0x56)" identifier = (call_expression "(*(code *)PTR_sysconf_0003e510)(0x56)" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" ( (pointer_expression "*(code *)PTR_sysconf_0003e510" * (cast_expression "(code *)PTR_sysconf_0003e510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x56)" ( number_literal )))) ;) (expression_statement "psVar7 = (sysinfo *)0x1e;" (assignment_expression "psVar7 = (sysinfo *)0x1e" identifier = (cast_expression "(sysinfo *)0x1e" ( (type_descriptor "sysinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar3 = (*(code *)PTR_sysconf_0003e510)();" (assignment_expression "iVar3 = (*(code *)PTR_sysconf_0003e510)()" identifier = (call_expression "(*(code *)PTR_sysconf_0003e510)()" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" ( (pointer_expression "*(code *)PTR_sysconf_0003e510" * (cast_expression "(code *)PTR_sysconf_0003e510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 < 0) || (iVar3 < 0)) {\n    psVar7 = &si;\n    iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar2 == 0) {\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }\n    else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }\n    dVar12 = dVar12 * dVar13;\n  }\n  else {\n    dVar12 = (double)iVar2 * (double)iVar3;\n  }" if (parenthesized_expression "((iVar2 < 0) || (iVar3 < 0))" ( (binary_expression "(iVar2 < 0) || (iVar3 < 0)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    psVar7 = &si;\n    iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar2 == 0) {\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }\n    else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }\n    dVar12 = dVar12 * dVar13;\n  }" { (expression_statement "psVar7 = &si;" (assignment_expression "psVar7 = &si" identifier = (pointer_expression "&si" & identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_sysinfo_0003e4a0)();" (assignment_expression "iVar2 = (*(code *)PTR_sysinfo_0003e4a0)()" identifier = (call_expression "(*(code *)PTR_sysinfo_0003e4a0)()" (parenthesized_expression "(*(code *)PTR_sysinfo_0003e4a0)" ( (pointer_expression "*(code *)PTR_sysinfo_0003e4a0" * (cast_expression "(code *)PTR_sysinfo_0003e4a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }\n    else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      dVar12 = (double)(int)si.freeram;\n      if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar13 = (double)(int)si.bufferram;\n      if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n      dVar12 = dVar12 + dVar13;\n      dVar13 = (double)(int)si.mem_unit;\n      if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }\n    }" { (expression_statement "dVar12 = (double)(int)si.freeram;" (assignment_expression "dVar12 = (double)(int)si.freeram" identifier = (cast_expression "(double)(int)si.freeram" ( (type_descriptor "double" primitive_type) ) (cast_expression "(int)si.freeram" ( (type_descriptor "int" primitive_type) ) (field_expression "si.freeram" identifier . field_identifier)))) ;) (if_statement "if ((int)si.freeram < 0) {\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }" if (parenthesized_expression "((int)si.freeram < 0)" ( (binary_expression "(int)si.freeram < 0" (cast_expression "(int)si.freeram" ( (type_descriptor "int" primitive_type) ) (field_expression "si.freeram" identifier . field_identifier)) < number_literal) )) (compound_statement "{\n        dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }" { (expression_statement "dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);" (assignment_expression "dVar12 = dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30)" identifier = (binary_expression "dVar12 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30)" identifier + (pointer_expression "*(double *)(PTR_DAT_0003e1b8 + -0x3d30)" * (cast_expression "(double *)(PTR_DAT_0003e1b8 + -0x3d30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0003e1b8 + -0x3d30)" ( (binary_expression "PTR_DAT_0003e1b8 + -0x3d30" identifier + number_literal) )))))) ;) })) (expression_statement "dVar13 = (double)(int)si.bufferram;" (assignment_expression "dVar13 = (double)(int)si.bufferram" identifier = (cast_expression "(double)(int)si.bufferram" ( (type_descriptor "double" primitive_type) ) (cast_expression "(int)si.bufferram" ( (type_descriptor "int" primitive_type) ) (field_expression "si.bufferram" identifier . field_identifier)))) ;) (if_statement "if ((int)si.bufferram < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }" if (parenthesized_expression "((int)si.bufferram < 0)" ( (binary_expression "(int)si.bufferram < 0" (cast_expression "(int)si.bufferram" ( (type_descriptor "int" primitive_type) ) (field_expression "si.bufferram" identifier . field_identifier)) < number_literal) )) (compound_statement "{\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }" { (expression_statement "dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);" (assignment_expression "dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30)" identifier = (binary_expression "dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30)" identifier + (pointer_expression "*(double *)(PTR_DAT_0003e1b8 + -0x3d30)" * (cast_expression "(double *)(PTR_DAT_0003e1b8 + -0x3d30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0003e1b8 + -0x3d30)" ( (binary_expression "PTR_DAT_0003e1b8 + -0x3d30" identifier + number_literal) )))))) ;) })) (expression_statement "dVar12 = dVar12 + dVar13;" (assignment_expression "dVar12 = dVar12 + dVar13" identifier = (binary_expression "dVar12 + dVar13" identifier + identifier)) ;) (expression_statement "dVar13 = (double)(int)si.mem_unit;" (assignment_expression "dVar13 = (double)(int)si.mem_unit" identifier = (cast_expression "(double)(int)si.mem_unit" ( (type_descriptor "double" primitive_type) ) (cast_expression "(int)si.mem_unit" ( (type_descriptor "int" primitive_type) ) (field_expression "si.mem_unit" identifier . field_identifier)))) ;) (if_statement "if ((int)si.mem_unit < 0) {\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }" if (parenthesized_expression "((int)si.mem_unit < 0)" ( (binary_expression "(int)si.mem_unit < 0" (cast_expression "(int)si.mem_unit" ( (type_descriptor "int" primitive_type) ) (field_expression "si.mem_unit" identifier . field_identifier)) < number_literal) )) (compound_statement "{\n        dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);\n      }" { (expression_statement "dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30);" (assignment_expression "dVar13 = dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30)" identifier = (binary_expression "dVar13 + *(double *)(PTR_DAT_0003e1b8 + -0x3d30)" identifier + (pointer_expression "*(double *)(PTR_DAT_0003e1b8 + -0x3d30)" * (cast_expression "(double *)(PTR_DAT_0003e1b8 + -0x3d30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0003e1b8 + -0x3d30)" ( (binary_expression "PTR_DAT_0003e1b8 + -0x3d30" identifier + number_literal) )))))) ;) })) }) (else_clause "else {\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }" else (compound_statement "{\n      dVar12 = physmem_total();\n      dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);\n    }" { (expression_statement "dVar12 = physmem_total();" (assignment_expression "dVar12 = physmem_total()" identifier = (call_expression "physmem_total()" identifier (argument_list "()" ( )))) ;) (expression_statement "dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58);" (assignment_expression "dVar13 = *(double *)(PTR_DAT_0003e1b8 + -0x3d58)" identifier = (pointer_expression "*(double *)(PTR_DAT_0003e1b8 + -0x3d58)" * (cast_expression "(double *)(PTR_DAT_0003e1b8 + -0x3d58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0003e1b8 + -0x3d58)" ( (binary_expression "PTR_DAT_0003e1b8 + -0x3d58" identifier + number_literal) ))))) ;) }))) (expression_statement "dVar12 = dVar12 * dVar13;" (assignment_expression "dVar12 = dVar12 * dVar13" identifier = (binary_expression "dVar12 * dVar13" identifier * identifier)) ;) }) (else_clause "else {\n    dVar12 = (double)iVar2 * (double)iVar3;\n  }" else (compound_statement "{\n    dVar12 = (double)iVar2 * (double)iVar3;\n  }" { (expression_statement "dVar12 = (double)iVar2 * (double)iVar3;" (assignment_expression "dVar12 = (double)iVar2 * (double)iVar3" identifier = (binary_expression "(double)iVar2 * (double)iVar3" (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) * (cast_expression "(double)iVar3" ( (type_descriptor "double" primitive_type) ) identifier))) ;) }))) (if_statement "if (iVar1 == *(int *)puVar11) {\n    return dVar12;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar11)" ( (binary_expression "iVar1 == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return dVar12;\n  }" { (return_statement "return dVar12;" return identifier ;) })) (expression_statement "puVar11 = PTR___stack_chk_fail_0003e518;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0003e518" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0003e518)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003e518)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003e518)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0003e518" * (cast_expression "(code *)PTR___stack_chk_fail_0003e518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(puVar11 + 0x1d518);" (assignment_expression "iVar1 = *(int *)(puVar11 + 0x1d518)" identifier = (pointer_expression "*(int *)(puVar11 + 0x1d518)" * (cast_expression "(int *)(puVar11 + 0x1d518)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x1d518)" ( (binary_expression "puVar11 + 0x1d518" identifier + number_literal) ))))) ;) (expression_statement "_Var9 = psVar7->uptime;" (assignment_expression "_Var9 = psVar7->uptime" identifier = (field_expression "psVar7->uptime" identifier -> field_identifier)) ;) (expression_statement "_Var10 = psVar7->loads[0];" (assignment_expression "_Var10 = psVar7->loads[0]" identifier = (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ])) ;) (if_statement "if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar11 + 0x1d760))();\n    dVar12 = extraout_f0_1_00;\n    if ((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -0x14c0))" ( (binary_expression "-1 < *(int *)(iVar1 + -0x14c0)" number_literal < (pointer_expression "*(int *)(iVar1 + -0x14c0)" * (cast_expression "(int *)(iVar1 + -0x14c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = (**(code **)(puVar11 + 0x1d760))();\n    dVar12 = extraout_f0_1_00;\n    if ((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" { (expression_statement "iVar2 = (**(code **)(puVar11 + 0x1d760))();" (assignment_expression "iVar2 = (**(code **)(puVar11 + 0x1d760))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d760))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d760))" ( (pointer_expression "**(code **)(puVar11 + 0x1d760)" * (pointer_expression "*(code **)(puVar11 + 0x1d760)" * (cast_expression "(code **)(puVar11 + 0x1d760)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d760)" ( (binary_expression "puVar11 + 0x1d760" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "dVar12 = extraout_f0_1_00;" (assignment_expression "dVar12 = extraout_f0_1_00" identifier = identifier) ;) (if_statement "if ((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }" if (parenthesized_expression "((-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59))" ( (binary_expression "(-1 < iVar2) ||\n       (piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) || (parenthesized_expression "(piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59)" ( (comma_expression "piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))(), dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59" (assignment_expression "piVar6 = (int *)(**(code **)(puVar11 + 0x1d7c0))()" identifier = (cast_expression "(int *)(**(code **)(puVar11 + 0x1d7c0))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar11 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar11 + 0x1d7c0)" * (cast_expression "(code **)(puVar11 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d7c0)" ( (binary_expression "puVar11 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) , (comma_expression "dVar12 = extraout_f0_1_01,\n       *piVar6 != 0x59" (assignment_expression "dVar12 = extraout_f0_1_01" identifier = identifier) , (binary_expression "*piVar6 != 0x59" (pointer_expression "*piVar6" * identifier) != number_literal))) ))) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return dVar12;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 1" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" * (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return dVar12;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" * (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((in_a1 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);\n    dVar12 = extraout_f0_1;\n    if (-1 < iVar1) {\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }\n  }\n  else {\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n    *puVar4 = 0x16;\n    dVar12 = extraout_f0_1_02;\n  }" if (parenthesized_expression "((in_a1 & 0xfff7ff7f) == 0)" ( (binary_expression "(in_a1 & 0xfff7ff7f) == 0" (parenthesized_expression "(in_a1 & 0xfff7ff7f)" ( (binary_expression "in_a1 & 0xfff7ff7f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);\n    dVar12 = extraout_f0_1;\n    if (-1 < iVar1) {\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7);" (assignment_expression "iVar1 = (**(code **)(puVar11 + 0x1d7b4))(psVar7)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d7b4))(psVar7)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d7b4))" ( (pointer_expression "**(code **)(puVar11 + 0x1d7b4)" * (pointer_expression "*(code **)(puVar11 + 0x1d7b4)" * (cast_expression "(code **)(puVar11 + 0x1d7b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d7b4)" ( (binary_expression "puVar11 + 0x1d7b4" identifier + number_literal) ))))) )) (argument_list "(psVar7)" ( identifier )))) ;) (expression_statement "dVar12 = extraout_f0_1;" (assignment_expression "dVar12 = extraout_f0_1" identifier = identifier) ;) (if_statement "if (-1 < iVar1) {\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }\n      puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n      uVar8 = *puVar4;\n      (**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);\n      dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);\n      psVar7->uptime = _Var9;\n      psVar7->loads[0] = _Var10;\n      *puVar4 = uVar8;\n    }" { (if_statement "if (((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }" if (parenthesized_expression "(((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1))))" ( (binary_expression "((in_a1 & 0x80) == 0) ||\n         ((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))" (parenthesized_expression "((in_a1 & 0x80) == 0)" ( (binary_expression "(in_a1 & 0x80) == 0" (parenthesized_expression "(in_a1 & 0x80)" ( (binary_expression "in_a1 & 0x80" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)))" ( (parenthesized_expression "(((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1))" ( (binary_expression "((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)) &&\n          (iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)" (parenthesized_expression "((uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5))" ( (binary_expression "(uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)) &&\n           (uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)" (parenthesized_expression "(uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1))" ( (comma_expression "uVar5 = rpl_fcntl(psVar7->loads[0],3,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)" (assignment_expression "uVar5 = rpl_fcntl(psVar7->loads[0],3,0)" identifier = (call_expression "rpl_fcntl(psVar7->loads[0],3,0)" identifier (argument_list "(psVar7->loads[0],3,0)" ( (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ]) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)" (binary_expression "-1 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80)" identifier = (call_expression "rpl_fcntl(psVar7->loads[0],4,uVar5 | 0x80)" identifier (argument_list "(psVar7->loads[0],4,uVar5 | 0x80)" ( (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ]) , number_literal , (binary_expression "uVar5 | 0x80" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) )))) )) && (parenthesized_expression "(uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5)" ( (comma_expression "uVar5 = rpl_fcntl(psVar7->uptime,3,0), -1 < (int)uVar5" (assignment_expression "uVar5 = rpl_fcntl(psVar7->uptime,3,0)" identifier = (call_expression "rpl_fcntl(psVar7->uptime,3,0)" identifier (argument_list "(psVar7->uptime,3,0)" ( (field_expression "psVar7->uptime" identifier -> field_identifier) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ))) )) && (parenthesized_expression "(iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80)" identifier = (call_expression "rpl_fcntl(psVar7->uptime,4,uVar5 | 0x80)" identifier (argument_list "(psVar7->uptime,4,uVar5 | 0x80)" ( (field_expression "psVar7->uptime" identifier -> field_identifier) , number_literal , (binary_expression "uVar5 | 0x80" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n        if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }\n        uVar5 = rpl_fcntl(psVar7->loads[0],1,0);\n        if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }\n      }" { (if_statement "if (-1 < (int)(in_a1 << 0xc)) {\n          return dVar12;\n        }" if (parenthesized_expression "(-1 < (int)(in_a1 << 0xc))" ( (binary_expression "-1 < (int)(in_a1 << 0xc)" number_literal < (cast_expression "(int)(in_a1 << 0xc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(in_a1 << 0xc)" ( (binary_expression "in_a1 << 0xc" identifier << number_literal) )))) )) (compound_statement "{\n          return dVar12;\n        }" { (return_statement "return dVar12;" return identifier ;) })) (expression_statement "uVar5 = rpl_fcntl(psVar7->loads[0],1,0);" (assignment_expression "uVar5 = rpl_fcntl(psVar7->loads[0],1,0)" identifier = (call_expression "rpl_fcntl(psVar7->loads[0],1,0)" identifier (argument_list "(psVar7->loads[0],1,0)" ( (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ]) , number_literal , number_literal )))) ;) (if_statement "if (((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))) {\n          return dVar12;\n        }" if (parenthesized_expression "(((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1))))" ( (binary_expression "((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)) &&\n           ((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))" (parenthesized_expression "((-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1))" ( (binary_expression "(-1 < (int)uVar5) && (iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)" (parenthesized_expression "(-1 < (int)uVar5)" ( (binary_expression "-1 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(psVar7->loads[0],2,uVar5 | 1)" identifier = (call_expression "rpl_fcntl(psVar7->loads[0],2,uVar5 | 1)" identifier (argument_list "(psVar7->loads[0],2,uVar5 | 1)" ( (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ]) , number_literal , (binary_expression "uVar5 | 1" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) && (parenthesized_expression "((uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)))" ( (parenthesized_expression "(uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1))" ( (comma_expression "uVar5 = rpl_fcntl(psVar7->uptime,1,0), -1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)" (assignment_expression "uVar5 = rpl_fcntl(psVar7->uptime,1,0)" identifier = (call_expression "rpl_fcntl(psVar7->uptime,1,0)" identifier (argument_list "(psVar7->uptime,1,0)" ( (field_expression "psVar7->uptime" identifier -> field_identifier) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar5 &&\n            (iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)" (binary_expression "-1 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(psVar7->uptime,2,uVar5 | 1)" identifier = (call_expression "rpl_fcntl(psVar7->uptime,2,uVar5 | 1)" identifier (argument_list "(psVar7->uptime,2,uVar5 | 1)" ( (field_expression "psVar7->uptime" identifier -> field_identifier) , number_literal , (binary_expression "uVar5 | 1" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n          return dVar12;\n        }" { (return_statement "return dVar12;" return identifier ;) })) })) (expression_statement "puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();" (assignment_expression "puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar11 + 0x1d7c0))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar11 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar11 + 0x1d7c0)" * (cast_expression "(code **)(puVar11 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d7c0)" ( (binary_expression "puVar11 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar8 = *puVar4;" (assignment_expression "uVar8 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "(**(code **)(puVar11 + 0x1d71c))(psVar7->uptime);" (call_expression "(**(code **)(puVar11 + 0x1d71c))(psVar7->uptime)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d71c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d71c)" * (pointer_expression "*(code **)(puVar11 + 0x1d71c)" * (cast_expression "(code **)(puVar11 + 0x1d71c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d71c)" ( (binary_expression "puVar11 + 0x1d71c" identifier + number_literal) ))))) )) (argument_list "(psVar7->uptime)" ( (field_expression "psVar7->uptime" identifier -> field_identifier) ))) ;) (expression_statement "dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0]);" (assignment_expression "dVar12 = (double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0])" identifier = (cast_expression "(double)(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0])" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar11 + 0x1d71c))(psVar7->loads[0])" (parenthesized_expression "(**(code **)(puVar11 + 0x1d71c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d71c)" * (pointer_expression "*(code **)(puVar11 + 0x1d71c)" * (cast_expression "(code **)(puVar11 + 0x1d71c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d71c)" ( (binary_expression "puVar11 + 0x1d71c" identifier + number_literal) ))))) )) (argument_list "(psVar7->loads[0])" ( (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ]) ))))) ;) (expression_statement "psVar7->uptime = _Var9;" (assignment_expression "psVar7->uptime = _Var9" (field_expression "psVar7->uptime" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar7->loads[0] = _Var10;" (assignment_expression "psVar7->loads[0] = _Var10" (subscript_expression "psVar7->loads[0]" (field_expression "psVar7->loads" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (expression_statement "*puVar4 = uVar8;" (assignment_expression "*puVar4 = uVar8" (pointer_expression "*puVar4" * identifier) = identifier) ;) })) }) (else_clause "else {\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n    *puVar4 = 0x16;\n    dVar12 = extraout_f0_1_02;\n  }" else (compound_statement "{\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();\n    *puVar4 = 0x16;\n    dVar12 = extraout_f0_1_02;\n  }" { (expression_statement "puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))();" (assignment_expression "puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d7c0))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar11 + 0x1d7c0))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar11 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar11 + 0x1d7c0)" * (cast_expression "(code **)(puVar11 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d7c0)" ( (binary_expression "puVar11 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 0x16;" (assignment_expression "*puVar4 = 0x16" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "dVar12 = extraout_f0_1_02;" (assignment_expression "dVar12 = extraout_f0_1_02" identifier = identifier) ;) }))) (return_statement "return dVar12;" return identifier ;) })))
(translation_unit "int physmem_available(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}\n\n" (function_definition "int physmem_available(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}" primitive_type (function_declarator "physmem_available(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 auStack_54 [16];" type_identifier (array_declarator "auStack_54 [16]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar10 = PTR___stack_chk_guard_0003e550;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0003e550" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0003e550;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0003e550" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0003e550" * (cast_expression "(int *)PTR___stack_chk_guard_0003e550" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);" (assignment_expression "iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56)" identifier = (call_expression "(*(code *)PTR_sysconf_0003e510)(0x56)" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" ( (pointer_expression "*(code *)PTR_sysconf_0003e510" * (cast_expression "(code *)PTR_sysconf_0003e510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x56)" ( number_literal )))) ;) (expression_statement "puVar6 = (undefined4 *)0x1e;" (assignment_expression "puVar6 = (undefined4 *)0x1e" identifier = (cast_expression "(undefined4 *)0x1e" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_sysconf_0003e510)();" (assignment_expression "iVar2 = (*(code *)PTR_sysconf_0003e510)()" identifier = (call_expression "(*(code *)PTR_sysconf_0003e510)()" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" ( (pointer_expression "*(code *)PTR_sysconf_0003e510" * (cast_expression "(code *)PTR_sysconf_0003e510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }" if (parenthesized_expression "((iVar1 < 0) || (iVar2 < 0))" ( (binary_expression "(iVar1 < 0) || (iVar2 < 0)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }" { (expression_statement "puVar6 = auStack_54;" (assignment_expression "puVar6 = auStack_54" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();" (assignment_expression "iVar1 = (*(code *)PTR_sysinfo_0003e4a0)()" identifier = (call_expression "(*(code *)PTR_sysinfo_0003e4a0)()" (parenthesized_expression "(*(code *)PTR_sysinfo_0003e4a0)" ( (pointer_expression "*(code *)PTR_sysinfo_0003e4a0" * (cast_expression "(code *)PTR_sysinfo_0003e4a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      physmem_total();\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      physmem_total();\n    }" { (expression_statement "physmem_total();" (call_expression "physmem_total()" identifier (argument_list "()" ( ))) ;) })) })) (if_statement "if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar10)" ( (binary_expression "local_14 == *(int *)puVar10" identifier == (pointer_expression "*(int *)puVar10" * (cast_expression "(int *)puVar10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar10;\n  }" { (return_statement "return *(int *)puVar10;" return (pointer_expression "*(int *)puVar10" * (cast_expression "(int *)puVar10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_0003e518;" (assignment_expression "puVar10 = PTR___stack_chk_fail_0003e518" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0003e518)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003e518)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003e518)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0003e518" * (cast_expression "(code *)PTR___stack_chk_fail_0003e518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(puVar10 + 0x1d518);" (assignment_expression "iVar1 = *(int *)(puVar10 + 0x1d518)" identifier = (pointer_expression "*(int *)(puVar10 + 0x1d518)" * (cast_expression "(int *)(puVar10 + 0x1d518)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x1d518)" ( (binary_expression "puVar10 + 0x1d518" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar9 = puVar6[1];" (assignment_expression "uVar9 = puVar6[1]" identifier = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (if_statement "if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -0x14c0))" ( (binary_expression "-1 < *(int *)(iVar1 + -0x14c0)" number_literal < (pointer_expression "*(int *)(iVar1 + -0x14c0)" * (cast_expression "(int *)(iVar1 + -0x14c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" { (expression_statement "iVar2 = (**(code **)(puVar10 + 0x1d760))();" (assignment_expression "iVar2 = (**(code **)(puVar10 + 0x1d760))()" identifier = (call_expression "(**(code **)(puVar10 + 0x1d760))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d760))" ( (pointer_expression "**(code **)(puVar10 + 0x1d760)" * (pointer_expression "*(code **)(puVar10 + 0x1d760)" * (cast_expression "(code **)(puVar10 + 0x1d760)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d760)" ( (binary_expression "puVar10 + 0x1d760" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }" if (parenthesized_expression "((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59))" ( (binary_expression "(-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) || (parenthesized_expression "(piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)" ( (comma_expression "piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59" (assignment_expression "piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))()" identifier = (cast_expression "(int *)(**(code **)(puVar10 + 0x1d7c0))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" * (cast_expression "(code **)(puVar10 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7c0)" ( (binary_expression "puVar10 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) , (binary_expression "*piVar5 != 0x59" (pointer_expression "*piVar5" * identifier) != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 1" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" * (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" * (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x14c0)" ( (binary_expression "iVar1 + -0x14c0" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" if (parenthesized_expression "((param_2 & 0xfff7ff7f) == 0)" ( (binary_expression "(param_2 & 0xfff7ff7f) == 0" (parenthesized_expression "(param_2 & 0xfff7ff7f)" ( (binary_expression "param_2 & 0xfff7ff7f" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6)" identifier = (call_expression "(**(code **)(puVar10 + 0x1d7b4))(puVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7b4))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7b4)" * (pointer_expression "*(code **)(puVar10 + 0x1d7b4)" * (cast_expression "(code **)(puVar10 + 0x1d7b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7b4)" ( (binary_expression "puVar10 + 0x1d7b4" identifier + number_literal) ))))) )) (argument_list "(puVar6)" ( identifier )))) ;) (if_statement "if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }" { (if_statement "if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1))))" ( (binary_expression "((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))" (parenthesized_expression "((param_2 & 0x80) == 0)" ( (binary_expression "(param_2 & 0x80) == 0" (parenthesized_expression "(param_2 & 0x80)" ( (binary_expression "param_2 & 0x80" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))" ( (parenthesized_expression "(((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1))" ( (binary_expression "((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)" (parenthesized_expression "((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4))" ( (binary_expression "(uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)" (parenthesized_expression "(uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1))" ( (comma_expression "uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (assignment_expression "uVar4 = rpl_fcntl(puVar6[1],3,0)" identifier = (call_expression "rpl_fcntl(puVar6[1],3,0)" identifier (argument_list "(puVar6[1],3,0)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80)" identifier = (call_expression "rpl_fcntl(puVar6[1],4,uVar4 | 0x80)" identifier (argument_list "(puVar6[1],4,uVar4 | 0x80)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , (binary_expression "uVar4 | 0x80" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) )))) )) && (parenthesized_expression "(uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)" ( (comma_expression "uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4" (assignment_expression "uVar4 = rpl_fcntl(*puVar6,3,0)" identifier = (call_expression "rpl_fcntl(*puVar6,3,0)" identifier (argument_list "(*puVar6,3,0)" ( (pointer_expression "*puVar6" * identifier) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ))) )) && (parenthesized_expression "(iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80)" identifier = (call_expression "rpl_fcntl(*puVar6,4,uVar4 | 0x80)" identifier (argument_list "(*puVar6,4,uVar4 | 0x80)" ( (pointer_expression "*puVar6" * identifier) , number_literal , (binary_expression "uVar4 | 0x80" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }" { (if_statement "if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }" if (parenthesized_expression "(-1 < (int)(param_2 << 0xc))" ( (binary_expression "-1 < (int)(param_2 << 0xc)" number_literal < (cast_expression "(int)(param_2 << 0xc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_2 << 0xc)" ( (binary_expression "param_2 << 0xc" identifier << number_literal) )))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = rpl_fcntl(puVar6[1],1,0);" (assignment_expression "uVar4 = rpl_fcntl(puVar6[1],1,0)" identifier = (call_expression "rpl_fcntl(puVar6[1],1,0)" identifier (argument_list "(puVar6[1],1,0)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , number_literal )))) ;) (if_statement "if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }" if (parenthesized_expression "(((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1))))" ( (binary_expression "((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))" (parenthesized_expression "((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1))" ( (binary_expression "(-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)" (parenthesized_expression "(-1 < (int)uVar4)" ( (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1)" identifier = (call_expression "rpl_fcntl(puVar6[1],2,uVar4 | 1)" identifier (argument_list "(puVar6[1],2,uVar4 | 1)" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) , number_literal , (binary_expression "uVar4 | 1" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) ))) )) && (parenthesized_expression "((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))" ( (parenthesized_expression "(uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1))" ( (comma_expression "uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (assignment_expression "uVar4 = rpl_fcntl(*puVar6,1,0)" identifier = (call_expression "rpl_fcntl(*puVar6,1,0)" identifier (argument_list "(*puVar6,1,0)" ( (pointer_expression "*puVar6" * identifier) , number_literal , number_literal )))) , (binary_expression "-1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" ( (comma_expression "iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1)" identifier = (call_expression "rpl_fcntl(*puVar6,2,uVar4 | 1)" identifier (argument_list "(*puVar6,2,uVar4 | 1)" ( (pointer_expression "*puVar6" * identifier) , number_literal , (binary_expression "uVar4 | 1" identifier | number_literal) )))) , (binary_expression "iVar1 != -1" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" * (cast_expression "(code **)(puVar10 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7c0)" ( (binary_expression "puVar10 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar3;" (assignment_expression "uVar7 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "(**(code **)(puVar10 + 0x1d71c))(*puVar6);" (call_expression "(**(code **)(puVar10 + 0x1d71c))(*puVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x1d71c))" ( (pointer_expression "**(code **)(puVar10 + 0x1d71c)" * (pointer_expression "*(code **)(puVar10 + 0x1d71c)" * (cast_expression "(code **)(puVar10 + 0x1d71c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d71c)" ( (binary_expression "puVar10 + 0x1d71c" identifier + number_literal) ))))) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) ))) ;) (expression_statement "(**(code **)(puVar10 + 0x1d71c))(puVar6[1]);" (call_expression "(**(code **)(puVar10 + 0x1d71c))(puVar6[1])" (parenthesized_expression "(**(code **)(puVar10 + 0x1d71c))" ( (pointer_expression "**(code **)(puVar10 + 0x1d71c)" * (pointer_expression "*(code **)(puVar10 + 0x1d71c)" * (cast_expression "(code **)(puVar10 + 0x1d71c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d71c)" ( (binary_expression "puVar10 + 0x1d71c" identifier + number_literal) ))))) )) (argument_list "(puVar6[1])" ( (subscript_expression "puVar6[1]" identifier [ number_literal ]) ))) ;) (expression_statement "*puVar6 = uVar8;" (assignment_expression "*puVar6 = uVar8" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar3 = uVar7;" (assignment_expression "*puVar3 = uVar7" (pointer_expression "*puVar3" * identifier) = identifier) ;) })) }) (else_clause "else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" else (compound_statement "{\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" { (expression_statement "puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();" (assignment_expression "puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" ( (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" * (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" * (cast_expression "(code **)(puVar10 + 0x1d7c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1d7c0)" ( (binary_expression "puVar10 + 0x1d7c0" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar6 = 0x16;" (assignment_expression "*puVar6 = 0x16" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }))) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) , (binary_expression (pointer_expression * IDENT) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , LIT )))) , (binary_expression (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , (binary_expression IDENT | LIT) )))) , (binary_expression IDENT != LIT)) )))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , LIT )))) , (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT))) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , (binary_expression IDENT | LIT) )))) , (binary_expression IDENT != LIT)) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT << LIT) )))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , (binary_expression IDENT | LIT) )))) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , LIT )))) , (binary_expression (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , (binary_expression IDENT | LIT) )))) , (binary_expression IDENT != LIT)) )))) )) ))) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (return_statement return LIT ;) })))
(function_definition "int physmem_available(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "physmem_available(undefined4 param_1,uint param_2)" (identifier "physmem_available") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 auStack_54 [16];\n  int local_14;\n  \n  puVar10 = PTR___stack_chk_guard_0003e550;\n  local_14 = *(int *)PTR___stack_chk_guard_0003e550;\n  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);\n  puVar6 = (undefined4 *)0x1e;\n  iVar2 = (*(code *)PTR_sysconf_0003e510)();\n  if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }\n  if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }\n  puVar10 = PTR___stack_chk_fail_0003e518;\n  (*(code *)PTR___stack_chk_fail_0003e518)();\n  iVar1 = *(int *)(puVar10 + 0x1d518);\n  uVar8 = *puVar6;\n  uVar9 = puVar6[1];\n  if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }\n  if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 auStack_54 [16];" (type_identifier "undefined4") (array_declarator "auStack_54 [16]" (identifier "auStack_54") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar10 = PTR___stack_chk_guard_0003e550;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0003e550" (identifier "puVar10") (= "=") (identifier "PTR___stack_chk_guard_0003e550")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0003e550;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0003e550" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0003e550" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0003e550" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0003e550")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);" (assignment_expression "iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sysconf_0003e510)(0x56)" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" (( "(") (pointer_expression "*(code *)PTR_sysconf_0003e510" (* "*") (cast_expression "(code *)PTR_sysconf_0003e510" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sysconf_0003e510"))) () ")")) (argument_list "(0x56)" (( "(") (number_literal "0x56") () ")")))) (; ";")) (expression_statement "puVar6 = (undefined4 *)0x1e;" (assignment_expression "puVar6 = (undefined4 *)0x1e" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)0x1e" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1e"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_sysconf_0003e510)();" (assignment_expression "iVar2 = (*(code *)PTR_sysconf_0003e510)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sysconf_0003e510)()" (parenthesized_expression "(*(code *)PTR_sysconf_0003e510)" (( "(") (pointer_expression "*(code *)PTR_sysconf_0003e510" (* "*") (cast_expression "(code *)PTR_sysconf_0003e510" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sysconf_0003e510"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 < 0) || (iVar2 < 0)) {\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 < 0) || (iVar2 < 0))" (( "(") (binary_expression "(iVar1 < 0) || (iVar2 < 0)" (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    puVar6 = auStack_54;\n    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();\n    if (iVar1 != 0) {\n      physmem_total();\n    }\n  }" ({ "{") (expression_statement "puVar6 = auStack_54;" (assignment_expression "puVar6 = auStack_54" (identifier "puVar6") (= "=") (identifier "auStack_54")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();" (assignment_expression "iVar1 = (*(code *)PTR_sysinfo_0003e4a0)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sysinfo_0003e4a0)()" (parenthesized_expression "(*(code *)PTR_sysinfo_0003e4a0)" (( "(") (pointer_expression "*(code *)PTR_sysinfo_0003e4a0" (* "*") (cast_expression "(code *)PTR_sysinfo_0003e4a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sysinfo_0003e4a0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      physmem_total();\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      physmem_total();\n    }" ({ "{") (expression_statement "physmem_total();" (call_expression "physmem_total()" (identifier "physmem_total") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_14 == *(int *)puVar10) {\n    return *(int *)puVar10;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar10)" (( "(") (binary_expression "local_14 == *(int *)puVar10" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar10" (* "*") (cast_expression "(int *)puVar10" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10")))) () ")")) (compound_statement "{\n    return *(int *)puVar10;\n  }" ({ "{") (return_statement "return *(int *)puVar10;" (return "return") (pointer_expression "*(int *)puVar10" (* "*") (cast_expression "(int *)puVar10" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10"))) (; ";")) (} "}"))) (expression_statement "puVar10 = PTR___stack_chk_fail_0003e518;" (assignment_expression "puVar10 = PTR___stack_chk_fail_0003e518" (identifier "puVar10") (= "=") (identifier "PTR___stack_chk_fail_0003e518")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0003e518)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003e518)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003e518)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0003e518" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0003e518" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0003e518"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(puVar10 + 0x1d518);" (assignment_expression "iVar1 = *(int *)(puVar10 + 0x1d518)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(puVar10 + 0x1d518)" (* "*") (cast_expression "(int *)(puVar10 + 0x1d518)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x1d518)" (( "(") (binary_expression "puVar10 + 0x1d518" (identifier "puVar10") (+ "+") (number_literal "0x1d518")) () ")"))))) (; ";")) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" (identifier "uVar8") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "uVar9 = puVar6[1];" (assignment_expression "uVar9 = puVar6[1]" (identifier "uVar9") (= "=") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (-1 < *(int *)(iVar1 + -0x14c0)) {\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(iVar1 + -0x14c0))" (( "(") (binary_expression "-1 < *(int *)(iVar1 + -0x14c0)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(iVar1 + -0x14c0)" (* "*") (cast_expression "(int *)(iVar1 + -0x14c0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x14c0)" (( "(") (binary_expression "iVar1 + -0x14c0" (identifier "iVar1") (+ "+") (number_literal "-0x14c0")) () ")"))))) () ")")) (compound_statement "{\n    iVar2 = (**(code **)(puVar10 + 0x1d760))();\n    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }\n    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(puVar10 + 0x1d760))();" (assignment_expression "iVar2 = (**(code **)(puVar10 + 0x1d760))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar10 + 0x1d760))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d760))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d760)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d760)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d760)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d760)" (( "(") (binary_expression "puVar10 + 0x1d760" (identifier "puVar10") (+ "+") (number_literal "0x1d760")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }" (if "if") (parenthesized_expression "((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59))" (( "(") (binary_expression "(-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)" (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (|| "||") (parenthesized_expression "(piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)" (( "(") (comma_expression "piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59" (assignment_expression "piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))()" (identifier "piVar5") (= "=") (cast_expression "(int *)(**(code **)(puVar10 + 0x1d7c0))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d7c0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d7c0)" (( "(") (binary_expression "puVar10 + 0x1d7c0" (identifier "puVar10") (+ "+") (number_literal "0x1d7c0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar5 != 0x59" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "0x59"))) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar1 + -0x14c0) = 1;\n      return iVar2;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 1" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x14c0)" (( "(") (binary_expression "iVar1 + -0x14c0" (identifier "iVar1") (+ "+") (number_literal "-0x14c0")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar1 + -0x14c0)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -0x14c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x14c0)" (( "(") (binary_expression "iVar1 + -0x14c0" (identifier "iVar1") (+ "+") (number_literal "-0x14c0")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (if_statement "if ((param_2 & 0xfff7ff7f) == 0) {\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }\n  else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" (if "if") (parenthesized_expression "((param_2 & 0xfff7ff7f) == 0)" (( "(") (binary_expression "(param_2 & 0xfff7ff7f) == 0" (parenthesized_expression "(param_2 & 0xfff7ff7f)" (( "(") (binary_expression "param_2 & 0xfff7ff7f" (identifier "param_2") (& "&") (number_literal "0xfff7ff7f")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);\n    if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);" (assignment_expression "iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar10 + 0x1d7b4))(puVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7b4))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d7b4)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d7b4)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d7b4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d7b4)" (( "(") (binary_expression "puVar10 + 0x1d7b4" (identifier "puVar10") (+ "+") (number_literal "0x1d7b4")) () ")"))))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }\n      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n      uVar7 = *puVar3;\n      (**(code **)(puVar10 + 0x1d71c))(*puVar6);\n      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);\n      *puVar6 = uVar8;\n      puVar6[1] = uVar9;\n      *puVar3 = uVar7;\n    }" ({ "{") (if_statement "if (((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }" (if "if") (parenthesized_expression "(((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1))))" (( "(") (binary_expression "((param_2 & 0x80) == 0) ||\n         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))" (parenthesized_expression "((param_2 & 0x80) == 0)" (( "(") (binary_expression "(param_2 & 0x80) == 0" (parenthesized_expression "(param_2 & 0x80)" (( "(") (binary_expression "param_2 & 0x80" (identifier "param_2") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))" (( "(") (parenthesized_expression "(((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1))" (( "(") (binary_expression "((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&\n          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)" (parenthesized_expression "((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4))" (( "(") (binary_expression "(uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&\n           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)" (parenthesized_expression "(uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1))" (( "(") (comma_expression "uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (assignment_expression "uVar4 = rpl_fcntl(puVar6[1],3,0)" (identifier "uVar4") (= "=") (call_expression "rpl_fcntl(puVar6[1],3,0)" (identifier "rpl_fcntl") (argument_list "(puVar6[1],3,0)" (( "(") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "3") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "-1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (binary_expression "-1 < (int)uVar4" (number_literal "-1") (< "<") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) (&& "&&") (parenthesized_expression "(iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)" (( "(") (comma_expression "iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80)" (identifier "iVar1") (= "=") (call_expression "rpl_fcntl(puVar6[1],4,uVar4 | 0x80)" (identifier "rpl_fcntl") (argument_list "(puVar6[1],4,uVar4 | 0x80)" (( "(") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "4") (, ",") (binary_expression "uVar4 | 0x80" (identifier "uVar4") (| "|") (number_literal "0x80")) () ")")))) (, ",") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1"))) () ")")))) () ")")) (&& "&&") (parenthesized_expression "(uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)" (( "(") (comma_expression "uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4" (assignment_expression "uVar4 = rpl_fcntl(*puVar6,3,0)" (identifier "uVar4") (= "=") (call_expression "rpl_fcntl(*puVar6,3,0)" (identifier "rpl_fcntl") (argument_list "(*puVar6,3,0)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (number_literal "3") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "-1 < (int)uVar4" (number_literal "-1") (< "<") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)" (( "(") (comma_expression "iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80)" (identifier "iVar1") (= "=") (call_expression "rpl_fcntl(*puVar6,4,uVar4 | 0x80)" (identifier "rpl_fcntl") (argument_list "(*puVar6,4,uVar4 | 0x80)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (number_literal "4") (, ",") (binary_expression "uVar4 | 0x80" (identifier "uVar4") (| "|") (number_literal "0x80")) () ")")))) (, ",") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }\n        uVar4 = rpl_fcntl(puVar6[1],1,0);\n        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }\n      }" ({ "{") (if_statement "if (-1 < (int)(param_2 << 0xc)) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(-1 < (int)(param_2 << 0xc))" (( "(") (binary_expression "-1 < (int)(param_2 << 0xc)" (number_literal "-1") (< "<") (cast_expression "(int)(param_2 << 0xc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_2 << 0xc)" (( "(") (binary_expression "param_2 << 0xc" (identifier "param_2") (<< "<<") (number_literal "0xc")) () ")")))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = rpl_fcntl(puVar6[1],1,0);" (assignment_expression "uVar4 = rpl_fcntl(puVar6[1],1,0)" (identifier "uVar4") (= "=") (call_expression "rpl_fcntl(puVar6[1],1,0)" (identifier "rpl_fcntl") (argument_list "(puVar6[1],1,0)" (( "(") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1))))" (( "(") (binary_expression "((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&\n           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))" (parenthesized_expression "((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1))" (( "(") (binary_expression "(-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)" (parenthesized_expression "(-1 < (int)uVar4)" (( "(") (binary_expression "-1 < (int)uVar4" (number_literal "-1") (< "<") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)" (( "(") (comma_expression "iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1)" (identifier "iVar1") (= "=") (call_expression "rpl_fcntl(puVar6[1],2,uVar4 | 1)" (identifier "rpl_fcntl") (argument_list "(puVar6[1],2,uVar4 | 1)" (( "(") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "2") (, ",") (binary_expression "uVar4 | 1" (identifier "uVar4") (| "|") (number_literal "1")) () ")")))) (, ",") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))" (( "(") (parenthesized_expression "(uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1))" (( "(") (comma_expression "uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (assignment_expression "uVar4 = rpl_fcntl(*puVar6,1,0)" (identifier "uVar4") (= "=") (call_expression "rpl_fcntl(*puVar6,1,0)" (identifier "rpl_fcntl") (argument_list "(*puVar6,1,0)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "-1 < (int)uVar4 &&\n            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (binary_expression "-1 < (int)uVar4" (number_literal "-1") (< "<") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) (&& "&&") (parenthesized_expression "(iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)" (( "(") (comma_expression "iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1" (assignment_expression "iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1)" (identifier "iVar1") (= "=") (call_expression "rpl_fcntl(*puVar6,2,uVar4 | 1)" (identifier "rpl_fcntl") (argument_list "(*puVar6,2,uVar4 | 1)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (number_literal "2") (, ",") (binary_expression "uVar4 | 1" (identifier "uVar4") (| "|") (number_literal "1")) () ")")))) (, ",") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d7c0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d7c0)" (( "(") (binary_expression "puVar10 + 0x1d7c0" (identifier "puVar10") (+ "+") (number_literal "0x1d7c0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar7 = *puVar3;" (assignment_expression "uVar7 = *puVar3" (identifier "uVar7") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "(**(code **)(puVar10 + 0x1d71c))(*puVar6);" (call_expression "(**(code **)(puVar10 + 0x1d71c))(*puVar6)" (parenthesized_expression "(**(code **)(puVar10 + 0x1d71c))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d71c)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d71c)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d71c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d71c)" (( "(") (binary_expression "puVar10 + 0x1d71c" (identifier "puVar10") (+ "+") (number_literal "0x1d71c")) () ")"))))) () ")")) (argument_list "(*puVar6)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) () ")"))) (; ";")) (expression_statement "(**(code **)(puVar10 + 0x1d71c))(puVar6[1]);" (call_expression "(**(code **)(puVar10 + 0x1d71c))(puVar6[1])" (parenthesized_expression "(**(code **)(puVar10 + 0x1d71c))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d71c)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d71c)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d71c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d71c)" (( "(") (binary_expression "puVar10 + 0x1d71c" (identifier "puVar10") (+ "+") (number_literal "0x1d71c")) () ")"))))) () ")")) (argument_list "(puVar6[1])" (( "(") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "*puVar6 = uVar8;" (assignment_expression "*puVar6 = uVar8" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*puVar3 = uVar7;" (assignment_expression "*puVar3 = uVar7" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar7")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" (else "else") (compound_statement "{\n    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();\n    *puVar6 = 0x16;\n  }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();" (assignment_expression "puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar10 + 0x1d7c0))()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x1d7c0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1d7c0))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x1d7c0)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x1d7c0)" (* "*") (cast_expression "(code **)(puVar10 + 0x1d7c0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x1d7c0)" (( "(") (binary_expression "puVar10 + 0x1d7c0" (identifier "puVar10") (+ "+") (number_literal "0x1d7c0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar6 = 0x16;" (assignment_expression "*puVar6 = 0x16" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0x16")) (; ";")) (} "}")))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

double function_1(void)

{
  int var_7;
  int var_1;
  int var_2;
  type_1 *puVar4;
  type_2 var_11;
  int *piVar6;
  type_3 *psVar7;
  type_2 var_9;
  type_1 uVar8;
  type_4 _Var9;
  type_5 _Var10;
  type_6 *var_8;
  double var_3;
  double extraout_f0_1;
  double extraout_f0_1_00;
  double extraout_f0_1_01;
  double extraout_f0_1_02;
  double var_5;
  type_3 si;
  
  var_8 = PTR___stack_chk_guard_0003e550;
  var_7 = *(int *)PTR___stack_chk_guard_0003e550;
  var_1 = (*(type_7 *)PTR_sysconf_0003e510)(0x56);
  psVar7 = (type_3 *)0x1e;
  var_2 = (*(type_7 *)PTR_sysconf_0003e510)();
  if ((var_1 < 0) || (var_2 < 0)) {
    psVar7 = &si;
    var_1 = (*(type_7 *)PTR_sysinfo_0003e4a0)();
    if (var_1 == 0) {
      var_3 = (double)(int)si.freeram;
      if ((int)si.freeram < 0) {
        var_3 = var_3 + *(double *)(var_4 + -0x3d30);
      }
      var_5 = (double)(int)si.bufferram;
      if ((int)si.bufferram < 0) {
        var_5 = var_5 + *(double *)(var_4 + -0x3d30);
      }
      var_3 = var_3 + var_5;
      var_5 = (double)(int)si.mem_unit;
      if ((int)si.mem_unit < 0) {
        var_5 = var_5 + *(double *)(var_4 + -0x3d30);
      }
    }
    else {
      var_3 = var_6();
      var_5 = *(double *)(var_4 + -0x3d58);
    }
    var_3 = var_3 * var_5;
  }
  else {
    var_3 = (double)var_1 * (double)var_2;
  }
  if (var_7 == *(int *)var_8) {
    return var_3;
  }
  var_8 = PTR___stack_chk_fail_0003e518;
  (*(type_7 *)PTR___stack_chk_fail_0003e518)();
  var_7 = *(int *)(var_8 + 0x1d518);
  _Var9 = psVar7->uptime;
  _Var10 = psVar7->loads[0];
  if (-1 < *(int *)(var_7 + -0x14c0)) {
    var_1 = (**(type_7 **)(var_8 + 0x1d760))();
    var_3 = extraout_f0_1_00;
    if ((-1 < var_1) ||
       (piVar6 = (int *)(**(type_7 **)(var_8 + 0x1d7c0))(), var_3 = extraout_f0_1_01,
       *piVar6 != 0x59)) {
      *(type_1 *)(var_7 + -0x14c0) = 1;
      return var_3;
    }
    *(type_1 *)(var_7 + -0x14c0) = 0xffffffff;
  }
  if ((var_9 & 0xfff7ff7f) == 0) {
    var_7 = (**(type_7 **)(var_8 + 0x1d7b4))(psVar7);
    var_3 = extraout_f0_1;
    if (-1 < var_7) {
      if (((var_9 & 0x80) == 0) ||
         ((((var_11 = var_10(psVar7->loads[0],3,0), -1 < (int)var_11 &&
            (var_7 = var_10(psVar7->loads[0],4,var_11 | 0x80), var_7 != -1)) &&
           (var_11 = var_10(psVar7->uptime,3,0), -1 < (int)var_11)) &&
          (var_7 = var_10(psVar7->uptime,4,var_11 | 0x80), var_7 != -1)))) {
        if (-1 < (int)(var_9 << 0xc)) {
          return var_3;
        }
        var_11 = var_10(psVar7->loads[0],1,0);
        if (((-1 < (int)var_11) && (var_7 = var_10(psVar7->loads[0],2,var_11 | 1), var_7 != -1)) &&
           ((var_11 = var_10(psVar7->uptime,1,0), -1 < (int)var_11 &&
            (var_7 = var_10(psVar7->uptime,2,var_11 | 1), var_7 != -1)))) {
          return var_3;
        }
      }
      puVar4 = (type_1 *)(**(type_7 **)(var_8 + 0x1d7c0))();
      uVar8 = *puVar4;
      (**(type_7 **)(var_8 + 0x1d71c))(psVar7->uptime);
      var_3 = (double)(**(type_7 **)(var_8 + 0x1d71c))(psVar7->loads[0]);
      psVar7->uptime = _Var9;
      psVar7->loads[0] = _Var10;
      *puVar4 = uVar8;
    }
  }
  else {
    puVar4 = (type_1 *)(**(type_7 **)(var_8 + 0x1d7c0))();
    *puVar4 = 0x16;
    var_3 = extraout_f0_1_02;
  }
  return var_3;
}


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

int MASKED(undefined4 param_1,uint param_2)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  uint uVar4;
  int *piVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined *puVar10;
  undefined4 auStack_54 [16];
  int local_14;
  
  puVar10 = PTR___stack_chk_guard_0003e550;
  local_14 = *(int *)PTR___stack_chk_guard_0003e550;
  iVar1 = (*(code *)PTR_sysconf_0003e510)(0x56);
  puVar6 = (undefined4 *)0x1e;
  iVar2 = (*(code *)PTR_sysconf_0003e510)();
  if ((iVar1 < 0) || (iVar2 < 0)) {
    puVar6 = auStack_54;
    iVar1 = (*(code *)PTR_sysinfo_0003e4a0)();
    if (iVar1 != 0) {
      physmem_total();
    }
  }
  if (local_14 == *(int *)puVar10) {
    return *(int *)puVar10;
  }
  puVar10 = PTR___stack_chk_fail_0003e518;
  (*(code *)PTR___stack_chk_fail_0003e518)();
  iVar1 = *(int *)(puVar10 + 0x1d518);
  uVar8 = *puVar6;
  uVar9 = puVar6[1];
  if (-1 < *(int *)(iVar1 + -0x14c0)) {
    iVar2 = (**(code **)(puVar10 + 0x1d760))();
    if ((-1 < iVar2) || (piVar5 = (int *)(**(code **)(puVar10 + 0x1d7c0))(), *piVar5 != 0x59)) {
      *(undefined4 *)(iVar1 + -0x14c0) = 1;
      return iVar2;
    }
    *(undefined4 *)(iVar1 + -0x14c0) = 0xffffffff;
  }
  if ((param_2 & 0xfff7ff7f) == 0) {
    iVar1 = (**(code **)(puVar10 + 0x1d7b4))(puVar6);
    if (-1 < iVar1) {
      if (((param_2 & 0x80) == 0) ||
         ((((uVar4 = rpl_fcntl(puVar6[1],3,0), -1 < (int)uVar4 &&
            (iVar1 = rpl_fcntl(puVar6[1],4,uVar4 | 0x80), iVar1 != -1)) &&
           (uVar4 = rpl_fcntl(*puVar6,3,0), -1 < (int)uVar4)) &&
          (iVar1 = rpl_fcntl(*puVar6,4,uVar4 | 0x80), iVar1 != -1)))) {
        if (-1 < (int)(param_2 << 0xc)) {
          return 0;
        }
        uVar4 = rpl_fcntl(puVar6[1],1,0);
        if (((-1 < (int)uVar4) && (iVar1 = rpl_fcntl(puVar6[1],2,uVar4 | 1), iVar1 != -1)) &&
           ((uVar4 = rpl_fcntl(*puVar6,1,0), -1 < (int)uVar4 &&
            (iVar1 = rpl_fcntl(*puVar6,2,uVar4 | 1), iVar1 != -1)))) {
          return 0;
        }
      }
      puVar3 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();
      uVar7 = *puVar3;
      (**(code **)(puVar10 + 0x1d71c))(*puVar6);
      (**(code **)(puVar10 + 0x1d71c))(puVar6[1]);
      *puVar6 = uVar8;
      puVar6[1] = uVar9;
      *puVar3 = uVar7;
    }
  }
  else {
    puVar6 = (undefined4 *)(**(code **)(puVar10 + 0x1d7c0))();
    *puVar6 = 0x16;
  }
  return -1;
}

