
randread_source * randread_new(char *name,size_t bytes_bound)

{
  undefined1 *puVar1;
  uint *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  int iVar5;
  randread_source *prVar6;
  int iVar7;
  size_t sVar8;
  undefined *puVar9;
  char *pcVar10;
  char *pcVar11;
  isaac_state *unaff_s3;
  timeval *unaff_s4;
  timeval *ptVar12;
  uint unaff_s5;
  uint uVar13;
  timeval v;
  
  puVar4 = PTR___stack_chk_guard_0002c32c;
  iVar5 = *(int *)PTR___stack_chk_guard_0002c32c;
  if (bytes_bound == 0) {
    prVar6 = (randread_source *)xmalloc(0x81c);
    prVar6->source = (FILE *)0x0;
    prVar6->handler_arg = (void *)0x0;
    prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);
  }
  else {
    if (name == (char *)0x0) {
      prVar6 = (randread_source *)xmalloc(0x81c);
      prVar6->source = (FILE *)0x0;
      unaff_s3 = &(prVar6->buf).isaac.state;
      prVar6->handler_arg = (void *)0x0;
      (prVar6->buf).isaac.buffered = 0;
      puVar3 = PTR_open64_0002c2bc;
      puVar9 = PTR_DAT_0002c108 + -0x4e44;
      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);
      iVar7 = (*(code *)puVar3)(puVar9,0);
      if (iVar7 < 0) {
        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);
        puVar3 = PTR_getpid_0002c2f0;
        pcVar11 = (char *)0xc;
        unaff_s3->m[0] = v.tv_sec;
        (prVar6->buf).isaac.state.m[1] = v.tv_usec;
        v.tv_sec = (*(code *)puVar3)();
        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);
        uVar13 = (uint)puVar1 & 3;
        puVar2 = (uint *)(puVar1 + -uVar13);
        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;
        pcVar10 = (prVar6->buf).c + 0xf;
        uVar13 = (uint)pcVar10 & 3;
        *(uint *)(pcVar10 + -uVar13) =
             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |
             v.tv_sec << (3 - uVar13) * 8;
        goto LAB_000181c0;
      }
      unaff_s5 = 0x400;
      if (0x400 < bytes_bound) {
        bytes_bound = 0x400;
      }
      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);
      (*(code *)PTR_close_0002c23c)(iVar7);
      if ((int)unaff_s4 < 0x400) goto LAB_00018294;
      goto LAB_00018134;
    }
    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);
    unaff_s4 = (timeval *)name;
    if (unaff_s3 == (isaac_state *)0x0) {
      prVar6 = (randread_source *)0x0;
    }
    else {
      prVar6 = (randread_source *)xmalloc(0x81c);
      prVar6->source = (FILE *)unaff_s3;
      puVar9 = PTR_setvbuf_0002c2b4;
      puVar3 = PTR_0002c104;
      sVar8 = 0x800;
      if (bytes_bound < 0x801) {
        sVar8 = bytes_bound;
      }
      prVar6->handler_arg = name;
      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);
      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);
    }
  }
  while (iVar5 != *(int *)puVar4) {
    (*(code *)PTR___stack_chk_fail_0002c310)();
LAB_00018294:
    ptVar12 = unaff_s4;
    if ((int)unaff_s4 < 0) {
      ptVar12 = (timeval *)0x0;
    }
    uVar13 = unaff_s5 - (int)ptVar12;
    unaff_s4 = &v;
    if (8 < uVar13) {
      uVar13 = 8;
    }
    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);
    pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);
    (*(code *)PTR_memcpy_0002c330)
              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);
    if ((int)pcVar10 < 0x400) {
      unaff_s5 = unaff_s5 - (int)pcVar10;
      if (4 < unaff_s5) {
        unaff_s5 = 4;
      }
      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();
      pcVar11 = pcVar10 + unaff_s5;
      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);
      if (pcVar11 < (char *)0x400) {
LAB_000181c0:
        unaff_s4 = &v;
        unaff_s5 = 0x400;
        uVar13 = 0x400 - (int)pcVar11;
        if (4 < uVar13) {
          uVar13 = 4;
        }
        v.tv_sec = (*(code *)PTR_getppid_0002c260)();
        pcVar10 = pcVar11 + uVar13;
        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);
        if (pcVar10 < (char *)0x400) {
          uVar13 = 0x400 - (int)pcVar10;
          if (4 < uVar13) {
            uVar13 = 4;
          }
          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();
          pcVar11 = pcVar10 + uVar13;
          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);
          if (pcVar11 < (char *)0x400) {
            unaff_s5 = 0x400 - (int)pcVar11;
            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();
            uVar13 = 4;
            if (unaff_s5 < 5) {
              uVar13 = unaff_s5;
            }
            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);
          }
        }
      }
    }
LAB_00018134:
    isaac_seed(unaff_s3);
  }
  return prVar6;
}



undefined4 * randread_new(uint *param_1,uint param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  uint *unaff_s3;
  uint *unaff_s4;
  uint *puVar8;
  uint unaff_s5;
  uint uVar9;
  uint local_34;
  undefined4 local_30;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_0002c32c;
  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;
  if (param_2 == 0) {
    puVar3 = (undefined4 *)xmalloc(0x81c);
    *puVar3 = 0;
    puVar3[2] = 0;
    puVar3[1] = PTR_0002c104 + 0x7ee0;
  }
  else {
    if (param_1 == (uint *)0x0) {
      puVar3 = (undefined4 *)xmalloc(0x81c);
      *puVar3 = 0;
      unaff_s3 = puVar3 + 4;
      puVar3[2] = 0;
      puVar3[3] = 0;
      puVar1 = PTR_open64_0002c2bc;
      puVar4 = PTR_DAT_0002c108 + -0x4e44;
      puVar3[1] = PTR_0002c104 + 0x7ee0;
      iVar6 = (*(code *)puVar1)(puVar4,0);
      if (iVar6 < 0) {
        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);
        puVar1 = PTR_getpid_0002c2f0;
        uVar7 = 0xc;
        *unaff_s3 = local_34;
        puVar3[5] = local_30;
        local_34 = (*(code *)puVar1)();
        uVar9 = (uint)(puVar3 + 6) & 3;
        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);
        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;
        uVar9 = (int)puVar3 + 0x1bU & 3;
        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);
        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;
        goto LAB_000181c0;
      }
      unaff_s5 = 0x400;
      if (0x400 < param_2) {
        param_2 = 0x400;
      }
      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);
      (*(code *)PTR_close_0002c23c)(iVar6);
      if ((int)unaff_s4 < 0x400) goto LAB_00018294;
      goto LAB_00018134;
    }
    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);
    unaff_s4 = param_1;
    if (unaff_s3 == (uint *)0x0) {
      puVar3 = (undefined4 *)0x0;
    }
    else {
      puVar3 = (undefined4 *)xmalloc(0x81c);
      *puVar3 = unaff_s3;
      puVar4 = PTR_setvbuf_0002c2b4;
      puVar1 = PTR_0002c104;
      uVar9 = 0x800;
      if (param_2 < 0x801) {
        uVar9 = param_2;
      }
      puVar3[2] = param_1;
      puVar3[1] = puVar1 + 0x7ee0;
      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);
    }
  }
  while (local_2c != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_0002c310)();
LAB_00018294:
    puVar8 = unaff_s4;
    if ((int)unaff_s4 < 0) {
      puVar8 = (uint *)0x0;
    }
    uVar9 = unaff_s5 - (int)puVar8;
    unaff_s4 = &local_34;
    if (8 < uVar9) {
      uVar9 = 8;
    }
    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);
    iVar6 = uVar9 + (int)puVar8;
    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);
    if (iVar6 < 0x400) {
      unaff_s5 = unaff_s5 - iVar6;
      if (4 < unaff_s5) {
        unaff_s5 = 4;
      }
      local_34 = (*(code *)PTR_getpid_0002c2f0)();
      uVar7 = unaff_s5 + iVar6;
      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);
      if (uVar7 < 0x400) {
LAB_000181c0:
        unaff_s4 = &local_34;
        unaff_s5 = 0x400;
        uVar9 = 0x400 - uVar7;
        if (4 < uVar9) {
          uVar9 = 4;
        }
        local_34 = (*(code *)PTR_getppid_0002c260)();
        uVar5 = uVar9 + uVar7;
        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);
        if (uVar5 < 0x400) {
          uVar9 = 0x400 - uVar5;
          if (4 < uVar9) {
            uVar9 = 4;
          }
          local_34 = (*(code *)PTR_getuid_0002c30c)();
          uVar7 = uVar5 + uVar9;
          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);
          if (uVar7 < 0x400) {
            unaff_s5 = 0x400 - uVar7;
            local_34 = (*(code *)PTR_getgid_0002c2b0)();
            uVar9 = 4;
            if (unaff_s5 < 5) {
              uVar9 = unaff_s5;
            }
            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);
          }
        }
      }
    }
LAB_00018134:
    isaac_seed(unaff_s3);
  }
  return puVar3;
}


lui gp,0x2
addiu gp,gp,-0x3ed0
addu gp,gp,t9
addiu sp,sp,-0x50
sw s2,0x34(sp)
lw s2,-0x7da4(gp)
sw gp,0x10(sp)
sw ra,0x4c(sp)
sw s7,0x48(sp)
sw s6,0x44(sp)
sw s5,0x40(sp)
sw s4,0x3c(sp)
sw s3,0x38(sp)
sw s1,0x30(sp)
sw s0,0x2c(sp)
lw v0,0x0(s2)
sw v0,0x24(sp)
beq a1,zero,0x00018144
_or s1,a1,zero
beq a0,zero,0x0001809c
_or s4,a0,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7ecc(gp)
bal 0x00018a80
_addiu a1,a1,-0x4e34
lw gp,0x10(sp)
beq v0,zero,0x00018280
_or s3,v0,zero
lw t9,-0x7f98(gp)
bal 0x00016030
_li a0,0x81c
li v1,0x800
lw gp,0x10(sp)
or s0,v0,zero
sw s3,0x0(v0)
sltiu a3,s1,0x801
addiu a1,v0,0xc
movn v1,s1,a3
or a2,zero,zero
lw v0,-0x7fcc(gp)
or a0,s3,zero
lw t9,-0x7e1c(gp)
or a3,v1,zero
sw s4,0x8(s0)
addiu v0,v0,0x7ee0
jalr t9
_sw v0,0x4(s0)
lw gp,0x10(sp)
lw a0,0x24(sp)
or v0,s0,zero
lw v1,0x0(s2)
bne a0,v1,0x00018288
_lw ra,0x4c(sp)
lw s7,0x48(sp)
lw s6,0x44(sp)
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7f98(gp)
bal 0x00016030
_li a0,0x81c
or a1,zero,zero
lw gp,0x10(sp)
or s0,v0,zero
sw zero,0x0(v0)
addiu s3,v0,0x10
sw zero,0x8(v0)
sw zero,0xc(s0)
lw v0,-0x7fcc(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7e14(gp)
addiu v0,v0,0x7ee0
addiu a0,a0,-0x4e44
jalr t9
_sw v0,0x4(s0)
lw gp,0x10(sp)
bltz v0,0x00018170
_or s4,v0,zero
li s5,0x400
lw t9,-0x7d90(gp)
sltiu a2,s1,0x401
movz s1,s5,a2
li a3,0x80c
or a0,v0,zero
or a1,s3,zero
jalr t9
_or a2,s1,zero
or a0,s4,zero
lw gp,0x10(sp)
lw t9,-0x7e94(gp)
jalr t9
_or s4,v0,zero
slti v0,s4,0x400
bne v0,zero,0x00018294
_lw gp,0x10(sp)
lw t9,-0x7ec8(gp)
bal 0x00018834
_or a0,s3,zero
b 0x00018060
_lw gp,0x10(sp)
lw t9,-0x7f98(gp)
bal 0x00016030
_li a0,0x81c
lw gp,0x10(sp)
or s0,v0,zero
sw zero,0x0(v0)
sw zero,0x8(v0)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x7ee0
b 0x00018060
_sw v0,0x4(s0)
lw t9,-0x7db4(gp)
addiu s4,sp,0x1c
or a1,zero,zero
jalr t9
_or a0,s4,zero
li s1,0xc
lw gp,0x10(sp)
lw v1,0x1c(sp)
lw v0,0x4(s4)
lw t9,-0x7de0(gp)
swl v1,0x0(s3)
swr v1,0x3(s3)
swl v0,0x4(s3)
jalr t9
_swr v0,0x7(s3)
addiu v1,s0,0x18
lw gp,0x10(sp)
swl v0,0x18(s0)
sw v0,0x1c(sp)
swr v0,0x3(v1)
li s5,0x400
lw t9,-0x7e70(gp)
li s6,0x4
subu s7,s5,s1
sltiu v0,s7,0x5
jalr t9
_movz s7,s6,v0
addu a0,s3,s1
lw gp,0x10(sp)
or a1,s4,zero
addu s1,s7,s1
sw v0,0x1c(sp)
lw t9,-0x7da0(gp)
jalr t9
_or a2,s7,zero
sltiu v0,s1,0x400
beq v0,zero,0x00018130
_lw gp,0x10(sp)
lw t9,-0x7dc4(gp)
subu s7,s5,s1
sltiu v0,s7,0x5
jalr t9
_movz s7,s6,v0
addu a0,s3,s1
lw gp,0x10(sp)
or a1,s4,zero
addu s1,s1,s7
sw v0,0x1c(sp)
lw t9,-0x7da0(gp)
jalr t9
_or a2,s7,zero
sltiu v0,s1,0x400
beq v0,zero,0x00018130
_lw gp,0x10(sp)
lw t9,-0x7e20(gp)
jalr t9
_subu s5,s5,s1
sltiu a2,s5,0x5
lw gp,0x10(sp)
addu a0,s3,s1
movn s6,s5,a2
or a1,s4,zero
sw v0,0x1c(sp)
lw t9,-0x7da0(gp)
jalr t9
_or a2,s6,zero
b 0x00018130
_lw gp,0x10(sp)
b 0x00018060
_or s0,zero,zero
lw t9,-0x7dc0(gp)
jalr t9
_nop
slti s1,s4,0x0
lw t9,-0x7db4(gp)
movn s4,zero,s1
or a1,zero,zero
li v0,0x8
or s1,s4,zero
subu s6,s5,s1
addiu s4,sp,0x1c
sltiu v1,s6,0x9
or a0,s4,zero
movz s6,v0,v1
jalr t9
_addu s7,s3,s1
or a1,s4,zero
lw gp,0x10(sp)
or a0,s7,zero
addu s1,s6,s1
lw t9,-0x7da0(gp)
jalr t9
_or a2,s6,zero
slti v0,s1,0x400
beq v0,zero,0x00018130
_lw gp,0x10(sp)
lw t9,-0x7de0(gp)
subu s5,s5,s1
li v0,0x4
sltiu v1,s5,0x5
jalr t9
_movz s5,v0,v1
addu a0,s3,s1
lw gp,0x10(sp)
or a1,s4,zero
addu s1,s5,s1
sw v0,0x1c(sp)
lw t9,-0x7da0(gp)
jalr t9
_or a2,s5,zero
sltiu v0,s1,0x400
bne v0,zero,0x000181c0
_lw gp,0x10(sp)
b 0x00018134
_lw t9,-0x7ec8(gp)
(translation_unit "undefined4 * randread_new(uint *param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}\n\n" (function_definition "undefined4 * randread_new(uint *param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* randread_new(uint *param_1,uint param_2)" * (function_declarator "randread_new(uint *param_1,uint param_2)" identifier (parameter_list "(uint *param_1,uint param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "uint *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint unaff_s5;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0002c32c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0002c32c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0002c32c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0002c32c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c32c" * (cast_expression "(int *)PTR___stack_chk_guard_0002c32c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x81c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = PTR_0002c104 + 0x7ee0;" (assignment_expression "puVar3[1] = PTR_0002c104 + 0x7ee0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "PTR_0002c104 + 0x7ee0" identifier + number_literal)) ;) }) (else_clause "else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" else (compound_statement "{\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" { (if_statement "if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x81c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "unaff_s3 = puVar3 + 4;" (assignment_expression "unaff_s3 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_open64_0002c2bc;" (assignment_expression "puVar1 = PTR_open64_0002c2bc" identifier = identifier) ;) (expression_statement "puVar4 = PTR_DAT_0002c108 + -0x4e44;" (assignment_expression "puVar4 = PTR_DAT_0002c108 + -0x4e44" identifier = (binary_expression "PTR_DAT_0002c108 + -0x4e44" identifier + number_literal)) ;) (expression_statement "puVar3[1] = PTR_0002c104 + 0x7ee0;" (assignment_expression "puVar3[1] = PTR_0002c104 + 0x7ee0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "PTR_0002c104 + 0x7ee0" identifier + number_literal)) ;) (expression_statement "iVar6 = (*(code *)puVar1)(puVar4,0);" (assignment_expression "iVar6 = (*(code *)puVar1)(puVar4,0)" identifier = (call_expression "(*(code *)puVar1)(puVar4,0)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }" { (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(&local_34,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" ( (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" * (cast_expression "(code *)PTR_gettimeofday_0002c31c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_34,0)" ( (pointer_expression "&local_34" & identifier) , number_literal ))) ;) (expression_statement "puVar1 = PTR_getpid_0002c2f0;" (assignment_expression "puVar1 = PTR_getpid_0002c2f0" identifier = identifier) ;) (expression_statement "uVar7 = 0xc;" (assignment_expression "uVar7 = 0xc" identifier = number_literal) ;) (expression_statement "*unaff_s3 = local_34;" (assignment_expression "*unaff_s3 = local_34" (pointer_expression "*unaff_s3" * identifier) = identifier) ;) (expression_statement "puVar3[5] = local_30;" (assignment_expression "puVar3[5] = local_30" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_34 = (*(code *)puVar1)();" (assignment_expression "local_34 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar9 = (uint)(puVar3 + 6) & 3;" (assignment_expression "uVar9 = (uint)(puVar3 + 6) & 3" identifier = (binary_expression "(uint)(puVar3 + 6) & 3" (call_expression "(uint)(puVar3 + 6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 6)" ( (binary_expression "puVar3 + 6" identifier + number_literal) ))) & number_literal)) ;) (expression_statement "puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);" (assignment_expression "puVar8 = (uint *)((int)(puVar3 + 6) - uVar9)" identifier = (cast_expression "(uint *)((int)(puVar3 + 6) - uVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(puVar3 + 6) - uVar9)" ( (binary_expression "(int)(puVar3 + 6) - uVar9" (cast_expression "(int)(puVar3 + 6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar3 + 6)" ( (binary_expression "puVar3 + 6" identifier + number_literal) ))) - identifier) )))) ;) (expression_statement "*puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;" (assignment_expression "*puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8" (pointer_expression "*puVar8" * identifier) = (binary_expression "*puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8" (binary_expression "*puVar8 & -1 << (4 - uVar9) * 8" (pointer_expression "*puVar8" * identifier) & (binary_expression "-1 << (4 - uVar9) * 8" number_literal << (binary_expression "(4 - uVar9) * 8" (parenthesized_expression "(4 - uVar9)" ( (binary_expression "4 - uVar9" number_literal - identifier) )) * number_literal))) | (binary_expression "local_34 >> uVar9 * 8" identifier >> (binary_expression "uVar9 * 8" identifier * number_literal)))) ;) (expression_statement "uVar9 = (int)puVar3 + 0x1bU & 3;" (assignment_expression "uVar9 = (int)puVar3 + 0x1bU & 3" identifier = (binary_expression "(int)puVar3 + 0x1bU & 3" (binary_expression "(int)puVar3 + 0x1bU" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);" (assignment_expression "puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9)" identifier = (cast_expression "(uint *)(((int)puVar3 + 0x1bU) - uVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar3 + 0x1bU) - uVar9)" ( (binary_expression "((int)puVar3 + 0x1bU) - uVar9" (parenthesized_expression "((int)puVar3 + 0x1bU)" ( (binary_expression "(int)puVar3 + 0x1bU" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - identifier) )))) ;) (expression_statement "*puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;" (assignment_expression "*puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8" (pointer_expression "*puVar8" * identifier) = (binary_expression "*puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8" (binary_expression "*puVar8 & 0xffffffffU >> (uVar9 + 1) * 8" (pointer_expression "*puVar8" * identifier) & (binary_expression "0xffffffffU >> (uVar9 + 1) * 8" number_literal >> (binary_expression "(uVar9 + 1) * 8" (parenthesized_expression "(uVar9 + 1)" ( (binary_expression "uVar9 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "local_34 << (3 - uVar9) * 8" identifier << (binary_expression "(3 - uVar9) * 8" (parenthesized_expression "(3 - uVar9)" ( (binary_expression "3 - uVar9" number_literal - identifier) )) * number_literal)))) ;) (goto_statement "goto LAB_000181c0;" goto statement_identifier ;) })) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" identifier = number_literal) ;) (if_statement "if (0x400 < param_2) {\n        param_2 = 0x400;\n      }" if (parenthesized_expression "(0x400 < param_2)" ( (binary_expression "0x400 < param_2" number_literal < identifier) )) (compound_statement "{\n        param_2 = 0x400;\n      }" { (expression_statement "param_2 = 0x400;" (assignment_expression "param_2 = 0x400" identifier = number_literal) ;) })) (expression_statement "unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);" (assignment_expression "unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" identifier = (cast_expression "(uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" (parenthesized_expression "(*(code *)PTR___read_chk_0002c340)" ( (pointer_expression "*(code *)PTR___read_chk_0002c340" * (cast_expression "(code *)PTR___read_chk_0002c340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,unaff_s3,param_2,0x80c)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "(*(code *)PTR_close_0002c23c)(iVar6);" (call_expression "(*(code *)PTR_close_0002c23c)(iVar6)" (parenthesized_expression "(*(code *)PTR_close_0002c23c)" ( (pointer_expression "*(code *)PTR_close_0002c23c" * (cast_expression "(code *)PTR_close_0002c23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier ))) ;) (if_statement "if ((int)unaff_s4 < 0x400) goto LAB_00018294;" if (parenthesized_expression "((int)unaff_s4 < 0x400)" ( (binary_expression "(int)unaff_s4 < 0x400" (cast_expression "(int)unaff_s4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00018294;" goto statement_identifier ;)) (goto_statement "goto LAB_00018134;" goto statement_identifier ;) })) (expression_statement "unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);" (assignment_expression "unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" identifier = (cast_expression "(uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" identifier (argument_list "(param_1,PTR_DAT_0002c108 + -0x4e34)" ( identifier , (binary_expression "PTR_DAT_0002c108 + -0x4e34" identifier + number_literal) ))))) ;) (expression_statement "unaff_s4 = param_1;" (assignment_expression "unaff_s4 = param_1" identifier = identifier) ;) (if_statement "if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" if (parenthesized_expression "(unaff_s3 == (uint *)0x0)" ( (binary_expression "unaff_s3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined4 *)0x0;\n    }" { (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" else (compound_statement "{\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x81c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "*puVar3 = unaff_s3;" (assignment_expression "*puVar3 = unaff_s3" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar4 = PTR_setvbuf_0002c2b4;" (assignment_expression "puVar4 = PTR_setvbuf_0002c2b4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_0002c104;" (assignment_expression "puVar1 = PTR_0002c104" identifier = identifier) ;) (expression_statement "uVar9 = 0x800;" (assignment_expression "uVar9 = 0x800" identifier = number_literal) ;) (if_statement "if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }" if (parenthesized_expression "(param_2 < 0x801)" ( (binary_expression "param_2 < 0x801" identifier < number_literal) )) (compound_statement "{\n        uVar9 = param_2;\n      }" { (expression_statement "uVar9 = param_2;" (assignment_expression "uVar9 = param_2" identifier = identifier) ;) })) (expression_statement "puVar3[2] = param_1;" (assignment_expression "puVar3[2] = param_1" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[1] = puVar1 + 0x7ee0;" (assignment_expression "puVar3[1] = puVar1 + 0x7ee0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "puVar1 + 0x7ee0" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);" (call_expression "(*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,puVar3 + 3,0,uVar9)" ( identifier , (binary_expression "puVar3 + 3" identifier + number_literal) , number_literal , identifier ))) ;) }))) }))) (while_statement "while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" while (parenthesized_expression "(local_2c != *(int *)puVar2)" ( (binary_expression "local_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0002c310)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c310)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c310)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c310" * (cast_expression "(code *)PTR___stack_chk_fail_0002c310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00018294:\n    puVar8 = unaff_s4;" statement_identifier : (expression_statement "puVar8 = unaff_s4;" (assignment_expression "puVar8 = unaff_s4" identifier = identifier) ;)) (if_statement "if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }" if (parenthesized_expression "((int)unaff_s4 < 0)" ( (binary_expression "(int)unaff_s4 < 0" (cast_expression "(int)unaff_s4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      puVar8 = (uint *)0x0;\n    }" { (expression_statement "puVar8 = (uint *)0x0;" (assignment_expression "puVar8 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "uVar9 = unaff_s5 - (int)puVar8;" (assignment_expression "uVar9 = unaff_s5 - (int)puVar8" identifier = (binary_expression "unaff_s5 - (int)puVar8" identifier - (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "unaff_s4 = &local_34;" (assignment_expression "unaff_s4 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (if_statement "if (8 < uVar9) {\n      uVar9 = 8;\n    }" if (parenthesized_expression "(8 < uVar9)" ( (binary_expression "8 < uVar9" number_literal < identifier) )) (compound_statement "{\n      uVar9 = 8;\n    }" { (expression_statement "uVar9 = 8;" (assignment_expression "uVar9 = 8" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" ( (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" * (cast_expression "(code *)PTR_gettimeofday_0002c31c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s4,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar6 = uVar9 + (int)puVar8;" (assignment_expression "iVar6 = uVar9 + (int)puVar8" identifier = (binary_expression "uVar9 + (int)puVar8" identifier + (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + (int)puVar8" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier , identifier ))) ;) (if_statement "if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar6 < 0x400)" ( (binary_expression "iVar6 < 0x400" identifier < number_literal) )) (compound_statement "{\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }" { (expression_statement "unaff_s5 = unaff_s5 - iVar6;" (assignment_expression "unaff_s5 = unaff_s5 - iVar6" identifier = (binary_expression "unaff_s5 - iVar6" identifier - identifier)) ;) (if_statement "if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }" if (parenthesized_expression "(4 < unaff_s5)" ( (binary_expression "4 < unaff_s5" number_literal < identifier) )) (compound_statement "{\n        unaff_s5 = 4;\n      }" { (expression_statement "unaff_s5 = 4;" (assignment_expression "unaff_s5 = 4" identifier = number_literal) ;) })) (expression_statement "local_34 = (*(code *)PTR_getpid_0002c2f0)();" (assignment_expression "local_34 = (*(code *)PTR_getpid_0002c2f0)()" identifier = (call_expression "(*(code *)PTR_getpid_0002c2f0)()" (parenthesized_expression "(*(code *)PTR_getpid_0002c2f0)" ( (pointer_expression "*(code *)PTR_getpid_0002c2f0" * (cast_expression "(code *)PTR_getpid_0002c2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar7 = unaff_s5 + iVar6;" (assignment_expression "uVar7 = unaff_s5 + iVar6" identifier = (binary_expression "unaff_s5 + iVar6" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + iVar6,unaff_s4,unaff_s5)" ( (binary_expression "(int)unaff_s3 + iVar6" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) (if_statement "if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }" if (parenthesized_expression "(uVar7 < 0x400)" ( (binary_expression "uVar7 < 0x400" identifier < number_literal) )) (compound_statement "{\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }" { (labeled_statement "LAB_000181c0:\n        unaff_s4 = &local_34;" statement_identifier : (expression_statement "unaff_s4 = &local_34;" (assignment_expression "unaff_s4 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;)) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" identifier = number_literal) ;) (expression_statement "uVar9 = 0x400 - uVar7;" (assignment_expression "uVar9 = 0x400 - uVar7" identifier = (binary_expression "0x400 - uVar7" number_literal - identifier)) ;) (if_statement "if (4 < uVar9) {\n          uVar9 = 4;\n        }" if (parenthesized_expression "(4 < uVar9)" ( (binary_expression "4 < uVar9" number_literal < identifier) )) (compound_statement "{\n          uVar9 = 4;\n        }" { (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" identifier = number_literal) ;) })) (expression_statement "local_34 = (*(code *)PTR_getppid_0002c260)();" (assignment_expression "local_34 = (*(code *)PTR_getppid_0002c260)()" identifier = (call_expression "(*(code *)PTR_getppid_0002c260)()" (parenthesized_expression "(*(code *)PTR_getppid_0002c260)" ( (pointer_expression "*(code *)PTR_getppid_0002c260" * (cast_expression "(code *)PTR_getppid_0002c260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = uVar9 + uVar7;" (assignment_expression "uVar5 = uVar9 + uVar7" identifier = (binary_expression "uVar9 + uVar7" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + uVar7,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + uVar7" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) (if_statement "if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }" if (parenthesized_expression "(uVar5 < 0x400)" ( (binary_expression "uVar5 < 0x400" identifier < number_literal) )) (compound_statement "{\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }" { (expression_statement "uVar9 = 0x400 - uVar5;" (assignment_expression "uVar9 = 0x400 - uVar5" identifier = (binary_expression "0x400 - uVar5" number_literal - identifier)) ;) (if_statement "if (4 < uVar9) {\n            uVar9 = 4;\n          }" if (parenthesized_expression "(4 < uVar9)" ( (binary_expression "4 < uVar9" number_literal < identifier) )) (compound_statement "{\n            uVar9 = 4;\n          }" { (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" identifier = number_literal) ;) })) (expression_statement "local_34 = (*(code *)PTR_getuid_0002c30c)();" (assignment_expression "local_34 = (*(code *)PTR_getuid_0002c30c)()" identifier = (call_expression "(*(code *)PTR_getuid_0002c30c)()" (parenthesized_expression "(*(code *)PTR_getuid_0002c30c)" ( (pointer_expression "*(code *)PTR_getuid_0002c30c" * (cast_expression "(code *)PTR_getuid_0002c30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar7 = uVar5 + uVar9;" (assignment_expression "uVar7 = uVar5 + uVar9" identifier = (binary_expression "uVar5 + uVar9" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + uVar5,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + uVar5" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) (if_statement "if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }" if (parenthesized_expression "(uVar7 < 0x400)" ( (binary_expression "uVar7 < 0x400" identifier < number_literal) )) (compound_statement "{\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }" { (expression_statement "unaff_s5 = 0x400 - uVar7;" (assignment_expression "unaff_s5 = 0x400 - uVar7" identifier = (binary_expression "0x400 - uVar7" number_literal - identifier)) ;) (expression_statement "local_34 = (*(code *)PTR_getgid_0002c2b0)();" (assignment_expression "local_34 = (*(code *)PTR_getgid_0002c2b0)()" identifier = (call_expression "(*(code *)PTR_getgid_0002c2b0)()" (parenthesized_expression "(*(code *)PTR_getgid_0002c2b0)" ( (pointer_expression "*(code *)PTR_getgid_0002c2b0" * (cast_expression "(code *)PTR_getgid_0002c2b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" identifier = number_literal) ;) (if_statement "if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }" if (parenthesized_expression "(unaff_s5 < 5)" ( (binary_expression "unaff_s5 < 5" identifier < number_literal) )) (compound_statement "{\n              uVar9 = unaff_s5;\n            }" { (expression_statement "uVar9 = unaff_s5;" (assignment_expression "uVar9 = unaff_s5" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + uVar7,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + uVar7" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) })) })) })) })) (labeled_statement "LAB_00018134:\n    isaac_seed(unaff_s3);" statement_identifier : (expression_statement "isaac_seed(unaff_s3);" (call_expression "isaac_seed(unaff_s3)" identifier (argument_list "(unaff_s3)" ( identifier ))) ;)) })) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "randread_source * randread_new(char *name,size_t bytes_bound)\n\n{\n  undefined1 *puVar1;\n  uint *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  randread_source *prVar6;\n  int iVar7;\n  size_t sVar8;\n  undefined *puVar9;\n  char *pcVar10;\n  char *pcVar11;\n  isaac_state *unaff_s3;\n  timeval *unaff_s4;\n  timeval *ptVar12;\n  uint unaff_s5;\n  uint uVar13;\n  timeval v;\n  \n  puVar4 = PTR___stack_chk_guard_0002c32c;\n  iVar5 = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (bytes_bound == 0) {\n    prVar6 = (randread_source *)xmalloc(0x81c);\n    prVar6->source = (FILE *)0x0;\n    prVar6->handler_arg = (void *)0x0;\n    prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n  }\n  else {\n    if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = (timeval *)name;\n    if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }\n  }\n  while (iVar5 != *(int *)puVar4) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    ptVar12 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      ptVar12 = (timeval *)0x0;\n    }\n    uVar13 = unaff_s5 - (int)ptVar12;\n    unaff_s4 = &v;\n    if (8 < uVar13) {\n      uVar13 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);\n    (*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);\n    if ((int)pcVar10 < 0x400) {\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return prVar6;\n}\n\n" (function_definition "randread_source * randread_new(char *name,size_t bytes_bound)\n\n{\n  undefined1 *puVar1;\n  uint *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  randread_source *prVar6;\n  int iVar7;\n  size_t sVar8;\n  undefined *puVar9;\n  char *pcVar10;\n  char *pcVar11;\n  isaac_state *unaff_s3;\n  timeval *unaff_s4;\n  timeval *ptVar12;\n  uint unaff_s5;\n  uint uVar13;\n  timeval v;\n  \n  puVar4 = PTR___stack_chk_guard_0002c32c;\n  iVar5 = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (bytes_bound == 0) {\n    prVar6 = (randread_source *)xmalloc(0x81c);\n    prVar6->source = (FILE *)0x0;\n    prVar6->handler_arg = (void *)0x0;\n    prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n  }\n  else {\n    if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = (timeval *)name;\n    if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }\n  }\n  while (iVar5 != *(int *)puVar4) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    ptVar12 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      ptVar12 = (timeval *)0x0;\n    }\n    uVar13 = unaff_s5 - (int)ptVar12;\n    unaff_s4 = &v;\n    if (8 < uVar13) {\n      uVar13 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);\n    (*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);\n    if ((int)pcVar10 < 0x400) {\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return prVar6;\n}" type_identifier (pointer_declarator "* randread_new(char *name,size_t bytes_bound)" * (function_declarator "randread_new(char *name,size_t bytes_bound)" identifier (parameter_list "(char *name,size_t bytes_bound)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "size_t bytes_bound" primitive_type identifier) )))) (compound_statement "{\n  undefined1 *puVar1;\n  uint *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  randread_source *prVar6;\n  int iVar7;\n  size_t sVar8;\n  undefined *puVar9;\n  char *pcVar10;\n  char *pcVar11;\n  isaac_state *unaff_s3;\n  timeval *unaff_s4;\n  timeval *ptVar12;\n  uint unaff_s5;\n  uint uVar13;\n  timeval v;\n  \n  puVar4 = PTR___stack_chk_guard_0002c32c;\n  iVar5 = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (bytes_bound == 0) {\n    prVar6 = (randread_source *)xmalloc(0x81c);\n    prVar6->source = (FILE *)0x0;\n    prVar6->handler_arg = (void *)0x0;\n    prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n  }\n  else {\n    if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = (timeval *)name;\n    if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }\n  }\n  while (iVar5 != *(int *)puVar4) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    ptVar12 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      ptVar12 = (timeval *)0x0;\n    }\n    uVar13 = unaff_s5 - (int)ptVar12;\n    unaff_s4 = &v;\n    if (8 < uVar13) {\n      uVar13 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);\n    (*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);\n    if ((int)pcVar10 < 0x400) {\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return prVar6;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "randread_source *prVar6;" type_identifier (pointer_declarator "*prVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "isaac_state *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "timeval *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "timeval *ptVar12;" type_identifier (pointer_declarator "*ptVar12" * identifier) ;) (declaration "uint unaff_s5;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "timeval v;" type_identifier identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0002c32c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0002c32c" identifier = identifier) ;) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_0002c32c;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_0002c32c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c32c" * (cast_expression "(int *)PTR___stack_chk_guard_0002c32c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (bytes_bound == 0) {\n    prVar6 = (randread_source *)xmalloc(0x81c);\n    prVar6->source = (FILE *)0x0;\n    prVar6->handler_arg = (void *)0x0;\n    prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n  }\n  else {\n    if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = (timeval *)name;\n    if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }\n  }" if (parenthesized_expression "(bytes_bound == 0)" ( (binary_expression "bytes_bound == 0" identifier == number_literal) )) (compound_statement "{\n    prVar6 = (randread_source *)xmalloc(0x81c);\n    prVar6->source = (FILE *)0x0;\n    prVar6->handler_arg = (void *)0x0;\n    prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n  }" { (expression_statement "prVar6 = (randread_source *)xmalloc(0x81c);" (assignment_expression "prVar6 = (randread_source *)xmalloc(0x81c)" identifier = (cast_expression "(randread_source *)xmalloc(0x81c)" ( (type_descriptor "randread_source *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "prVar6->source = (FILE *)0x0;" (assignment_expression "prVar6->source = (FILE *)0x0" (field_expression "prVar6->source" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "prVar6->handler_arg = (void *)0x0;" (assignment_expression "prVar6->handler_arg = (void *)0x0" (field_expression "prVar6->handler_arg" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);" (assignment_expression "prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0)" (field_expression "prVar6->handler" identifier -> field_identifier) = (cast_expression "(_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0)" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002c104 + 0x7ee0)" ( (binary_expression "PTR_0002c104 + 0x7ee0" identifier + number_literal) )))) ;) }) (else_clause "else {\n    if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = (timeval *)name;\n    if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }\n  }" else (compound_statement "{\n    if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = (timeval *)name;\n    if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }\n  }" { (if_statement "if (name == (char *)0x0) {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)0x0;\n      unaff_s3 = &(prVar6->buf).isaac.state;\n      prVar6->handler_arg = (void *)0x0;\n      (prVar6->buf).isaac.buffered = 0;\n      puVar3 = PTR_open64_0002c2bc;\n      puVar9 = PTR_DAT_0002c108 + -0x4e44;\n      prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);\n      iVar7 = (*(code *)puVar3)(puVar9,0);\n      if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }\n      unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar7);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" { (expression_statement "prVar6 = (randread_source *)xmalloc(0x81c);" (assignment_expression "prVar6 = (randread_source *)xmalloc(0x81c)" identifier = (cast_expression "(randread_source *)xmalloc(0x81c)" ( (type_descriptor "randread_source *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "prVar6->source = (FILE *)0x0;" (assignment_expression "prVar6->source = (FILE *)0x0" (field_expression "prVar6->source" identifier -> field_identifier) = (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "unaff_s3 = &(prVar6->buf).isaac.state;" (assignment_expression "unaff_s3 = &(prVar6->buf).isaac.state" identifier = (pointer_expression "&(prVar6->buf).isaac.state" & (field_expression "(prVar6->buf).isaac.state" (field_expression "(prVar6->buf).isaac" (parenthesized_expression "(prVar6->buf)" ( (field_expression "prVar6->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (expression_statement "prVar6->handler_arg = (void *)0x0;" (assignment_expression "prVar6->handler_arg = (void *)0x0" (field_expression "prVar6->handler_arg" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(prVar6->buf).isaac.buffered = 0;" (assignment_expression "(prVar6->buf).isaac.buffered = 0" (field_expression "(prVar6->buf).isaac.buffered" (field_expression "(prVar6->buf).isaac" (parenthesized_expression "(prVar6->buf)" ( (field_expression "prVar6->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "puVar3 = PTR_open64_0002c2bc;" (assignment_expression "puVar3 = PTR_open64_0002c2bc" identifier = identifier) ;) (expression_statement "puVar9 = PTR_DAT_0002c108 + -0x4e44;" (assignment_expression "puVar9 = PTR_DAT_0002c108 + -0x4e44" identifier = (binary_expression "PTR_DAT_0002c108 + -0x4e44" identifier + number_literal)) ;) (expression_statement "prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0);" (assignment_expression "prVar6->handler = (_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0)" (field_expression "prVar6->handler" identifier -> field_identifier) = (cast_expression "(_func_void_void_ptr *)(PTR_0002c104 + 0x7ee0)" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002c104 + 0x7ee0)" ( (binary_expression "PTR_0002c104 + 0x7ee0" identifier + number_literal) )))) ;) (expression_statement "iVar7 = (*(code *)puVar3)(puVar9,0);" (assignment_expression "iVar7 = (*(code *)puVar3)(puVar9,0)" identifier = (call_expression "(*(code *)puVar3)(puVar9,0)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar7 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_gettimeofday_0002c31c)(&v,0);\n        puVar3 = PTR_getpid_0002c2f0;\n        pcVar11 = (char *)0xc;\n        unaff_s3->m[0] = v.tv_sec;\n        (prVar6->buf).isaac.state.m[1] = v.tv_usec;\n        v.tv_sec = (*(code *)puVar3)();\n        puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);\n        uVar13 = (uint)puVar1 & 3;\n        puVar2 = (uint *)(puVar1 + -uVar13);\n        *puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;\n        pcVar10 = (prVar6->buf).c + 0xf;\n        uVar13 = (uint)pcVar10 & 3;\n        *(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;\n        goto LAB_000181c0;\n      }" { (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(&v,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(&v,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" ( (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" * (cast_expression "(code *)PTR_gettimeofday_0002c31c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&v,0)" ( (pointer_expression "&v" & identifier) , number_literal ))) ;) (expression_statement "puVar3 = PTR_getpid_0002c2f0;" (assignment_expression "puVar3 = PTR_getpid_0002c2f0" identifier = identifier) ;) (expression_statement "pcVar11 = (char *)0xc;" (assignment_expression "pcVar11 = (char *)0xc" identifier = (cast_expression "(char *)0xc" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "unaff_s3->m[0] = v.tv_sec;" (assignment_expression "unaff_s3->m[0] = v.tv_sec" (subscript_expression "unaff_s3->m[0]" (field_expression "unaff_s3->m" identifier -> field_identifier) [ number_literal ]) = (field_expression "v.tv_sec" identifier . field_identifier)) ;) (expression_statement "(prVar6->buf).isaac.state.m[1] = v.tv_usec;" (assignment_expression "(prVar6->buf).isaac.state.m[1] = v.tv_usec" (subscript_expression "(prVar6->buf).isaac.state.m[1]" (field_expression "(prVar6->buf).isaac.state.m" (field_expression "(prVar6->buf).isaac.state" (field_expression "(prVar6->buf).isaac" (parenthesized_expression "(prVar6->buf)" ( (field_expression "prVar6->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) [ number_literal ]) = (field_expression "v.tv_usec" identifier . field_identifier)) ;) (expression_statement "v.tv_sec = (*(code *)puVar3)();" (assignment_expression "v.tv_sec = (*(code *)puVar3)()" (field_expression "v.tv_sec" identifier . field_identifier) = (call_expression "(*(code *)puVar3)()" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc);" (assignment_expression "puVar1 = (undefined1 *)((int)&prVar6->buf + 0xc)" identifier = (cast_expression "(undefined1 *)((int)&prVar6->buf + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&prVar6->buf + 0xc)" ( (binary_expression "(int)&prVar6->buf + 0xc" (cast_expression "(int)&prVar6->buf" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&prVar6->buf" & (field_expression "prVar6->buf" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "uVar13 = (uint)puVar1 & 3;" (assignment_expression "uVar13 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "puVar2 = (uint *)(puVar1 + -uVar13);" (assignment_expression "puVar2 = (uint *)(puVar1 + -uVar13)" identifier = (cast_expression "(uint *)(puVar1 + -uVar13)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar13)" ( (binary_expression "puVar1 + -uVar13" identifier + (unary_expression "-uVar13" - identifier)) )))) ;) (expression_statement "*puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8;" (assignment_expression "*puVar2 = *puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 & -1 << (4 - uVar13) * 8 | (uint)v.tv_sec >> uVar13 * 8" (binary_expression "*puVar2 & -1 << (4 - uVar13) * 8" (pointer_expression "*puVar2" * identifier) & (binary_expression "-1 << (4 - uVar13) * 8" number_literal << (binary_expression "(4 - uVar13) * 8" (parenthesized_expression "(4 - uVar13)" ( (binary_expression "4 - uVar13" number_literal - identifier) )) * number_literal))) | (binary_expression "(uint)v.tv_sec >> uVar13 * 8" (cast_expression "(uint)v.tv_sec" ( (type_descriptor "uint" type_identifier) ) (field_expression "v.tv_sec" identifier . field_identifier)) >> (binary_expression "uVar13 * 8" identifier * number_literal)))) ;) (expression_statement "pcVar10 = (prVar6->buf).c + 0xf;" (assignment_expression "pcVar10 = (prVar6->buf).c + 0xf" identifier = (binary_expression "(prVar6->buf).c + 0xf" (field_expression "(prVar6->buf).c" (parenthesized_expression "(prVar6->buf)" ( (field_expression "prVar6->buf" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (expression_statement "uVar13 = (uint)pcVar10 & 3;" (assignment_expression "uVar13 = (uint)pcVar10 & 3" identifier = (binary_expression "(uint)pcVar10 & 3" (cast_expression "(uint)pcVar10" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8;" (assignment_expression "*(uint *)(pcVar10 + -uVar13) =\n             *(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8" (pointer_expression "*(uint *)(pcVar10 + -uVar13)" * (cast_expression "(uint *)(pcVar10 + -uVar13)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + -uVar13)" ( (binary_expression "pcVar10 + -uVar13" identifier + (unary_expression "-uVar13" - identifier)) )))) = (binary_expression "*(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8 |\n             v.tv_sec << (3 - uVar13) * 8" (binary_expression "*(uint *)(pcVar10 + -uVar13) & 0xffffffffU >> (uVar13 + 1) * 8" (pointer_expression "*(uint *)(pcVar10 + -uVar13)" * (cast_expression "(uint *)(pcVar10 + -uVar13)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + -uVar13)" ( (binary_expression "pcVar10 + -uVar13" identifier + (unary_expression "-uVar13" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar13 + 1) * 8" number_literal >> (binary_expression "(uVar13 + 1) * 8" (parenthesized_expression "(uVar13 + 1)" ( (binary_expression "uVar13 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "v.tv_sec << (3 - uVar13) * 8" (field_expression "v.tv_sec" identifier . field_identifier) << (binary_expression "(3 - uVar13) * 8" (parenthesized_expression "(3 - uVar13)" ( (binary_expression "3 - uVar13" number_literal - identifier) )) * number_literal)))) ;) (goto_statement "goto LAB_000181c0;" goto statement_identifier ;) })) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" identifier = number_literal) ;) (if_statement "if (0x400 < bytes_bound) {\n        bytes_bound = 0x400;\n      }" if (parenthesized_expression "(0x400 < bytes_bound)" ( (binary_expression "0x400 < bytes_bound" number_literal < identifier) )) (compound_statement "{\n        bytes_bound = 0x400;\n      }" { (expression_statement "bytes_bound = 0x400;" (assignment_expression "bytes_bound = 0x400" identifier = number_literal) ;) })) (expression_statement "unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c);" (assignment_expression "unaff_s4 = (timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c)" identifier = (cast_expression "(timeval *)(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c)" ( (type_descriptor "timeval *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___read_chk_0002c340)(iVar7,unaff_s3,bytes_bound,0x80c)" (parenthesized_expression "(*(code *)PTR___read_chk_0002c340)" ( (pointer_expression "*(code *)PTR___read_chk_0002c340" * (cast_expression "(code *)PTR___read_chk_0002c340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,unaff_s3,bytes_bound,0x80c)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "(*(code *)PTR_close_0002c23c)(iVar7);" (call_expression "(*(code *)PTR_close_0002c23c)(iVar7)" (parenthesized_expression "(*(code *)PTR_close_0002c23c)" ( (pointer_expression "*(code *)PTR_close_0002c23c" * (cast_expression "(code *)PTR_close_0002c23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if ((int)unaff_s4 < 0x400) goto LAB_00018294;" if (parenthesized_expression "((int)unaff_s4 < 0x400)" ( (binary_expression "(int)unaff_s4 < 0x400" (cast_expression "(int)unaff_s4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00018294;" goto statement_identifier ;)) (goto_statement "goto LAB_00018134;" goto statement_identifier ;) })) (expression_statement "unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34);" (assignment_expression "unaff_s3 = (isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34)" identifier = (cast_expression "(isaac_state *)fopen_safer(name,PTR_DAT_0002c108 + -0x4e34)" ( (type_descriptor "isaac_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "fopen_safer(name,PTR_DAT_0002c108 + -0x4e34)" identifier (argument_list "(name,PTR_DAT_0002c108 + -0x4e34)" ( identifier , (binary_expression "PTR_DAT_0002c108 + -0x4e34" identifier + number_literal) ))))) ;) (expression_statement "unaff_s4 = (timeval *)name;" (assignment_expression "unaff_s4 = (timeval *)name" identifier = (cast_expression "(timeval *)name" ( (type_descriptor "timeval *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (unaff_s3 == (isaac_state *)0x0) {\n      prVar6 = (randread_source *)0x0;\n    }\n    else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }" if (parenthesized_expression "(unaff_s3 == (isaac_state *)0x0)" ( (binary_expression "unaff_s3 == (isaac_state *)0x0" identifier == (cast_expression "(isaac_state *)0x0" ( (type_descriptor "isaac_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      prVar6 = (randread_source *)0x0;\n    }" { (expression_statement "prVar6 = (randread_source *)0x0;" (assignment_expression "prVar6 = (randread_source *)0x0" identifier = (cast_expression "(randread_source *)0x0" ( (type_descriptor "randread_source *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }" else (compound_statement "{\n      prVar6 = (randread_source *)xmalloc(0x81c);\n      prVar6->source = (FILE *)unaff_s3;\n      puVar9 = PTR_setvbuf_0002c2b4;\n      puVar3 = PTR_0002c104;\n      sVar8 = 0x800;\n      if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }\n      prVar6->handler_arg = name;\n      prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);\n      (*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);\n    }" { (expression_statement "prVar6 = (randread_source *)xmalloc(0x81c);" (assignment_expression "prVar6 = (randread_source *)xmalloc(0x81c)" identifier = (cast_expression "(randread_source *)xmalloc(0x81c)" ( (type_descriptor "randread_source *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "prVar6->source = (FILE *)unaff_s3;" (assignment_expression "prVar6->source = (FILE *)unaff_s3" (field_expression "prVar6->source" identifier -> field_identifier) = (cast_expression "(FILE *)unaff_s3" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar9 = PTR_setvbuf_0002c2b4;" (assignment_expression "puVar9 = PTR_setvbuf_0002c2b4" identifier = identifier) ;) (expression_statement "puVar3 = PTR_0002c104;" (assignment_expression "puVar3 = PTR_0002c104" identifier = identifier) ;) (expression_statement "sVar8 = 0x800;" (assignment_expression "sVar8 = 0x800" identifier = number_literal) ;) (if_statement "if (bytes_bound < 0x801) {\n        sVar8 = bytes_bound;\n      }" if (parenthesized_expression "(bytes_bound < 0x801)" ( (binary_expression "bytes_bound < 0x801" identifier < number_literal) )) (compound_statement "{\n        sVar8 = bytes_bound;\n      }" { (expression_statement "sVar8 = bytes_bound;" (assignment_expression "sVar8 = bytes_bound" identifier = identifier) ;) })) (expression_statement "prVar6->handler_arg = name;" (assignment_expression "prVar6->handler_arg = name" (field_expression "prVar6->handler_arg" identifier -> field_identifier) = identifier) ;) (expression_statement "prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0);" (assignment_expression "prVar6->handler = (_func_void_void_ptr *)(puVar3 + 0x7ee0)" (field_expression "prVar6->handler" identifier -> field_identifier) = (cast_expression "(_func_void_void_ptr *)(puVar3 + 0x7ee0)" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x7ee0)" ( (binary_expression "puVar3 + 0x7ee0" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8);" (call_expression "(*(code *)puVar9)(unaff_s3,&prVar6->buf,0,sVar8)" (parenthesized_expression "(*(code *)puVar9)" ( (pointer_expression "*(code *)puVar9" * (cast_expression "(code *)puVar9" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,&prVar6->buf,0,sVar8)" ( identifier , (pointer_expression "&prVar6->buf" & (field_expression "prVar6->buf" identifier -> field_identifier)) , number_literal , identifier ))) ;) }))) }))) (while_statement "while (iVar5 != *(int *)puVar4) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    ptVar12 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      ptVar12 = (timeval *)0x0;\n    }\n    uVar13 = unaff_s5 - (int)ptVar12;\n    unaff_s4 = &v;\n    if (8 < uVar13) {\n      uVar13 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);\n    (*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);\n    if ((int)pcVar10 < 0x400) {\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" while (parenthesized_expression "(iVar5 != *(int *)puVar4)" ( (binary_expression "iVar5 != *(int *)puVar4" identifier != (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    ptVar12 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      ptVar12 = (timeval *)0x0;\n    }\n    uVar13 = unaff_s5 - (int)ptVar12;\n    unaff_s4 = &v;\n    if (8 < uVar13) {\n      uVar13 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);\n    (*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);\n    if ((int)pcVar10 < 0x400) {\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0002c310)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c310)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c310)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c310" * (cast_expression "(code *)PTR___stack_chk_fail_0002c310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00018294:\n    ptVar12 = unaff_s4;" statement_identifier : (expression_statement "ptVar12 = unaff_s4;" (assignment_expression "ptVar12 = unaff_s4" identifier = identifier) ;)) (if_statement "if ((int)unaff_s4 < 0) {\n      ptVar12 = (timeval *)0x0;\n    }" if (parenthesized_expression "((int)unaff_s4 < 0)" ( (binary_expression "(int)unaff_s4 < 0" (cast_expression "(int)unaff_s4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      ptVar12 = (timeval *)0x0;\n    }" { (expression_statement "ptVar12 = (timeval *)0x0;" (assignment_expression "ptVar12 = (timeval *)0x0" identifier = (cast_expression "(timeval *)0x0" ( (type_descriptor "timeval *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "uVar13 = unaff_s5 - (int)ptVar12;" (assignment_expression "uVar13 = unaff_s5 - (int)ptVar12" identifier = (binary_expression "unaff_s5 - (int)ptVar12" identifier - (cast_expression "(int)ptVar12" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "unaff_s4 = &v;" (assignment_expression "unaff_s4 = &v" identifier = (pointer_expression "&v" & identifier)) ;) (if_statement "if (8 < uVar13) {\n      uVar13 = 8;\n    }" if (parenthesized_expression "(8 < uVar13)" ( (binary_expression "8 < uVar13" number_literal < identifier) )) (compound_statement "{\n      uVar13 = 8;\n    }" { (expression_statement "uVar13 = 8;" (assignment_expression "uVar13 = 8" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" ( (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" * (cast_expression "(code *)PTR_gettimeofday_0002c31c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s4,0)" ( identifier , number_literal ))) ;) (expression_statement "pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13);" (assignment_expression "pcVar10 = (char *)((int)&ptVar12->tv_sec + uVar13)" identifier = (cast_expression "(char *)((int)&ptVar12->tv_sec + uVar13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ptVar12->tv_sec + uVar13)" ( (binary_expression "(int)&ptVar12->tv_sec + uVar13" (cast_expression "(int)&ptVar12->tv_sec" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ptVar12->tv_sec" & (field_expression "ptVar12->tv_sec" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13);" (call_expression "(*(code *)PTR_memcpy_0002c330)\n              ((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m),unaff_s4,uVar13)" ( (cast_expression "(char *)((int)&ptVar12->tv_sec + (int)unaff_s3->m)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ptVar12->tv_sec + (int)unaff_s3->m)" ( (binary_expression "(int)&ptVar12->tv_sec + (int)unaff_s3->m" (cast_expression "(int)&ptVar12->tv_sec" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ptVar12->tv_sec" & (field_expression "ptVar12->tv_sec" identifier -> field_identifier))) + (cast_expression "(int)unaff_s3->m" ( (type_descriptor "int" primitive_type) ) (field_expression "unaff_s3->m" identifier -> field_identifier))) ))) , identifier , identifier ))) ;) (if_statement "if ((int)pcVar10 < 0x400) {\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }" if (parenthesized_expression "((int)pcVar10 < 0x400)" ( (binary_expression "(int)pcVar10 < 0x400" (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      unaff_s5 = unaff_s5 - (int)pcVar10;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();\n      pcVar11 = pcVar10 + unaff_s5;\n      (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);\n      if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }\n    }" { (expression_statement "unaff_s5 = unaff_s5 - (int)pcVar10;" (assignment_expression "unaff_s5 = unaff_s5 - (int)pcVar10" identifier = (binary_expression "unaff_s5 - (int)pcVar10" identifier - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }" if (parenthesized_expression "(4 < unaff_s5)" ( (binary_expression "4 < unaff_s5" number_literal < identifier) )) (compound_statement "{\n        unaff_s5 = 4;\n      }" { (expression_statement "unaff_s5 = 4;" (assignment_expression "unaff_s5 = 4" identifier = number_literal) ;) })) (expression_statement "v.tv_sec = (*(code *)PTR_getpid_0002c2f0)();" (assignment_expression "v.tv_sec = (*(code *)PTR_getpid_0002c2f0)()" (field_expression "v.tv_sec" identifier . field_identifier) = (call_expression "(*(code *)PTR_getpid_0002c2f0)()" (parenthesized_expression "(*(code *)PTR_getpid_0002c2f0)" ( (pointer_expression "*(code *)PTR_getpid_0002c2f0" * (cast_expression "(code *)PTR_getpid_0002c2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar11 = pcVar10 + unaff_s5;" (assignment_expression "pcVar11 = pcVar10 + unaff_s5" identifier = (binary_expression "pcVar10 + unaff_s5" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5);" (call_expression "(*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10 + (int)unaff_s3->m,unaff_s4,unaff_s5)" ( (binary_expression "pcVar10 + (int)unaff_s3->m" identifier + (cast_expression "(int)unaff_s3->m" ( (type_descriptor "int" primitive_type) ) (field_expression "unaff_s3->m" identifier -> field_identifier))) , identifier , identifier ))) ;) (if_statement "if (pcVar11 < (char *)0x400) {\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }" if (parenthesized_expression "(pcVar11 < (char *)0x400)" ( (binary_expression "pcVar11 < (char *)0x400" identifier < (cast_expression "(char *)0x400" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000181c0:\n        unaff_s4 = &v;\n        unaff_s5 = 0x400;\n        uVar13 = 0x400 - (int)pcVar11;\n        if (4 < uVar13) {\n          uVar13 = 4;\n        }\n        v.tv_sec = (*(code *)PTR_getppid_0002c260)();\n        pcVar10 = pcVar11 + uVar13;\n        (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n        if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }\n      }" { (labeled_statement "LAB_000181c0:\n        unaff_s4 = &v;" statement_identifier : (expression_statement "unaff_s4 = &v;" (assignment_expression "unaff_s4 = &v" identifier = (pointer_expression "&v" & identifier)) ;)) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" identifier = number_literal) ;) (expression_statement "uVar13 = 0x400 - (int)pcVar11;" (assignment_expression "uVar13 = 0x400 - (int)pcVar11" identifier = (binary_expression "0x400 - (int)pcVar11" number_literal - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (4 < uVar13) {\n          uVar13 = 4;\n        }" if (parenthesized_expression "(4 < uVar13)" ( (binary_expression "4 < uVar13" number_literal < identifier) )) (compound_statement "{\n          uVar13 = 4;\n        }" { (expression_statement "uVar13 = 4;" (assignment_expression "uVar13 = 4" identifier = number_literal) ;) })) (expression_statement "v.tv_sec = (*(code *)PTR_getppid_0002c260)();" (assignment_expression "v.tv_sec = (*(code *)PTR_getppid_0002c260)()" (field_expression "v.tv_sec" identifier . field_identifier) = (call_expression "(*(code *)PTR_getppid_0002c260)()" (parenthesized_expression "(*(code *)PTR_getppid_0002c260)" ( (pointer_expression "*(code *)PTR_getppid_0002c260" * (cast_expression "(code *)PTR_getppid_0002c260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar10 = pcVar11 + uVar13;" (assignment_expression "pcVar10 = pcVar11 + uVar13" identifier = (binary_expression "pcVar11 + uVar13" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);" (call_expression "(*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13)" ( (binary_expression "pcVar11 + (int)unaff_s3->m" identifier + (cast_expression "(int)unaff_s3->m" ( (type_descriptor "int" primitive_type) ) (field_expression "unaff_s3->m" identifier -> field_identifier))) , identifier , identifier ))) ;) (if_statement "if (pcVar10 < (char *)0x400) {\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }" if (parenthesized_expression "(pcVar10 < (char *)0x400)" ( (binary_expression "pcVar10 < (char *)0x400" identifier < (cast_expression "(char *)0x400" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar13 = 0x400 - (int)pcVar10;\n          if (4 < uVar13) {\n            uVar13 = 4;\n          }\n          v.tv_sec = (*(code *)PTR_getuid_0002c30c)();\n          pcVar11 = pcVar10 + uVar13;\n          (*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);\n          if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }\n        }" { (expression_statement "uVar13 = 0x400 - (int)pcVar10;" (assignment_expression "uVar13 = 0x400 - (int)pcVar10" identifier = (binary_expression "0x400 - (int)pcVar10" number_literal - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (4 < uVar13) {\n            uVar13 = 4;\n          }" if (parenthesized_expression "(4 < uVar13)" ( (binary_expression "4 < uVar13" number_literal < identifier) )) (compound_statement "{\n            uVar13 = 4;\n          }" { (expression_statement "uVar13 = 4;" (assignment_expression "uVar13 = 4" identifier = number_literal) ;) })) (expression_statement "v.tv_sec = (*(code *)PTR_getuid_0002c30c)();" (assignment_expression "v.tv_sec = (*(code *)PTR_getuid_0002c30c)()" (field_expression "v.tv_sec" identifier . field_identifier) = (call_expression "(*(code *)PTR_getuid_0002c30c)()" (parenthesized_expression "(*(code *)PTR_getuid_0002c30c)" ( (pointer_expression "*(code *)PTR_getuid_0002c30c" * (cast_expression "(code *)PTR_getuid_0002c30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar11 = pcVar10 + uVar13;" (assignment_expression "pcVar11 = pcVar10 + uVar13" identifier = (binary_expression "pcVar10 + uVar13" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13);" (call_expression "(*(code *)PTR_memcpy_0002c330)(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10 + (int)unaff_s3->m,unaff_s4,uVar13)" ( (binary_expression "pcVar10 + (int)unaff_s3->m" identifier + (cast_expression "(int)unaff_s3->m" ( (type_descriptor "int" primitive_type) ) (field_expression "unaff_s3->m" identifier -> field_identifier))) , identifier , identifier ))) ;) (if_statement "if (pcVar11 < (char *)0x400) {\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }" if (parenthesized_expression "(pcVar11 < (char *)0x400)" ( (binary_expression "pcVar11 < (char *)0x400" identifier < (cast_expression "(char *)0x400" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            unaff_s5 = 0x400 - (int)pcVar11;\n            v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();\n            uVar13 = 4;\n            if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);\n          }" { (expression_statement "unaff_s5 = 0x400 - (int)pcVar11;" (assignment_expression "unaff_s5 = 0x400 - (int)pcVar11" identifier = (binary_expression "0x400 - (int)pcVar11" number_literal - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "v.tv_sec = (*(code *)PTR_getgid_0002c2b0)();" (assignment_expression "v.tv_sec = (*(code *)PTR_getgid_0002c2b0)()" (field_expression "v.tv_sec" identifier . field_identifier) = (call_expression "(*(code *)PTR_getgid_0002c2b0)()" (parenthesized_expression "(*(code *)PTR_getgid_0002c2b0)" ( (pointer_expression "*(code *)PTR_getgid_0002c2b0" * (cast_expression "(code *)PTR_getgid_0002c2b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar13 = 4;" (assignment_expression "uVar13 = 4" identifier = number_literal) ;) (if_statement "if (unaff_s5 < 5) {\n              uVar13 = unaff_s5;\n            }" if (parenthesized_expression "(unaff_s5 < 5)" ( (binary_expression "unaff_s5 < 5" identifier < number_literal) )) (compound_statement "{\n              uVar13 = unaff_s5;\n            }" { (expression_statement "uVar13 = unaff_s5;" (assignment_expression "uVar13 = unaff_s5" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13);" (call_expression "(*(code *)PTR_memcpy_0002c330)(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar11 + (int)unaff_s3->m,unaff_s4,uVar13)" ( (binary_expression "pcVar11 + (int)unaff_s3->m" identifier + (cast_expression "(int)unaff_s3->m" ( (type_descriptor "int" primitive_type) ) (field_expression "unaff_s3->m" identifier -> field_identifier))) , identifier , identifier ))) ;) })) })) })) })) (labeled_statement "LAB_00018134:\n    isaac_seed(unaff_s3);" statement_identifier : (expression_statement "isaac_seed(unaff_s3);" (call_expression "isaac_seed(unaff_s3)" identifier (argument_list "(unaff_s3)" ( identifier ))) ;)) })) (return_statement "return prVar6;" return identifier ;) })))
(translation_unit "undefined4 * randread_new(uint *param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}\n\n" (function_definition "undefined4 * randread_new(uint *param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* randread_new(uint *param_1,uint param_2)" * (function_declarator "randread_new(uint *param_1,uint param_2)" identifier (parameter_list "(uint *param_1,uint param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "uint *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint unaff_s5;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0002c32c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0002c32c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0002c32c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0002c32c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c32c" * (cast_expression "(int *)PTR___stack_chk_guard_0002c32c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x81c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = PTR_0002c104 + 0x7ee0;" (assignment_expression "puVar3[1] = PTR_0002c104 + 0x7ee0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "PTR_0002c104 + 0x7ee0" identifier + number_literal)) ;) }) (else_clause "else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" else (compound_statement "{\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" { (if_statement "if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x81c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "unaff_s3 = puVar3 + 4;" (assignment_expression "unaff_s3 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_open64_0002c2bc;" (assignment_expression "puVar1 = PTR_open64_0002c2bc" identifier = identifier) ;) (expression_statement "puVar4 = PTR_DAT_0002c108 + -0x4e44;" (assignment_expression "puVar4 = PTR_DAT_0002c108 + -0x4e44" identifier = (binary_expression "PTR_DAT_0002c108 + -0x4e44" identifier + number_literal)) ;) (expression_statement "puVar3[1] = PTR_0002c104 + 0x7ee0;" (assignment_expression "puVar3[1] = PTR_0002c104 + 0x7ee0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "PTR_0002c104 + 0x7ee0" identifier + number_literal)) ;) (expression_statement "iVar6 = (*(code *)puVar1)(puVar4,0);" (assignment_expression "iVar6 = (*(code *)puVar1)(puVar4,0)" identifier = (call_expression "(*(code *)puVar1)(puVar4,0)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }" { (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(&local_34,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" ( (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" * (cast_expression "(code *)PTR_gettimeofday_0002c31c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_34,0)" ( (pointer_expression "&local_34" & identifier) , number_literal ))) ;) (expression_statement "puVar1 = PTR_getpid_0002c2f0;" (assignment_expression "puVar1 = PTR_getpid_0002c2f0" identifier = identifier) ;) (expression_statement "uVar7 = 0xc;" (assignment_expression "uVar7 = 0xc" identifier = number_literal) ;) (expression_statement "*unaff_s3 = local_34;" (assignment_expression "*unaff_s3 = local_34" (pointer_expression "*unaff_s3" * identifier) = identifier) ;) (expression_statement "puVar3[5] = local_30;" (assignment_expression "puVar3[5] = local_30" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_34 = (*(code *)puVar1)();" (assignment_expression "local_34 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar9 = (uint)(puVar3 + 6) & 3;" (assignment_expression "uVar9 = (uint)(puVar3 + 6) & 3" identifier = (binary_expression "(uint)(puVar3 + 6) & 3" (call_expression "(uint)(puVar3 + 6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 6)" ( (binary_expression "puVar3 + 6" identifier + number_literal) ))) & number_literal)) ;) (expression_statement "puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);" (assignment_expression "puVar8 = (uint *)((int)(puVar3 + 6) - uVar9)" identifier = (cast_expression "(uint *)((int)(puVar3 + 6) - uVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(puVar3 + 6) - uVar9)" ( (binary_expression "(int)(puVar3 + 6) - uVar9" (cast_expression "(int)(puVar3 + 6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar3 + 6)" ( (binary_expression "puVar3 + 6" identifier + number_literal) ))) - identifier) )))) ;) (expression_statement "*puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;" (assignment_expression "*puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8" (pointer_expression "*puVar8" * identifier) = (binary_expression "*puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8" (binary_expression "*puVar8 & -1 << (4 - uVar9) * 8" (pointer_expression "*puVar8" * identifier) & (binary_expression "-1 << (4 - uVar9) * 8" number_literal << (binary_expression "(4 - uVar9) * 8" (parenthesized_expression "(4 - uVar9)" ( (binary_expression "4 - uVar9" number_literal - identifier) )) * number_literal))) | (binary_expression "local_34 >> uVar9 * 8" identifier >> (binary_expression "uVar9 * 8" identifier * number_literal)))) ;) (expression_statement "uVar9 = (int)puVar3 + 0x1bU & 3;" (assignment_expression "uVar9 = (int)puVar3 + 0x1bU & 3" identifier = (binary_expression "(int)puVar3 + 0x1bU & 3" (binary_expression "(int)puVar3 + 0x1bU" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);" (assignment_expression "puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9)" identifier = (cast_expression "(uint *)(((int)puVar3 + 0x1bU) - uVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar3 + 0x1bU) - uVar9)" ( (binary_expression "((int)puVar3 + 0x1bU) - uVar9" (parenthesized_expression "((int)puVar3 + 0x1bU)" ( (binary_expression "(int)puVar3 + 0x1bU" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - identifier) )))) ;) (expression_statement "*puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;" (assignment_expression "*puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8" (pointer_expression "*puVar8" * identifier) = (binary_expression "*puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8" (binary_expression "*puVar8 & 0xffffffffU >> (uVar9 + 1) * 8" (pointer_expression "*puVar8" * identifier) & (binary_expression "0xffffffffU >> (uVar9 + 1) * 8" number_literal >> (binary_expression "(uVar9 + 1) * 8" (parenthesized_expression "(uVar9 + 1)" ( (binary_expression "uVar9 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "local_34 << (3 - uVar9) * 8" identifier << (binary_expression "(3 - uVar9) * 8" (parenthesized_expression "(3 - uVar9)" ( (binary_expression "3 - uVar9" number_literal - identifier) )) * number_literal)))) ;) (goto_statement "goto LAB_000181c0;" goto statement_identifier ;) })) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" identifier = number_literal) ;) (if_statement "if (0x400 < param_2) {\n        param_2 = 0x400;\n      }" if (parenthesized_expression "(0x400 < param_2)" ( (binary_expression "0x400 < param_2" number_literal < identifier) )) (compound_statement "{\n        param_2 = 0x400;\n      }" { (expression_statement "param_2 = 0x400;" (assignment_expression "param_2 = 0x400" identifier = number_literal) ;) })) (expression_statement "unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);" (assignment_expression "unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" identifier = (cast_expression "(uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" (parenthesized_expression "(*(code *)PTR___read_chk_0002c340)" ( (pointer_expression "*(code *)PTR___read_chk_0002c340" * (cast_expression "(code *)PTR___read_chk_0002c340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,unaff_s3,param_2,0x80c)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "(*(code *)PTR_close_0002c23c)(iVar6);" (call_expression "(*(code *)PTR_close_0002c23c)(iVar6)" (parenthesized_expression "(*(code *)PTR_close_0002c23c)" ( (pointer_expression "*(code *)PTR_close_0002c23c" * (cast_expression "(code *)PTR_close_0002c23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier ))) ;) (if_statement "if ((int)unaff_s4 < 0x400) goto LAB_00018294;" if (parenthesized_expression "((int)unaff_s4 < 0x400)" ( (binary_expression "(int)unaff_s4 < 0x400" (cast_expression "(int)unaff_s4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00018294;" goto statement_identifier ;)) (goto_statement "goto LAB_00018134;" goto statement_identifier ;) })) (expression_statement "unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);" (assignment_expression "unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" identifier = (cast_expression "(uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" identifier (argument_list "(param_1,PTR_DAT_0002c108 + -0x4e34)" ( identifier , (binary_expression "PTR_DAT_0002c108 + -0x4e34" identifier + number_literal) ))))) ;) (expression_statement "unaff_s4 = param_1;" (assignment_expression "unaff_s4 = param_1" identifier = identifier) ;) (if_statement "if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" if (parenthesized_expression "(unaff_s3 == (uint *)0x0)" ( (binary_expression "unaff_s3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined4 *)0x0;\n    }" { (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" else (compound_statement "{\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x81c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x81c)" identifier (argument_list "(0x81c)" ( number_literal ))))) ;) (expression_statement "*puVar3 = unaff_s3;" (assignment_expression "*puVar3 = unaff_s3" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar4 = PTR_setvbuf_0002c2b4;" (assignment_expression "puVar4 = PTR_setvbuf_0002c2b4" identifier = identifier) ;) (expression_statement "puVar1 = PTR_0002c104;" (assignment_expression "puVar1 = PTR_0002c104" identifier = identifier) ;) (expression_statement "uVar9 = 0x800;" (assignment_expression "uVar9 = 0x800" identifier = number_literal) ;) (if_statement "if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }" if (parenthesized_expression "(param_2 < 0x801)" ( (binary_expression "param_2 < 0x801" identifier < number_literal) )) (compound_statement "{\n        uVar9 = param_2;\n      }" { (expression_statement "uVar9 = param_2;" (assignment_expression "uVar9 = param_2" identifier = identifier) ;) })) (expression_statement "puVar3[2] = param_1;" (assignment_expression "puVar3[2] = param_1" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[1] = puVar1 + 0x7ee0;" (assignment_expression "puVar3[1] = puVar1 + 0x7ee0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "puVar1 + 0x7ee0" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);" (call_expression "(*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,puVar3 + 3,0,uVar9)" ( identifier , (binary_expression "puVar3 + 3" identifier + number_literal) , number_literal , identifier ))) ;) }))) }))) (while_statement "while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" while (parenthesized_expression "(local_2c != *(int *)puVar2)" ( (binary_expression "local_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0002c310)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c310)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c310)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c310" * (cast_expression "(code *)PTR___stack_chk_fail_0002c310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00018294:\n    puVar8 = unaff_s4;" statement_identifier : (expression_statement "puVar8 = unaff_s4;" (assignment_expression "puVar8 = unaff_s4" identifier = identifier) ;)) (if_statement "if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }" if (parenthesized_expression "((int)unaff_s4 < 0)" ( (binary_expression "(int)unaff_s4 < 0" (cast_expression "(int)unaff_s4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      puVar8 = (uint *)0x0;\n    }" { (expression_statement "puVar8 = (uint *)0x0;" (assignment_expression "puVar8 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "uVar9 = unaff_s5 - (int)puVar8;" (assignment_expression "uVar9 = unaff_s5 - (int)puVar8" identifier = (binary_expression "unaff_s5 - (int)puVar8" identifier - (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "unaff_s4 = &local_34;" (assignment_expression "unaff_s4 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (if_statement "if (8 < uVar9) {\n      uVar9 = 8;\n    }" if (parenthesized_expression "(8 < uVar9)" ( (binary_expression "8 < uVar9" number_literal < identifier) )) (compound_statement "{\n      uVar9 = 8;\n    }" { (expression_statement "uVar9 = 8;" (assignment_expression "uVar9 = 8" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" ( (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" * (cast_expression "(code *)PTR_gettimeofday_0002c31c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s4,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar6 = uVar9 + (int)puVar8;" (assignment_expression "iVar6 = uVar9 + (int)puVar8" identifier = (binary_expression "uVar9 + (int)puVar8" identifier + (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + (int)puVar8" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier , identifier ))) ;) (if_statement "if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar6 < 0x400)" ( (binary_expression "iVar6 < 0x400" identifier < number_literal) )) (compound_statement "{\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }" { (expression_statement "unaff_s5 = unaff_s5 - iVar6;" (assignment_expression "unaff_s5 = unaff_s5 - iVar6" identifier = (binary_expression "unaff_s5 - iVar6" identifier - identifier)) ;) (if_statement "if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }" if (parenthesized_expression "(4 < unaff_s5)" ( (binary_expression "4 < unaff_s5" number_literal < identifier) )) (compound_statement "{\n        unaff_s5 = 4;\n      }" { (expression_statement "unaff_s5 = 4;" (assignment_expression "unaff_s5 = 4" identifier = number_literal) ;) })) (expression_statement "local_34 = (*(code *)PTR_getpid_0002c2f0)();" (assignment_expression "local_34 = (*(code *)PTR_getpid_0002c2f0)()" identifier = (call_expression "(*(code *)PTR_getpid_0002c2f0)()" (parenthesized_expression "(*(code *)PTR_getpid_0002c2f0)" ( (pointer_expression "*(code *)PTR_getpid_0002c2f0" * (cast_expression "(code *)PTR_getpid_0002c2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar7 = unaff_s5 + iVar6;" (assignment_expression "uVar7 = unaff_s5 + iVar6" identifier = (binary_expression "unaff_s5 + iVar6" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + iVar6,unaff_s4,unaff_s5)" ( (binary_expression "(int)unaff_s3 + iVar6" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) (if_statement "if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }" if (parenthesized_expression "(uVar7 < 0x400)" ( (binary_expression "uVar7 < 0x400" identifier < number_literal) )) (compound_statement "{\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }" { (labeled_statement "LAB_000181c0:\n        unaff_s4 = &local_34;" statement_identifier : (expression_statement "unaff_s4 = &local_34;" (assignment_expression "unaff_s4 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;)) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" identifier = number_literal) ;) (expression_statement "uVar9 = 0x400 - uVar7;" (assignment_expression "uVar9 = 0x400 - uVar7" identifier = (binary_expression "0x400 - uVar7" number_literal - identifier)) ;) (if_statement "if (4 < uVar9) {\n          uVar9 = 4;\n        }" if (parenthesized_expression "(4 < uVar9)" ( (binary_expression "4 < uVar9" number_literal < identifier) )) (compound_statement "{\n          uVar9 = 4;\n        }" { (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" identifier = number_literal) ;) })) (expression_statement "local_34 = (*(code *)PTR_getppid_0002c260)();" (assignment_expression "local_34 = (*(code *)PTR_getppid_0002c260)()" identifier = (call_expression "(*(code *)PTR_getppid_0002c260)()" (parenthesized_expression "(*(code *)PTR_getppid_0002c260)" ( (pointer_expression "*(code *)PTR_getppid_0002c260" * (cast_expression "(code *)PTR_getppid_0002c260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = uVar9 + uVar7;" (assignment_expression "uVar5 = uVar9 + uVar7" identifier = (binary_expression "uVar9 + uVar7" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + uVar7,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + uVar7" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) (if_statement "if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }" if (parenthesized_expression "(uVar5 < 0x400)" ( (binary_expression "uVar5 < 0x400" identifier < number_literal) )) (compound_statement "{\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }" { (expression_statement "uVar9 = 0x400 - uVar5;" (assignment_expression "uVar9 = 0x400 - uVar5" identifier = (binary_expression "0x400 - uVar5" number_literal - identifier)) ;) (if_statement "if (4 < uVar9) {\n            uVar9 = 4;\n          }" if (parenthesized_expression "(4 < uVar9)" ( (binary_expression "4 < uVar9" number_literal < identifier) )) (compound_statement "{\n            uVar9 = 4;\n          }" { (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" identifier = number_literal) ;) })) (expression_statement "local_34 = (*(code *)PTR_getuid_0002c30c)();" (assignment_expression "local_34 = (*(code *)PTR_getuid_0002c30c)()" identifier = (call_expression "(*(code *)PTR_getuid_0002c30c)()" (parenthesized_expression "(*(code *)PTR_getuid_0002c30c)" ( (pointer_expression "*(code *)PTR_getuid_0002c30c" * (cast_expression "(code *)PTR_getuid_0002c30c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar7 = uVar5 + uVar9;" (assignment_expression "uVar7 = uVar5 + uVar9" identifier = (binary_expression "uVar5 + uVar9" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + uVar5,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + uVar5" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) (if_statement "if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }" if (parenthesized_expression "(uVar7 < 0x400)" ( (binary_expression "uVar7 < 0x400" identifier < number_literal) )) (compound_statement "{\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }" { (expression_statement "unaff_s5 = 0x400 - uVar7;" (assignment_expression "unaff_s5 = 0x400 - uVar7" identifier = (binary_expression "0x400 - uVar7" number_literal - identifier)) ;) (expression_statement "local_34 = (*(code *)PTR_getgid_0002c2b0)();" (assignment_expression "local_34 = (*(code *)PTR_getgid_0002c2b0)()" identifier = (call_expression "(*(code *)PTR_getgid_0002c2b0)()" (parenthesized_expression "(*(code *)PTR_getgid_0002c2b0)" ( (pointer_expression "*(code *)PTR_getgid_0002c2b0" * (cast_expression "(code *)PTR_getgid_0002c2b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" identifier = number_literal) ;) (if_statement "if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }" if (parenthesized_expression "(unaff_s5 < 5)" ( (binary_expression "unaff_s5 < 5" identifier < number_literal) )) (compound_statement "{\n              uVar9 = unaff_s5;\n            }" { (expression_statement "uVar9 = unaff_s5;" (assignment_expression "uVar9 = unaff_s5" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" ( (pointer_expression "*(code *)PTR_memcpy_0002c330" * (cast_expression "(code *)PTR_memcpy_0002c330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)unaff_s3 + uVar7,unaff_s4,uVar9)" ( (binary_expression "(int)unaff_s3 + uVar7" (cast_expression "(int)unaff_s3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , identifier , identifier ))) ;) })) })) })) })) (labeled_statement "LAB_00018134:\n    isaac_seed(unaff_s3);" statement_identifier : (expression_statement "isaac_seed(unaff_s3);" (call_expression "isaac_seed(unaff_s3)" identifier (argument_list "(unaff_s3)" ( identifier ))) ;)) })) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) - IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & (binary_expression LIT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT))) | (binary_expression IDENT >> (binary_expression IDENT * LIT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )) - IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & (binary_expression LIT >> (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT))) | (binary_expression IDENT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT)))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , LIT ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , IDENT ))) ;) }))) }))) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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 ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) , IDENT , IDENT ))) ;) })) })) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * randread_new(uint *param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}" (type_identifier "undefined4") (pointer_declarator "* randread_new(uint *param_1,uint param_2)" (* "*") (function_declarator "randread_new(uint *param_1,uint param_2)" (identifier "randread_new") (parameter_list "(uint *param_1,uint param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *unaff_s3;\n  uint *unaff_s4;\n  uint *puVar8;\n  uint unaff_s5;\n  uint uVar9;\n  uint local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_0002c32c;\n  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;\n  if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }\n  return puVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint *unaff_s3;" (type_identifier "uint") (pointer_declarator "*unaff_s3" (* "*") (identifier "unaff_s3")) (; ";")) (declaration "uint *unaff_s4;" (type_identifier "uint") (pointer_declarator "*unaff_s4" (* "*") (identifier "unaff_s4")) (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint unaff_s5;" (type_identifier "uint") (identifier "unaff_s5") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_0002c32c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0002c32c" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_0002c32c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0002c32c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0002c32c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0002c32c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0002c32c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0002c32c")))) (; ";")) (if_statement "if (param_2 == 0) {\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }\n  else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x81c);\n    *puVar3 = 0;\n    puVar3[2] = 0;\n    puVar3[1] = PTR_0002c104 + 0x7ee0;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(0x81c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x81c)" (identifier "xmalloc") (argument_list "(0x81c)" (( "(") (number_literal "0x81c") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = PTR_0002c104 + 0x7ee0;" (assignment_expression "puVar3[1] = PTR_0002c104 + 0x7ee0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_0002c104 + 0x7ee0" (identifier "PTR_0002c104") (+ "+") (number_literal "0x7ee0"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" (else "else") (compound_statement "{\n    if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }\n    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);\n    unaff_s4 = param_1;\n    if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }\n  }" ({ "{") (if_statement "if (param_1 == (uint *)0x0) {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" (if "if") (parenthesized_expression "(param_1 == (uint *)0x0)" (( "(") (binary_expression "param_1 == (uint *)0x0" (identifier "param_1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = 0;\n      unaff_s3 = puVar3 + 4;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      puVar1 = PTR_open64_0002c2bc;\n      puVar4 = PTR_DAT_0002c108 + -0x4e44;\n      puVar3[1] = PTR_0002c104 + 0x7ee0;\n      iVar6 = (*(code *)puVar1)(puVar4,0);\n      if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }\n      unaff_s5 = 0x400;\n      if (0x400 < param_2) {\n        param_2 = 0x400;\n      }\n      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);\n      (*(code *)PTR_close_0002c23c)(iVar6);\n      if ((int)unaff_s4 < 0x400) goto LAB_00018294;\n      goto LAB_00018134;\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(0x81c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x81c)" (identifier "xmalloc") (argument_list "(0x81c)" (( "(") (number_literal "0x81c") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_s3 = puVar3 + 4;" (assignment_expression "unaff_s3 = puVar3 + 4" (identifier "unaff_s3") (= "=") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_open64_0002c2bc;" (assignment_expression "puVar1 = PTR_open64_0002c2bc" (identifier "puVar1") (= "=") (identifier "PTR_open64_0002c2bc")) (; ";")) (expression_statement "puVar4 = PTR_DAT_0002c108 + -0x4e44;" (assignment_expression "puVar4 = PTR_DAT_0002c108 + -0x4e44" (identifier "puVar4") (= "=") (binary_expression "PTR_DAT_0002c108 + -0x4e44" (identifier "PTR_DAT_0002c108") (+ "+") (number_literal "-0x4e44"))) (; ";")) (expression_statement "puVar3[1] = PTR_0002c104 + 0x7ee0;" (assignment_expression "puVar3[1] = PTR_0002c104 + 0x7ee0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_0002c104 + 0x7ee0" (identifier "PTR_0002c104") (+ "+") (number_literal "0x7ee0"))) (; ";")) (expression_statement "iVar6 = (*(code *)puVar1)(puVar4,0);" (assignment_expression "iVar6 = (*(code *)puVar1)(puVar4,0)" (identifier "iVar6") (= "=") (call_expression "(*(code *)puVar1)(puVar4,0)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(puVar4,0)" (( "(") (identifier "puVar4") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar6 < 0) {\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);\n        puVar1 = PTR_getpid_0002c2f0;\n        uVar7 = 0xc;\n        *unaff_s3 = local_34;\n        puVar3[5] = local_30;\n        local_34 = (*(code *)puVar1)();\n        uVar9 = (uint)(puVar3 + 6) & 3;\n        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);\n        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;\n        uVar9 = (int)puVar3 + 0x1bU & 3;\n        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);\n        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;\n        goto LAB_000181c0;\n      }" ({ "{") (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(&local_34,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" (( "(") (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" (* "*") (cast_expression "(code *)PTR_gettimeofday_0002c31c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gettimeofday_0002c31c"))) () ")")) (argument_list "(&local_34,0)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_getpid_0002c2f0;" (assignment_expression "puVar1 = PTR_getpid_0002c2f0" (identifier "puVar1") (= "=") (identifier "PTR_getpid_0002c2f0")) (; ";")) (expression_statement "uVar7 = 0xc;" (assignment_expression "uVar7 = 0xc" (identifier "uVar7") (= "=") (number_literal "0xc")) (; ";")) (expression_statement "*unaff_s3 = local_34;" (assignment_expression "*unaff_s3 = local_34" (pointer_expression "*unaff_s3" (* "*") (identifier "unaff_s3")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "puVar3[5] = local_30;" (assignment_expression "puVar3[5] = local_30" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "local_34 = (*(code *)puVar1)();" (assignment_expression "local_34 = (*(code *)puVar1)()" (identifier "local_34") (= "=") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar9 = (uint)(puVar3 + 6) & 3;" (assignment_expression "uVar9 = (uint)(puVar3 + 6) & 3" (identifier "uVar9") (= "=") (binary_expression "(uint)(puVar3 + 6) & 3" (call_expression "(uint)(puVar3 + 6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar3 + 6)" (( "(") (binary_expression "puVar3 + 6" (identifier "puVar3") (+ "+") (number_literal "6")) () ")"))) (& "&") (number_literal "3"))) (; ";")) (expression_statement "puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);" (assignment_expression "puVar8 = (uint *)((int)(puVar3 + 6) - uVar9)" (identifier "puVar8") (= "=") (cast_expression "(uint *)((int)(puVar3 + 6) - uVar9)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)(puVar3 + 6) - uVar9)" (( "(") (binary_expression "(int)(puVar3 + 6) - uVar9" (cast_expression "(int)(puVar3 + 6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar3 + 6)" (( "(") (binary_expression "puVar3 + 6" (identifier "puVar3") (+ "+") (number_literal "6")) () ")"))) (- "-") (identifier "uVar9")) () ")")))) (; ";")) (expression_statement "*puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;" (assignment_expression "*puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (binary_expression "*puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8" (binary_expression "*puVar8 & -1 << (4 - uVar9) * 8" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (& "&") (binary_expression "-1 << (4 - uVar9) * 8" (number_literal "-1") (<< "<<") (binary_expression "(4 - uVar9) * 8" (parenthesized_expression "(4 - uVar9)" (( "(") (binary_expression "4 - uVar9" (number_literal "4") (- "-") (identifier "uVar9")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "local_34 >> uVar9 * 8" (identifier "local_34") (>> ">>") (binary_expression "uVar9 * 8" (identifier "uVar9") (* "*") (number_literal "8"))))) (; ";")) (expression_statement "uVar9 = (int)puVar3 + 0x1bU & 3;" (assignment_expression "uVar9 = (int)puVar3 + 0x1bU & 3" (identifier "uVar9") (= "=") (binary_expression "(int)puVar3 + 0x1bU & 3" (binary_expression "(int)puVar3 + 0x1bU" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "0x1bU")) (& "&") (number_literal "3"))) (; ";")) (expression_statement "puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);" (assignment_expression "puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9)" (identifier "puVar8") (= "=") (cast_expression "(uint *)(((int)puVar3 + 0x1bU) - uVar9)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((int)puVar3 + 0x1bU) - uVar9)" (( "(") (binary_expression "((int)puVar3 + 0x1bU) - uVar9" (parenthesized_expression "((int)puVar3 + 0x1bU)" (( "(") (binary_expression "(int)puVar3 + 0x1bU" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "0x1bU")) () ")")) (- "-") (identifier "uVar9")) () ")")))) (; ";")) (expression_statement "*puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;" (assignment_expression "*puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (binary_expression "*puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8" (binary_expression "*puVar8 & 0xffffffffU >> (uVar9 + 1) * 8" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (& "&") (binary_expression "0xffffffffU >> (uVar9 + 1) * 8" (number_literal "0xffffffffU") (>> ">>") (binary_expression "(uVar9 + 1) * 8" (parenthesized_expression "(uVar9 + 1)" (( "(") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "local_34 << (3 - uVar9) * 8" (identifier "local_34") (<< "<<") (binary_expression "(3 - uVar9) * 8" (parenthesized_expression "(3 - uVar9)" (( "(") (binary_expression "3 - uVar9" (number_literal "3") (- "-") (identifier "uVar9")) () ")")) (* "*") (number_literal "8"))))) (; ";")) (goto_statement "goto LAB_000181c0;" (goto "goto") (statement_identifier "LAB_000181c0") (; ";")) (} "}"))) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" (identifier "unaff_s5") (= "=") (number_literal "0x400")) (; ";")) (if_statement "if (0x400 < param_2) {\n        param_2 = 0x400;\n      }" (if "if") (parenthesized_expression "(0x400 < param_2)" (( "(") (binary_expression "0x400 < param_2" (number_literal "0x400") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n        param_2 = 0x400;\n      }" ({ "{") (expression_statement "param_2 = 0x400;" (assignment_expression "param_2 = 0x400" (identifier "param_2") (= "=") (number_literal "0x400")) (; ";")) (} "}"))) (expression_statement "unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);" (assignment_expression "unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" (identifier "unaff_s4") (= "=") (cast_expression "(uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c)" (parenthesized_expression "(*(code *)PTR___read_chk_0002c340)" (( "(") (pointer_expression "*(code *)PTR___read_chk_0002c340" (* "*") (cast_expression "(code *)PTR___read_chk_0002c340" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___read_chk_0002c340"))) () ")")) (argument_list "(iVar6,unaff_s3,param_2,0x80c)" (( "(") (identifier "iVar6") (, ",") (identifier "unaff_s3") (, ",") (identifier "param_2") (, ",") (number_literal "0x80c") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_close_0002c23c)(iVar6);" (call_expression "(*(code *)PTR_close_0002c23c)(iVar6)" (parenthesized_expression "(*(code *)PTR_close_0002c23c)" (( "(") (pointer_expression "*(code *)PTR_close_0002c23c" (* "*") (cast_expression "(code *)PTR_close_0002c23c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_0002c23c"))) () ")")) (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (if_statement "if ((int)unaff_s4 < 0x400) goto LAB_00018294;" (if "if") (parenthesized_expression "((int)unaff_s4 < 0x400)" (( "(") (binary_expression "(int)unaff_s4 < 0x400" (cast_expression "(int)unaff_s4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s4")) (< "<") (number_literal "0x400")) () ")")) (goto_statement "goto LAB_00018294;" (goto "goto") (statement_identifier "LAB_00018294") (; ";"))) (goto_statement "goto LAB_00018134;" (goto "goto") (statement_identifier "LAB_00018134") (; ";")) (} "}"))) (expression_statement "unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);" (assignment_expression "unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" (identifier "unaff_s3") (= "=") (cast_expression "(uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34)" (identifier "fopen_safer") (argument_list "(param_1,PTR_DAT_0002c108 + -0x4e34)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_0002c108 + -0x4e34" (identifier "PTR_DAT_0002c108") (+ "+") (number_literal "-0x4e34")) () ")"))))) (; ";")) (expression_statement "unaff_s4 = param_1;" (assignment_expression "unaff_s4 = param_1" (identifier "unaff_s4") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (unaff_s3 == (uint *)0x0) {\n      puVar3 = (undefined4 *)0x0;\n    }\n    else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" (if "if") (parenthesized_expression "(unaff_s3 == (uint *)0x0)" (( "(") (binary_expression "unaff_s3 == (uint *)0x0" (identifier "unaff_s3") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar3 = (undefined4 *)0x0;\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" (else "else") (compound_statement "{\n      puVar3 = (undefined4 *)xmalloc(0x81c);\n      *puVar3 = unaff_s3;\n      puVar4 = PTR_setvbuf_0002c2b4;\n      puVar1 = PTR_0002c104;\n      uVar9 = 0x800;\n      if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }\n      puVar3[2] = param_1;\n      puVar3[1] = puVar1 + 0x7ee0;\n      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)xmalloc(0x81c);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x81c)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(0x81c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x81c)" (identifier "xmalloc") (argument_list "(0x81c)" (( "(") (number_literal "0x81c") () ")"))))) (; ";")) (expression_statement "*puVar3 = unaff_s3;" (assignment_expression "*puVar3 = unaff_s3" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "unaff_s3")) (; ";")) (expression_statement "puVar4 = PTR_setvbuf_0002c2b4;" (assignment_expression "puVar4 = PTR_setvbuf_0002c2b4" (identifier "puVar4") (= "=") (identifier "PTR_setvbuf_0002c2b4")) (; ";")) (expression_statement "puVar1 = PTR_0002c104;" (assignment_expression "puVar1 = PTR_0002c104" (identifier "puVar1") (= "=") (identifier "PTR_0002c104")) (; ";")) (expression_statement "uVar9 = 0x800;" (assignment_expression "uVar9 = 0x800" (identifier "uVar9") (= "=") (number_literal "0x800")) (; ";")) (if_statement "if (param_2 < 0x801) {\n        uVar9 = param_2;\n      }" (if "if") (parenthesized_expression "(param_2 < 0x801)" (( "(") (binary_expression "param_2 < 0x801" (identifier "param_2") (< "<") (number_literal "0x801")) () ")")) (compound_statement "{\n        uVar9 = param_2;\n      }" ({ "{") (expression_statement "uVar9 = param_2;" (assignment_expression "uVar9 = param_2" (identifier "uVar9") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "puVar3[2] = param_1;" (assignment_expression "puVar3[2] = param_1" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar3[1] = puVar1 + 0x7ee0;" (assignment_expression "puVar3[1] = puVar1 + 0x7ee0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar1 + 0x7ee0" (identifier "puVar1") (+ "+") (number_literal "0x7ee0"))) (; ";")) (expression_statement "(*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);" (call_expression "(*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9)" (parenthesized_expression "(*(code *)puVar4)" (( "(") (pointer_expression "*(code *)puVar4" (* "*") (cast_expression "(code *)puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (argument_list "(unaff_s3,puVar3 + 3,0,uVar9)" (( "(") (identifier "unaff_s3") (, ",") (binary_expression "puVar3 + 3" (identifier "puVar3") (+ "+") (number_literal "3")) (, ",") (number_literal "0") (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}")))) (} "}")))) (while_statement "while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" (while "while") (parenthesized_expression "(local_2c != *(int *)puVar2)" (( "(") (binary_expression "local_2c != *(int *)puVar2" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0002c310)();\nLAB_00018294:\n    puVar8 = unaff_s4;\n    if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }\n    uVar9 = unaff_s5 - (int)puVar8;\n    unaff_s4 = &local_34;\n    if (8 < uVar9) {\n      uVar9 = 8;\n    }\n    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);\n    iVar6 = uVar9 + (int)puVar8;\n    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);\n    if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }\nLAB_00018134:\n    isaac_seed(unaff_s3);\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_0002c310)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c310)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c310)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0002c310" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0002c310" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0002c310"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00018294:\n    puVar8 = unaff_s4;" (statement_identifier "LAB_00018294") (: ":") (expression_statement "puVar8 = unaff_s4;" (assignment_expression "puVar8 = unaff_s4" (identifier "puVar8") (= "=") (identifier "unaff_s4")) (; ";"))) (if_statement "if ((int)unaff_s4 < 0) {\n      puVar8 = (uint *)0x0;\n    }" (if "if") (parenthesized_expression "((int)unaff_s4 < 0)" (( "(") (binary_expression "(int)unaff_s4 < 0" (cast_expression "(int)unaff_s4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s4")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      puVar8 = (uint *)0x0;\n    }" ({ "{") (expression_statement "puVar8 = (uint *)0x0;" (assignment_expression "puVar8 = (uint *)0x0" (identifier "puVar8") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "uVar9 = unaff_s5 - (int)puVar8;" (assignment_expression "uVar9 = unaff_s5 - (int)puVar8" (identifier "uVar9") (= "=") (binary_expression "unaff_s5 - (int)puVar8" (identifier "unaff_s5") (- "-") (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")))) (; ";")) (expression_statement "unaff_s4 = &local_34;" (assignment_expression "unaff_s4 = &local_34" (identifier "unaff_s4") (= "=") (pointer_expression "&local_34" (& "&") (identifier "local_34"))) (; ";")) (if_statement "if (8 < uVar9) {\n      uVar9 = 8;\n    }" (if "if") (parenthesized_expression "(8 < uVar9)" (( "(") (binary_expression "8 < uVar9" (number_literal "8") (< "<") (identifier "uVar9")) () ")")) (compound_statement "{\n      uVar9 = 8;\n    }" ({ "{") (expression_statement "uVar9 = 8;" (assignment_expression "uVar9 = 8" (identifier "uVar9") (= "=") (number_literal "8")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);" (call_expression "(*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_0002c31c)" (( "(") (pointer_expression "*(code *)PTR_gettimeofday_0002c31c" (* "*") (cast_expression "(code *)PTR_gettimeofday_0002c31c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gettimeofday_0002c31c"))) () ")")) (argument_list "(unaff_s4,0)" (( "(") (identifier "unaff_s4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar6 = uVar9 + (int)puVar8;" (assignment_expression "iVar6 = uVar9 + (int)puVar8" (identifier "iVar6") (= "=") (binary_expression "uVar9 + (int)puVar8" (identifier "uVar9") (+ "+") (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0002c330" (* "*") (cast_expression "(code *)PTR_memcpy_0002c330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0002c330"))) () ")")) (argument_list "((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9)" (( "(") (binary_expression "(int)unaff_s3 + (int)puVar8" (cast_expression "(int)unaff_s3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s3")) (+ "+") (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8"))) (, ",") (identifier "unaff_s4") (, ",") (identifier "uVar9") () ")"))) (; ";")) (if_statement "if (iVar6 < 0x400) {\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar6 < 0x400)" (( "(") (binary_expression "iVar6 < 0x400" (identifier "iVar6") (< "<") (number_literal "0x400")) () ")")) (compound_statement "{\n      unaff_s5 = unaff_s5 - iVar6;\n      if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }\n      local_34 = (*(code *)PTR_getpid_0002c2f0)();\n      uVar7 = unaff_s5 + iVar6;\n      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);\n      if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "unaff_s5 = unaff_s5 - iVar6;" (assignment_expression "unaff_s5 = unaff_s5 - iVar6" (identifier "unaff_s5") (= "=") (binary_expression "unaff_s5 - iVar6" (identifier "unaff_s5") (- "-") (identifier "iVar6"))) (; ";")) (if_statement "if (4 < unaff_s5) {\n        unaff_s5 = 4;\n      }" (if "if") (parenthesized_expression "(4 < unaff_s5)" (( "(") (binary_expression "4 < unaff_s5" (number_literal "4") (< "<") (identifier "unaff_s5")) () ")")) (compound_statement "{\n        unaff_s5 = 4;\n      }" ({ "{") (expression_statement "unaff_s5 = 4;" (assignment_expression "unaff_s5 = 4" (identifier "unaff_s5") (= "=") (number_literal "4")) (; ";")) (} "}"))) (expression_statement "local_34 = (*(code *)PTR_getpid_0002c2f0)();" (assignment_expression "local_34 = (*(code *)PTR_getpid_0002c2f0)()" (identifier "local_34") (= "=") (call_expression "(*(code *)PTR_getpid_0002c2f0)()" (parenthesized_expression "(*(code *)PTR_getpid_0002c2f0)" (( "(") (pointer_expression "*(code *)PTR_getpid_0002c2f0" (* "*") (cast_expression "(code *)PTR_getpid_0002c2f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getpid_0002c2f0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = unaff_s5 + iVar6;" (assignment_expression "uVar7 = unaff_s5 + iVar6" (identifier "uVar7") (= "=") (binary_expression "unaff_s5 + iVar6" (identifier "unaff_s5") (+ "+") (identifier "iVar6"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0002c330" (* "*") (cast_expression "(code *)PTR_memcpy_0002c330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0002c330"))) () ")")) (argument_list "((int)unaff_s3 + iVar6,unaff_s4,unaff_s5)" (( "(") (binary_expression "(int)unaff_s3 + iVar6" (cast_expression "(int)unaff_s3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s3")) (+ "+") (identifier "iVar6")) (, ",") (identifier "unaff_s4") (, ",") (identifier "unaff_s5") () ")"))) (; ";")) (if_statement "if (uVar7 < 0x400) {\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }" (if "if") (parenthesized_expression "(uVar7 < 0x400)" (( "(") (binary_expression "uVar7 < 0x400" (identifier "uVar7") (< "<") (number_literal "0x400")) () ")")) (compound_statement "{\nLAB_000181c0:\n        unaff_s4 = &local_34;\n        unaff_s5 = 0x400;\n        uVar9 = 0x400 - uVar7;\n        if (4 < uVar9) {\n          uVar9 = 4;\n        }\n        local_34 = (*(code *)PTR_getppid_0002c260)();\n        uVar5 = uVar9 + uVar7;\n        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n        if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }\n      }" ({ "{") (labeled_statement "LAB_000181c0:\n        unaff_s4 = &local_34;" (statement_identifier "LAB_000181c0") (: ":") (expression_statement "unaff_s4 = &local_34;" (assignment_expression "unaff_s4 = &local_34" (identifier "unaff_s4") (= "=") (pointer_expression "&local_34" (& "&") (identifier "local_34"))) (; ";"))) (expression_statement "unaff_s5 = 0x400;" (assignment_expression "unaff_s5 = 0x400" (identifier "unaff_s5") (= "=") (number_literal "0x400")) (; ";")) (expression_statement "uVar9 = 0x400 - uVar7;" (assignment_expression "uVar9 = 0x400 - uVar7" (identifier "uVar9") (= "=") (binary_expression "0x400 - uVar7" (number_literal "0x400") (- "-") (identifier "uVar7"))) (; ";")) (if_statement "if (4 < uVar9) {\n          uVar9 = 4;\n        }" (if "if") (parenthesized_expression "(4 < uVar9)" (( "(") (binary_expression "4 < uVar9" (number_literal "4") (< "<") (identifier "uVar9")) () ")")) (compound_statement "{\n          uVar9 = 4;\n        }" ({ "{") (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" (identifier "uVar9") (= "=") (number_literal "4")) (; ";")) (} "}"))) (expression_statement "local_34 = (*(code *)PTR_getppid_0002c260)();" (assignment_expression "local_34 = (*(code *)PTR_getppid_0002c260)()" (identifier "local_34") (= "=") (call_expression "(*(code *)PTR_getppid_0002c260)()" (parenthesized_expression "(*(code *)PTR_getppid_0002c260)" (( "(") (pointer_expression "*(code *)PTR_getppid_0002c260" (* "*") (cast_expression "(code *)PTR_getppid_0002c260" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getppid_0002c260"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = uVar9 + uVar7;" (assignment_expression "uVar5 = uVar9 + uVar7" (identifier "uVar5") (= "=") (binary_expression "uVar9 + uVar7" (identifier "uVar9") (+ "+") (identifier "uVar7"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0002c330" (* "*") (cast_expression "(code *)PTR_memcpy_0002c330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0002c330"))) () ")")) (argument_list "((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (( "(") (binary_expression "(int)unaff_s3 + uVar7" (cast_expression "(int)unaff_s3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s3")) (+ "+") (identifier "uVar7")) (, ",") (identifier "unaff_s4") (, ",") (identifier "uVar9") () ")"))) (; ";")) (if_statement "if (uVar5 < 0x400) {\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }" (if "if") (parenthesized_expression "(uVar5 < 0x400)" (( "(") (binary_expression "uVar5 < 0x400" (identifier "uVar5") (< "<") (number_literal "0x400")) () ")")) (compound_statement "{\n          uVar9 = 0x400 - uVar5;\n          if (4 < uVar9) {\n            uVar9 = 4;\n          }\n          local_34 = (*(code *)PTR_getuid_0002c30c)();\n          uVar7 = uVar5 + uVar9;\n          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);\n          if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }\n        }" ({ "{") (expression_statement "uVar9 = 0x400 - uVar5;" (assignment_expression "uVar9 = 0x400 - uVar5" (identifier "uVar9") (= "=") (binary_expression "0x400 - uVar5" (number_literal "0x400") (- "-") (identifier "uVar5"))) (; ";")) (if_statement "if (4 < uVar9) {\n            uVar9 = 4;\n          }" (if "if") (parenthesized_expression "(4 < uVar9)" (( "(") (binary_expression "4 < uVar9" (number_literal "4") (< "<") (identifier "uVar9")) () ")")) (compound_statement "{\n            uVar9 = 4;\n          }" ({ "{") (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" (identifier "uVar9") (= "=") (number_literal "4")) (; ";")) (} "}"))) (expression_statement "local_34 = (*(code *)PTR_getuid_0002c30c)();" (assignment_expression "local_34 = (*(code *)PTR_getuid_0002c30c)()" (identifier "local_34") (= "=") (call_expression "(*(code *)PTR_getuid_0002c30c)()" (parenthesized_expression "(*(code *)PTR_getuid_0002c30c)" (( "(") (pointer_expression "*(code *)PTR_getuid_0002c30c" (* "*") (cast_expression "(code *)PTR_getuid_0002c30c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getuid_0002c30c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = uVar5 + uVar9;" (assignment_expression "uVar7 = uVar5 + uVar9" (identifier "uVar7") (= "=") (binary_expression "uVar5 + uVar9" (identifier "uVar5") (+ "+") (identifier "uVar9"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0002c330" (* "*") (cast_expression "(code *)PTR_memcpy_0002c330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0002c330"))) () ")")) (argument_list "((int)unaff_s3 + uVar5,unaff_s4,uVar9)" (( "(") (binary_expression "(int)unaff_s3 + uVar5" (cast_expression "(int)unaff_s3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s3")) (+ "+") (identifier "uVar5")) (, ",") (identifier "unaff_s4") (, ",") (identifier "uVar9") () ")"))) (; ";")) (if_statement "if (uVar7 < 0x400) {\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }" (if "if") (parenthesized_expression "(uVar7 < 0x400)" (( "(") (binary_expression "uVar7 < 0x400" (identifier "uVar7") (< "<") (number_literal "0x400")) () ")")) (compound_statement "{\n            unaff_s5 = 0x400 - uVar7;\n            local_34 = (*(code *)PTR_getgid_0002c2b0)();\n            uVar9 = 4;\n            if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }\n            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);\n          }" ({ "{") (expression_statement "unaff_s5 = 0x400 - uVar7;" (assignment_expression "unaff_s5 = 0x400 - uVar7" (identifier "unaff_s5") (= "=") (binary_expression "0x400 - uVar7" (number_literal "0x400") (- "-") (identifier "uVar7"))) (; ";")) (expression_statement "local_34 = (*(code *)PTR_getgid_0002c2b0)();" (assignment_expression "local_34 = (*(code *)PTR_getgid_0002c2b0)()" (identifier "local_34") (= "=") (call_expression "(*(code *)PTR_getgid_0002c2b0)()" (parenthesized_expression "(*(code *)PTR_getgid_0002c2b0)" (( "(") (pointer_expression "*(code *)PTR_getgid_0002c2b0" (* "*") (cast_expression "(code *)PTR_getgid_0002c2b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getgid_0002c2b0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar9 = 4;" (assignment_expression "uVar9 = 4" (identifier "uVar9") (= "=") (number_literal "4")) (; ";")) (if_statement "if (unaff_s5 < 5) {\n              uVar9 = unaff_s5;\n            }" (if "if") (parenthesized_expression "(unaff_s5 < 5)" (( "(") (binary_expression "unaff_s5 < 5" (identifier "unaff_s5") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n              uVar9 = unaff_s5;\n            }" ({ "{") (expression_statement "uVar9 = unaff_s5;" (assignment_expression "uVar9 = unaff_s5" (identifier "uVar9") (= "=") (identifier "unaff_s5")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);" (call_expression "(*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (parenthesized_expression "(*(code *)PTR_memcpy_0002c330)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0002c330" (* "*") (cast_expression "(code *)PTR_memcpy_0002c330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0002c330"))) () ")")) (argument_list "((int)unaff_s3 + uVar7,unaff_s4,uVar9)" (( "(") (binary_expression "(int)unaff_s3 + uVar7" (cast_expression "(int)unaff_s3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s3")) (+ "+") (identifier "uVar7")) (, ",") (identifier "unaff_s4") (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_00018134:\n    isaac_seed(unaff_s3);" (statement_identifier "LAB_00018134") (: ":") (expression_statement "isaac_seed(unaff_s3);" (call_expression "isaac_seed(unaff_s3)" (identifier "isaac_seed") (argument_list "(unaff_s3)" (( "(") (identifier "unaff_s3") () ")"))) (; ";"))) (} "}"))) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

type_1 * function_1(char *var_4,size_t var_1)

{
  type_2 *var_7;
  type_3 *puVar2;
  type_4 *var_12;
  type_4 *puVar4;
  int var_13;
  type_1 *prVar6;
  int var_6;
  size_t sVar8;
  type_4 *puVar9;
  char *var_9;
  char *var_15;
  type_5 *var_11;
  type_6 *unaff_s4;
  type_6 *ptVar12;
  type_3 var_14;
  type_3 var_8;
  type_6 v;
  
  puVar4 = PTR___stack_chk_guard_0002c32c;
  var_13 = *(int *)PTR___stack_chk_guard_0002c32c;
  if (var_1 == 0) {
    prVar6 = (type_1 *)var_2(0x81c);
    prVar6->source = (type_7 *)0x0;
    prVar6->handler_arg = (void *)0x0;
    prVar6->handler = (type_8 *)(var_3 + 0x7ee0);
  }
  else {
    if (var_4 == (char *)0x0) {
      prVar6 = (type_1 *)var_2(0x81c);
      prVar6->source = (type_7 *)0x0;
      var_11 = &(prVar6->buf).isaac.state;
      prVar6->handler_arg = (void *)0x0;
      (prVar6->buf).isaac.buffered = 0;
      var_12 = PTR_open64_0002c2bc;
      puVar9 = var_5 + -0x4e44;
      prVar6->handler = (type_8 *)(var_3 + 0x7ee0);
      var_6 = (*(type_9 *)var_12)(puVar9,0);
      if (var_6 < 0) {
        (*(type_9 *)PTR_gettimeofday_0002c31c)(&v,0);
        var_12 = PTR_getpid_0002c2f0;
        var_15 = (char *)0xc;
        var_11->m[0] = v.tv_sec;
        (prVar6->buf).isaac.state.m[1] = v.tv_usec;
        v.tv_sec = (*(type_9 *)var_12)();
        var_7 = (type_2 *)((int)&prVar6->buf + 0xc);
        var_8 = (type_3)var_7 & 3;
        puVar2 = (type_3 *)(var_7 + -var_8);
        *puVar2 = *puVar2 & -1 << (4 - var_8) * 8 | (type_3)v.tv_sec >> var_8 * 8;
        var_9 = (prVar6->buf).c + 0xf;
        var_8 = (type_3)var_9 & 3;
        *(type_3 *)(var_9 + -var_8) =
             *(type_3 *)(var_9 + -var_8) & 0xffffffffU >> (var_8 + 1) * 8 |
             v.tv_sec << (3 - var_8) * 8;
        goto LAB_000181c0;
      }
      var_14 = 0x400;
      if (0x400 < var_1) {
        var_1 = 0x400;
      }
      unaff_s4 = (type_6 *)(*(type_9 *)PTR___read_chk_0002c340)(var_6,var_11,var_1,0x80c);
      (*(type_9 *)PTR_close_0002c23c)(var_6);
      if ((int)unaff_s4 < 0x400) goto LAB_00018294;
      goto LAB_00018134;
    }
    var_11 = (type_5 *)var_10(var_4,var_5 + -0x4e34);
    unaff_s4 = (type_6 *)var_4;
    if (var_11 == (type_5 *)0x0) {
      prVar6 = (type_1 *)0x0;
    }
    else {
      prVar6 = (type_1 *)var_2(0x81c);
      prVar6->source = (type_7 *)var_11;
      puVar9 = PTR_setvbuf_0002c2b4;
      var_12 = var_3;
      sVar8 = 0x800;
      if (var_1 < 0x801) {
        sVar8 = var_1;
      }
      prVar6->handler_arg = var_4;
      prVar6->handler = (type_8 *)(var_12 + 0x7ee0);
      (*(type_9 *)puVar9)(var_11,&prVar6->buf,0,sVar8);
    }
  }
  while (var_13 != *(int *)puVar4) {
    (*(type_9 *)PTR___stack_chk_fail_0002c310)();
LAB_00018294:
    ptVar12 = unaff_s4;
    if ((int)unaff_s4 < 0) {
      ptVar12 = (type_6 *)0x0;
    }
    var_8 = var_14 - (int)ptVar12;
    unaff_s4 = &v;
    if (8 < var_8) {
      var_8 = 8;
    }
    (*(type_9 *)PTR_gettimeofday_0002c31c)(unaff_s4,0);
    var_9 = (char *)((int)&ptVar12->tv_sec + var_8);
    (*(type_9 *)PTR_memcpy_0002c330)
              ((char *)((int)&ptVar12->tv_sec + (int)var_11->m),unaff_s4,var_8);
    if ((int)var_9 < 0x400) {
      var_14 = var_14 - (int)var_9;
      if (4 < var_14) {
        var_14 = 4;
      }
      v.tv_sec = (*(type_9 *)PTR_getpid_0002c2f0)();
      var_15 = var_9 + var_14;
      (*(type_9 *)PTR_memcpy_0002c330)(var_9 + (int)var_11->m,unaff_s4,var_14);
      if (var_15 < (char *)0x400) {
LAB_000181c0:
        unaff_s4 = &v;
        var_14 = 0x400;
        var_8 = 0x400 - (int)var_15;
        if (4 < var_8) {
          var_8 = 4;
        }
        v.tv_sec = (*(type_9 *)PTR_getppid_0002c260)();
        var_9 = var_15 + var_8;
        (*(type_9 *)PTR_memcpy_0002c330)(var_15 + (int)var_11->m,unaff_s4,var_8);
        if (var_9 < (char *)0x400) {
          var_8 = 0x400 - (int)var_9;
          if (4 < var_8) {
            var_8 = 4;
          }
          v.tv_sec = (*(type_9 *)PTR_getuid_0002c30c)();
          var_15 = var_9 + var_8;
          (*(type_9 *)PTR_memcpy_0002c330)(var_9 + (int)var_11->m,unaff_s4,var_8);
          if (var_15 < (char *)0x400) {
            var_14 = 0x400 - (int)var_15;
            v.tv_sec = (*(type_9 *)PTR_getgid_0002c2b0)();
            var_8 = 4;
            if (var_14 < 5) {
              var_8 = var_14;
            }
            (*(type_9 *)PTR_memcpy_0002c330)(var_15 + (int)var_11->m,unaff_s4,var_8);
          }
        }
      }
    }
LAB_00018134:
    var_16(var_11);
  }
  return prVar6;
}


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

undefined4 * MASKED(uint *param_1,uint param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  uint *unaff_s3;
  uint *unaff_s4;
  uint *puVar8;
  uint unaff_s5;
  uint uVar9;
  uint local_34;
  undefined4 local_30;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_0002c32c;
  local_2c = *(int *)PTR___stack_chk_guard_0002c32c;
  if (param_2 == 0) {
    puVar3 = (undefined4 *)xmalloc(0x81c);
    *puVar3 = 0;
    puVar3[2] = 0;
    puVar3[1] = PTR_0002c104 + 0x7ee0;
  }
  else {
    if (param_1 == (uint *)0x0) {
      puVar3 = (undefined4 *)xmalloc(0x81c);
      *puVar3 = 0;
      unaff_s3 = puVar3 + 4;
      puVar3[2] = 0;
      puVar3[3] = 0;
      puVar1 = PTR_open64_0002c2bc;
      puVar4 = PTR_DAT_0002c108 + -0x4e44;
      puVar3[1] = PTR_0002c104 + 0x7ee0;
      iVar6 = (*(code *)puVar1)(puVar4,0);
      if (iVar6 < 0) {
        (*(code *)PTR_gettimeofday_0002c31c)(&local_34,0);
        puVar1 = PTR_getpid_0002c2f0;
        uVar7 = 0xc;
        *unaff_s3 = local_34;
        puVar3[5] = local_30;
        local_34 = (*(code *)puVar1)();
        uVar9 = (uint)(puVar3 + 6) & 3;
        puVar8 = (uint *)((int)(puVar3 + 6) - uVar9);
        *puVar8 = *puVar8 & -1 << (4 - uVar9) * 8 | local_34 >> uVar9 * 8;
        uVar9 = (int)puVar3 + 0x1bU & 3;
        puVar8 = (uint *)(((int)puVar3 + 0x1bU) - uVar9);
        *puVar8 = *puVar8 & 0xffffffffU >> (uVar9 + 1) * 8 | local_34 << (3 - uVar9) * 8;
        goto LAB_000181c0;
      }
      unaff_s5 = 0x400;
      if (0x400 < param_2) {
        param_2 = 0x400;
      }
      unaff_s4 = (uint *)(*(code *)PTR___read_chk_0002c340)(iVar6,unaff_s3,param_2,0x80c);
      (*(code *)PTR_close_0002c23c)(iVar6);
      if ((int)unaff_s4 < 0x400) goto LAB_00018294;
      goto LAB_00018134;
    }
    unaff_s3 = (uint *)fopen_safer(param_1,PTR_DAT_0002c108 + -0x4e34);
    unaff_s4 = param_1;
    if (unaff_s3 == (uint *)0x0) {
      puVar3 = (undefined4 *)0x0;
    }
    else {
      puVar3 = (undefined4 *)xmalloc(0x81c);
      *puVar3 = unaff_s3;
      puVar4 = PTR_setvbuf_0002c2b4;
      puVar1 = PTR_0002c104;
      uVar9 = 0x800;
      if (param_2 < 0x801) {
        uVar9 = param_2;
      }
      puVar3[2] = param_1;
      puVar3[1] = puVar1 + 0x7ee0;
      (*(code *)puVar4)(unaff_s3,puVar3 + 3,0,uVar9);
    }
  }
  while (local_2c != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_0002c310)();
LAB_00018294:
    puVar8 = unaff_s4;
    if ((int)unaff_s4 < 0) {
      puVar8 = (uint *)0x0;
    }
    uVar9 = unaff_s5 - (int)puVar8;
    unaff_s4 = &local_34;
    if (8 < uVar9) {
      uVar9 = 8;
    }
    (*(code *)PTR_gettimeofday_0002c31c)(unaff_s4,0);
    iVar6 = uVar9 + (int)puVar8;
    (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + (int)puVar8,unaff_s4,uVar9);
    if (iVar6 < 0x400) {
      unaff_s5 = unaff_s5 - iVar6;
      if (4 < unaff_s5) {
        unaff_s5 = 4;
      }
      local_34 = (*(code *)PTR_getpid_0002c2f0)();
      uVar7 = unaff_s5 + iVar6;
      (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + iVar6,unaff_s4,unaff_s5);
      if (uVar7 < 0x400) {
LAB_000181c0:
        unaff_s4 = &local_34;
        unaff_s5 = 0x400;
        uVar9 = 0x400 - uVar7;
        if (4 < uVar9) {
          uVar9 = 4;
        }
        local_34 = (*(code *)PTR_getppid_0002c260)();
        uVar5 = uVar9 + uVar7;
        (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);
        if (uVar5 < 0x400) {
          uVar9 = 0x400 - uVar5;
          if (4 < uVar9) {
            uVar9 = 4;
          }
          local_34 = (*(code *)PTR_getuid_0002c30c)();
          uVar7 = uVar5 + uVar9;
          (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar5,unaff_s4,uVar9);
          if (uVar7 < 0x400) {
            unaff_s5 = 0x400 - uVar7;
            local_34 = (*(code *)PTR_getgid_0002c2b0)();
            uVar9 = 4;
            if (unaff_s5 < 5) {
              uVar9 = unaff_s5;
            }
            (*(code *)PTR_memcpy_0002c330)((int)unaff_s3 + uVar7,unaff_s4,uVar9);
          }
        }
      }
    }
LAB_00018134:
    isaac_seed(unaff_s3);
  }
  return puVar3;
}

