
int png_inflate_claim(png_structrp png_ptr,png_uint_32 owner)

{
  uint uVar1;
  png_bytep ppVar2;
  int iVar3;
  png_const_structrp png_ptr_00;
  int iVar4;
  uint size;
  png_uint_32 pVar5;
  uint uVar6;
  undefined1 *in_a2;
  z_stream *pzVar7;
  undefined *puVar8;
  code *pcVar9;
  char msg [64];
  
  puVar8 = PTR___stack_chk_guard_000534bc;
  png_ptr_00 = *(png_const_structrp *)PTR___stack_chk_guard_000534bc;
  if (png_ptr->zowner != 0) {
    in_a2 = &DAT_00000004;
    msg._0_4_ = png_ptr->zowner;
    png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);
    (*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);
    png_ptr->zowner = 0;
  }
  pVar5 = png_ptr->options;
  size = 0xf;
  uVar1 = png_ptr->flags;
  pzVar7 = &png_ptr->zstream;
  (png_ptr->zstream).next_in = (Bytef *)0x0;
  (png_ptr->zstream).avail_in = 0;
  (png_ptr->zstream).next_out = (Bytef *)0x0;
  uVar6 = (pVar5 << 0x1c) >> 0x1e ^ 3;
  (png_ptr->zstream).avail_out = 0;
  if (uVar6 != 0) {
    size = 0;
  }
  png_ptr->zstream_start = uVar6 != 0;
  if ((uVar1 & 2) == 0) {
    in_a2 = PTR_s_nt_0005301c + 0x5c0;
    uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);
    if (uVar1 != 0) {
      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
      goto LAB_0002aac0;
    }
    png_ptr->flags = png_ptr->flags | 2;
    if ((png_ptr->options << 0x16) >> 0x1e == 3) {
LAB_0002ab18:
      size = 0;
      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);
      goto joined_r0x0002ab28;
    }
  }
  else {
    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);
    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
joined_r0x0002ab28:
    if (uVar1 != 0) {
LAB_0002aac0:
      size = uVar1;
      png_zstream_error(png_ptr,uVar1);
      goto LAB_0002aa84;
    }
  }
  uVar1 = 0;
  png_ptr->zowner = owner;
LAB_0002aa84:
  if (png_ptr_00 == *(png_const_structrp *)puVar8) {
    return uVar1;
  }
  puVar8 = PTR___stack_chk_fail_00053484;
  (*(code *)PTR___stack_chk_fail_00053484)();
  if (png_ptr_00->read_buffer != (png_bytep)0x0) {
    pcVar9 = *(code **)(puVar8 + 0x287a0);
    if (size <= png_ptr_00->read_buffer_size) {
      return (int)png_ptr_00->read_buffer;
    }
    png_ptr_00->read_buffer = (png_bytep)0x0;
    png_ptr_00->read_buffer_size = 0;
    (*pcVar9)();
  }
  ppVar2 = (png_bytep)png_malloc_base(png_ptr_00,size);
  if (ppVar2 != (png_bytep)0x0) {
    (**(code **)(puVar8 + 0x28810))(ppVar2,0,size);
    png_ptr_00->read_buffer = ppVar2;
    png_ptr_00->read_buffer_size = size;
    return (int)ppVar2;
  }
  if (in_a2 == &DAT_00000002) {
    return 0;
  }
  if (in_a2 != (undefined1 *)0x0) {
    (**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);
    return 0;
  }
  (**(code **)(puVar8 + 0x28998))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);
  iVar4 = (uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +
          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +
          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +
          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100;
  iVar3 = -1;
  if (-1 < iVar4) {
    iVar3 = iVar4;
  }
  return iVar3;
}



uint FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)

{
  uint uVar1;
  byte *pbVar2;
  uint uVar3;
  int iVar4;
  undefined *puVar5;
  code *pcVar6;
  int local_5c [16];
  byte *local_1c;
  
  puVar5 = PTR___stack_chk_guard_000534bc;
  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;
  if (*(int *)(param_1 + 0x130) != 0) {
    param_3 = &DAT_00000004;
    local_5c[0] = *(int *)(param_1 + 0x130);
    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);
    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);
    *(undefined4 *)(param_1 + 0x130) = 0;
  }
  uVar1 = 0xf;
  iVar4 = param_1 + 0x134;
  *(undefined4 *)(param_1 + 0x134) = 0;
  *(undefined4 *)(param_1 + 0x138) = 0;
  *(undefined4 *)(param_1 + 0x140) = 0;
  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;
  *(undefined4 *)(param_1 + 0x144) = 0;
  if (uVar3 != 0) {
    uVar1 = 0;
  }
  *(bool *)(param_1 + 0x208) = uVar3 != 0;
  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {
    param_3 = PTR_s_nt_0005301c + 0x5c0;
    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);
    if (uVar3 != 0) {
      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
      goto LAB_0002aac0;
    }
    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;
    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {
LAB_0002ab18:
      uVar1 = 0;
      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);
      goto joined_r0x0002ab28;
    }
  }
  else {
    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);
    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
joined_r0x0002ab28:
    if (uVar3 != 0) {
LAB_0002aac0:
      uVar1 = uVar3;
      FUN_000156a8(param_1);
      goto LAB_0002aa84;
    }
  }
  uVar3 = 0;
  *(undefined4 *)(param_1 + 0x130) = param_2;
LAB_0002aa84:
  if (local_1c == *(byte **)puVar5) {
    return uVar3;
  }
  pbVar2 = local_1c;
  puVar5 = PTR___stack_chk_fail_00053484;
  (*(code *)PTR___stack_chk_fail_00053484)();
  if (*(uint *)(pbVar2 + 0x374) != 0) {
    pcVar6 = *(code **)(puVar5 + 0x287a0);
    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {
      return *(uint *)(pbVar2 + 0x374);
    }
    pbVar2[0x374] = 0;
    pbVar2[0x375] = 0;
    pbVar2[0x376] = 0;
    pbVar2[0x377] = 0;
    pbVar2[0x378] = 0;
    pbVar2[0x379] = 0;
    pbVar2[0x37a] = 0;
    pbVar2[0x37b] = 0;
    (*pcVar6)();
  }
  uVar3 = FUN_0001c240(pbVar2,uVar1);
  if (uVar3 != 0) {
    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);
    *(uint *)(pbVar2 + 0x374) = uVar3;
    *(uint *)(pbVar2 + 0x378) = uVar1;
    return uVar3;
  }
  if (param_3 == (undefined1 *)0x2) {
    return 0;
  }
  if (param_3 != (undefined1 *)0x0) {
    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);
    return 0;
  }
  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);
  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +
          (uint)pbVar2[2] * 0x100;
  uVar1 = 0xffffffff;
  if (-1 < (int)uVar3) {
    uVar1 = uVar3;
  }
  return uVar1;
}


lui gp,0x3
addiu gp,gp,0x624
addu gp,gp,t9
addiu sp,sp,-0x80
lw v0,0x130(a0)
sw s1,0x70(sp)
lw s1,-0x7b34(gp)
sw gp,0x10(sp)
sw s2,0x74(sp)
or s2,a1,zero
sw s0,0x6c(sp)
or s0,a0,zero
sw ra,0x7c(sp)
sw s3,0x78(sp)
lw v1,0x0(s1)
sw v1,0x64(sp)
bne v0,zero,0x0002ab38
_lw a3,-0x7fd4(gp)
lw a1,0x2bc(s0)
li a0,0xf
lw v0,0x128(s0)
addiu s3,s0,0x134
sw zero,0x134(s0)
ext a1,a1,0x2,0x2
sw zero,0x138(s0)
andi v0,v0,0x2
sw zero,0x140(s0)
xori a1,a1,0x3
sw zero,0x144(s0)
movn a0,zero,a1
sltu v1,zero,a1
sb v1,0x208(s0)
beq v0,zero,0x0002aadc
_or a1,a0,zero
lw t9,-0x7b1c(gp)
jalr t9
_or a0,s3,zero
li a0,0x3
lw v1,0x2bc(s0)
ext v1,v1,0x8,0x2
beq v1,a0,0x0002ab18
_lw gp,0x10(sp)
bne v0,zero,0x0002aac0
_lw t9,-0x7e18(gp)
or v0,zero,zero
sw s2,0x130(s0)
lw a0,0x64(sp)
lw v1,0x0(s1)
bne a0,v1,0x0002ab78
_lw ra,0x7c(sp)
lw s3,0x78(sp)
lw s2,0x74(sp)
lw s1,0x70(sp)
lw s0,0x6c(sp)
jr ra
_addiu sp,sp,0x80
lw v1,0x2bc(s0)
li a0,0x3
ext v1,v1,0x8,0x2
beq v1,a0,0x0002ab18
_lw t9,-0x7e18(gp)
or a1,v0,zero
sw v0,0x1c(sp)
bal 0x000156a8
_or a0,s0,zero
lw gp,0x10(sp)
b 0x0002aa84
_lw v0,0x1c(sp)
lw a2,-0x7fd4(gp)
li a3,0x38
lw t9,-0x7cc4(gp)
or a0,s3,zero
jalr t9
_addiu a2,a2,0x5c0
bne v0,zero,0x0002aaac
_lw gp,0x10(sp)
lw v0,0x2bc(s0)
li a0,0x3
lw v1,0x128(s0)
ext v0,v0,0x8,0x2
ori v1,v1,0x2
bne v0,a0,0x0002aa7c
_sw v1,0x128(s0)
lw t9,-0x7b50(gp)
or a1,zero,zero
jalr t9
_or a0,s3,zero
beq v0,zero,0x0002aa7c
_lw gp,0x10(sp)
b 0x0002aac0
_lw t9,-0x7e18(gp)
addiu s3,sp,0x24
lw t9,-0x7fd0(gp)
li a2,0x4
li a1,0x40
sw v0,0x24(sp)
addiu a3,a3,0x5b0
bal 0x000198e4
_or a0,s3,zero
or a1,s3,zero
lw gp,0x10(sp)
lw t9,-0x7c88(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
b 0x0002aa14
_sw zero,0x130(s0)
lw t9,-0x7b6c(gp)
jalr t9
_nop
(translation_unit "uint FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int local_5c [16];" primitive_type (array_declarator "local_5c [16]" identifier [ number_literal ]) ;) (declaration "byte *local_1c;" type_identifier (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000534bc;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000534bc" identifier = identifier) ;) (expression_statement "local_1c = *(byte **)PTR___stack_chk_guard_000534bc;" (assignment_expression "local_1c = *(byte **)PTR___stack_chk_guard_000534bc" identifier = (pointer_expression "*(byte **)PTR___stack_chk_guard_000534bc" * (cast_expression "(byte **)PTR___stack_chk_guard_000534bc" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x130) != 0)" ( (binary_expression "*(int *)(param_1 + 0x130) != 0" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }" { (expression_statement "param_3 = &DAT_00000004;" (assignment_expression "param_3 = &DAT_00000004" identifier = (pointer_expression "&DAT_00000004" & identifier)) ;) (expression_statement "local_5c[0] = *(int *)(param_1 + 0x130);" (assignment_expression "local_5c[0] = *(int *)(param_1 + 0x130)" (subscript_expression "local_5c[0]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) ))))) ;) (expression_statement "FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);" (call_expression "FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0)" identifier (argument_list "(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0)" ( identifier , number_literal , number_literal , (binary_expression "PTR_s_nt_0005301c + 0x5b0" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);" (call_expression "(*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c)" (parenthesized_expression "(*(code *)PTR_png_chunk_warning_00053368)" ( (pointer_expression "*(code *)PTR_png_chunk_warning_00053368" * (cast_expression "(code *)PTR_png_chunk_warning_00053368" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,local_5c)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x130) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" * (cast_expression "(undefined4 *)(param_1 + 0x130)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" identifier = number_literal) ;) (expression_statement "iVar4 = param_1 + 0x134;" (assignment_expression "iVar4 = param_1 + 0x134" identifier = (binary_expression "param_1 + 0x134" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x134) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x134) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x134)" * (cast_expression "(undefined4 *)(param_1 + 0x134)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x138) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x138) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x138)" * (cast_expression "(undefined4 *)(param_1 + 0x138)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x140) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x140) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x140)" * (cast_expression "(undefined4 *)(param_1 + 0x140)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;" (assignment_expression "uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3" identifier = (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x1c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x1c)" ( (binary_expression "*(int *)(param_1 + 700) << 0x1c" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) ^ number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x144) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x144) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x144)" * (cast_expression "(undefined4 *)(param_1 + 0x144)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x144)" ( (binary_expression "param_1 + 0x144" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar3 != 0) {\n    uVar1 = 0;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (expression_statement "*(bool *)(param_1 + 0x208) = uVar3 != 0;" (assignment_expression "*(bool *)(param_1 + 0x208) = uVar3 != 0" (pointer_expression "*(bool *)(param_1 + 0x208)" * (cast_expression "(bool *)(param_1 + 0x208)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) )))) = (binary_expression "uVar3 != 0" identifier != number_literal)) ;) (if_statement "if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x128) & 2) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x128) & 2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x128) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x128) & 2" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }" { (expression_statement "param_3 = PTR_s_nt_0005301c + 0x5c0;" (assignment_expression "param_3 = PTR_s_nt_0005301c + 0x5c0" identifier = (binary_expression "PTR_s_nt_0005301c + 0x5c0" identifier + number_literal)) ;) (expression_statement "uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);" (assignment_expression "uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38)" identifier = (call_expression "(*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38)" (parenthesized_expression "(*(code *)PTR_inflateInit2__0005332c)" ( (pointer_expression "*(code *)PTR_inflateInit2__0005332c" * (cast_expression "(code *)PTR_inflateInit2__0005332c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,uVar1,param_3,0x38)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" { (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" if (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x16)" ( (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) == number_literal) )) (goto_statement "goto LAB_0002ab18;" goto statement_identifier ;)) (goto_statement "goto LAB_0002aac0;" goto statement_identifier ;) })) (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x128) | 2" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) | number_literal)) ;) (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x16)" ( (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) == number_literal) )) (compound_statement "{\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }" { (labeled_statement "LAB_0002ab18:\n      uVar1 = 0;" statement_identifier : (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;)) (expression_statement "uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4)" identifier = (call_expression "(*(code *)PTR_inflateValidate_000534a0)(iVar4)" (parenthesized_expression "(*(code *)PTR_inflateValidate_000534a0)" ( (pointer_expression "*(code *)PTR_inflateValidate_000534a0" * (cast_expression "(code *)PTR_inflateValidate_000534a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (goto_statement "goto joined_r0x0002ab28;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" else (compound_statement "{\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" { (expression_statement "uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4)" identifier = (call_expression "(*(code *)PTR_inflateReset2_000534d4)(iVar4)" (parenthesized_expression "(*(code *)PTR_inflateReset2_000534d4)" ( (pointer_expression "*(code *)PTR_inflateReset2_000534d4" * (cast_expression "(code *)PTR_inflateReset2_000534d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" if (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x16)" ( (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) == number_literal) )) (goto_statement "goto LAB_0002ab18;" goto statement_identifier ;)) (labeled_statement "joined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" statement_identifier : (if_statement "if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" { (labeled_statement "LAB_0002aac0:\n      uVar1 = uVar3;" statement_identifier : (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;)) (expression_statement "FUN_000156a8(param_1);" (call_expression "FUN_000156a8(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (goto_statement "goto LAB_0002aa84;" goto statement_identifier ;) }))) }))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x130) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" * (cast_expression "(undefined4 *)(param_1 + 0x130)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_1c == *(byte **)puVar5)" ( (binary_expression "local_1c == *(byte **)puVar5" identifier == (pointer_expression "*(byte **)puVar5" * (cast_expression "(byte **)puVar5" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "pbVar2 = local_1c;" (assignment_expression "pbVar2 = local_1c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00053484;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00053484" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00053484)();" (call_expression "(*(code *)PTR___stack_chk_fail_00053484)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00053484)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00053484" * (cast_expression "(code *)PTR___stack_chk_fail_00053484" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }" if (parenthesized_expression "(*(uint *)(pbVar2 + 0x374) != 0)" ( (binary_expression "*(uint *)(pbVar2 + 0x374) != 0" (pointer_expression "*(uint *)(pbVar2 + 0x374)" * (cast_expression "(uint *)(pbVar2 + 0x374)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x374)" ( (binary_expression "pbVar2 + 0x374" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }" { (expression_statement "pcVar6 = *(code **)(puVar5 + 0x287a0);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x287a0)" identifier = (pointer_expression "*(code **)(puVar5 + 0x287a0)" * (cast_expression "(code **)(puVar5 + 0x287a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x287a0)" ( (binary_expression "puVar5 + 0x287a0" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }" if (parenthesized_expression "(uVar1 <= *(uint *)(pbVar2 + 0x378))" ( (binary_expression "uVar1 <= *(uint *)(pbVar2 + 0x378)" identifier <= (pointer_expression "*(uint *)(pbVar2 + 0x378)" * (cast_expression "(uint *)(pbVar2 + 0x378)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x378)" ( (binary_expression "pbVar2 + 0x378" identifier + number_literal) ))))) )) (compound_statement "{\n      return *(uint *)(pbVar2 + 0x374);\n    }" { (return_statement "return *(uint *)(pbVar2 + 0x374);" return (pointer_expression "*(uint *)(pbVar2 + 0x374)" * (cast_expression "(uint *)(pbVar2 + 0x374)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x374)" ( (binary_expression "pbVar2 + 0x374" identifier + number_literal) )))) ;) })) (expression_statement "pbVar2[0x374] = 0;" (assignment_expression "pbVar2[0x374] = 0" (subscript_expression "pbVar2[0x374]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x375] = 0;" (assignment_expression "pbVar2[0x375] = 0" (subscript_expression "pbVar2[0x375]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x376] = 0;" (assignment_expression "pbVar2[0x376] = 0" (subscript_expression "pbVar2[0x376]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x377] = 0;" (assignment_expression "pbVar2[0x377] = 0" (subscript_expression "pbVar2[0x377]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x378] = 0;" (assignment_expression "pbVar2[0x378] = 0" (subscript_expression "pbVar2[0x378]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x379] = 0;" (assignment_expression "pbVar2[0x379] = 0" (subscript_expression "pbVar2[0x379]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x37a] = 0;" (assignment_expression "pbVar2[0x37a] = 0" (subscript_expression "pbVar2[0x37a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x37b] = 0;" (assignment_expression "pbVar2[0x37b] = 0" (subscript_expression "pbVar2[0x37b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar3 = FUN_0001c240(pbVar2,uVar1);" (assignment_expression "uVar3 = FUN_0001c240(pbVar2,uVar1)" identifier = (call_expression "FUN_0001c240(pbVar2,uVar1)" identifier (argument_list "(pbVar2,uVar1)" ( identifier , identifier )))) ;) (if_statement "if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }" { (expression_statement "(**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);" (call_expression "(**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x28810))" ( (pointer_expression "**(code **)(puVar5 + 0x28810)" * (pointer_expression "*(code **)(puVar5 + 0x28810)" * (cast_expression "(code **)(puVar5 + 0x28810)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x28810)" ( (binary_expression "puVar5 + 0x28810" identifier + number_literal) ))))) )) (argument_list "(uVar3,0,uVar1)" ( identifier , number_literal , identifier ))) ;) (expression_statement "*(uint *)(pbVar2 + 0x374) = uVar3;" (assignment_expression "*(uint *)(pbVar2 + 0x374) = uVar3" (pointer_expression "*(uint *)(pbVar2 + 0x374)" * (cast_expression "(uint *)(pbVar2 + 0x374)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x374)" ( (binary_expression "pbVar2 + 0x374" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(pbVar2 + 0x378) = uVar1;" (assignment_expression "*(uint *)(pbVar2 + 0x378) = uVar1" (pointer_expression "*(uint *)(pbVar2 + 0x378)" * (cast_expression "(uint *)(pbVar2 + 0x378)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x378)" ( (binary_expression "pbVar2 + 0x378" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == (undefined1 *)0x2)" ( (binary_expression "param_3 == (undefined1 *)0x2" identifier == (cast_expression "(undefined1 *)0x2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }" if (parenthesized_expression "(param_3 != (undefined1 *)0x0)" ( (binary_expression "param_3 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }" { (expression_statement "(**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar5 + 0x287e4))" ( (pointer_expression "**(code **)(puVar5 + 0x287e4)" * (pointer_expression "*(code **)(puVar5 + 0x287e4)" * (cast_expression "(code **)(puVar5 + 0x287e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x287e4)" ( (binary_expression "puVar5 + 0x287e4" identifier + number_literal) ))))) )) (argument_list "(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" ( identifier , (binary_expression "*(int *)(puVar5 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar5 + 0x28498)" * (cast_expression "(int *)(puVar5 + 0x28498)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x28498)" ( (binary_expression "puVar5 + 0x28498" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar5 + 0x28998))" ( (pointer_expression "**(code **)(puVar5 + 0x28998)" * (pointer_expression "*(code **)(puVar5 + 0x28998)" * (cast_expression "(code **)(puVar5 + 0x28998)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x28998)" ( (binary_expression "puVar5 + 0x28998" identifier + number_literal) ))))) )) (argument_list "(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" ( identifier , (binary_expression "*(int *)(puVar5 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar5 + 0x28498)" * (cast_expression "(int *)(puVar5 + 0x28498)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x28498)" ( (binary_expression "puVar5 + 0x28498" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;" (assignment_expression "uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100" identifier = (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100" (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3]" (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000" (binary_expression "(uint)*pbVar2 * 0x1000000" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (binary_expression "(uint)pbVar2[1] * 0x10000" (cast_expression "(uint)pbVar2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[1]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[3]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[2] * 0x100" (cast_expression "(uint)pbVar2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[2]" identifier [ number_literal ])) * number_literal))) ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }" if (parenthesized_expression "(-1 < (int)uVar3)" ( (binary_expression "-1 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar1 = uVar3;\n  }" { (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int png_inflate_claim(png_structrp png_ptr,png_uint_32 owner)\n\n{\n  uint uVar1;\n  png_bytep ppVar2;\n  int iVar3;\n  png_const_structrp png_ptr_00;\n  int iVar4;\n  uint size;\n  png_uint_32 pVar5;\n  uint uVar6;\n  undefined1 *in_a2;\n  z_stream *pzVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  char msg [64];\n  \n  puVar8 = PTR___stack_chk_guard_000534bc;\n  png_ptr_00 = *(png_const_structrp *)PTR___stack_chk_guard_000534bc;\n  if (png_ptr->zowner != 0) {\n    in_a2 = &DAT_00000004;\n    msg._0_4_ = png_ptr->zowner;\n    png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);\n    png_ptr->zowner = 0;\n  }\n  pVar5 = png_ptr->options;\n  size = 0xf;\n  uVar1 = png_ptr->flags;\n  pzVar7 = &png_ptr->zstream;\n  (png_ptr->zstream).next_in = (Bytef *)0x0;\n  (png_ptr->zstream).avail_in = 0;\n  (png_ptr->zstream).next_out = (Bytef *)0x0;\n  uVar6 = (pVar5 << 0x1c) >> 0x1e ^ 3;\n  (png_ptr->zstream).avail_out = 0;\n  if (uVar6 != 0) {\n    size = 0;\n  }\n  png_ptr->zstream_start = uVar6 != 0;\n  if ((uVar1 & 2) == 0) {\n    in_a2 = PTR_s_nt_0005301c + 0x5c0;\n    uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);\n    if (uVar1 != 0) {\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    png_ptr->flags = png_ptr->flags | 2;\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar1 = 0;\n  png_ptr->zowner = owner;\nLAB_0002aa84:\n  if (png_ptr_00 == *(png_const_structrp *)puVar8) {\n    return uVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (png_ptr_00->read_buffer != (png_bytep)0x0) {\n    pcVar9 = *(code **)(puVar8 + 0x287a0);\n    if (size <= png_ptr_00->read_buffer_size) {\n      return (int)png_ptr_00->read_buffer;\n    }\n    png_ptr_00->read_buffer = (png_bytep)0x0;\n    png_ptr_00->read_buffer_size = 0;\n    (*pcVar9)();\n  }\n  ppVar2 = (png_bytep)png_malloc_base(png_ptr_00,size);\n  if (ppVar2 != (png_bytep)0x0) {\n    (**(code **)(puVar8 + 0x28810))(ppVar2,0,size);\n    png_ptr_00->read_buffer = ppVar2;\n    png_ptr_00->read_buffer_size = size;\n    return (int)ppVar2;\n  }\n  if (in_a2 == &DAT_00000002) {\n    return 0;\n  }\n  if (in_a2 != (undefined1 *)0x0) {\n    (**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar8 + 0x28998))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n  iVar4 = (uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100;\n  iVar3 = -1;\n  if (-1 < iVar4) {\n    iVar3 = iVar4;\n  }\n  return iVar3;\n}\n\n" (function_definition "int png_inflate_claim(png_structrp png_ptr,png_uint_32 owner)\n\n{\n  uint uVar1;\n  png_bytep ppVar2;\n  int iVar3;\n  png_const_structrp png_ptr_00;\n  int iVar4;\n  uint size;\n  png_uint_32 pVar5;\n  uint uVar6;\n  undefined1 *in_a2;\n  z_stream *pzVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  char msg [64];\n  \n  puVar8 = PTR___stack_chk_guard_000534bc;\n  png_ptr_00 = *(png_const_structrp *)PTR___stack_chk_guard_000534bc;\n  if (png_ptr->zowner != 0) {\n    in_a2 = &DAT_00000004;\n    msg._0_4_ = png_ptr->zowner;\n    png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);\n    png_ptr->zowner = 0;\n  }\n  pVar5 = png_ptr->options;\n  size = 0xf;\n  uVar1 = png_ptr->flags;\n  pzVar7 = &png_ptr->zstream;\n  (png_ptr->zstream).next_in = (Bytef *)0x0;\n  (png_ptr->zstream).avail_in = 0;\n  (png_ptr->zstream).next_out = (Bytef *)0x0;\n  uVar6 = (pVar5 << 0x1c) >> 0x1e ^ 3;\n  (png_ptr->zstream).avail_out = 0;\n  if (uVar6 != 0) {\n    size = 0;\n  }\n  png_ptr->zstream_start = uVar6 != 0;\n  if ((uVar1 & 2) == 0) {\n    in_a2 = PTR_s_nt_0005301c + 0x5c0;\n    uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);\n    if (uVar1 != 0) {\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    png_ptr->flags = png_ptr->flags | 2;\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar1 = 0;\n  png_ptr->zowner = owner;\nLAB_0002aa84:\n  if (png_ptr_00 == *(png_const_structrp *)puVar8) {\n    return uVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (png_ptr_00->read_buffer != (png_bytep)0x0) {\n    pcVar9 = *(code **)(puVar8 + 0x287a0);\n    if (size <= png_ptr_00->read_buffer_size) {\n      return (int)png_ptr_00->read_buffer;\n    }\n    png_ptr_00->read_buffer = (png_bytep)0x0;\n    png_ptr_00->read_buffer_size = 0;\n    (*pcVar9)();\n  }\n  ppVar2 = (png_bytep)png_malloc_base(png_ptr_00,size);\n  if (ppVar2 != (png_bytep)0x0) {\n    (**(code **)(puVar8 + 0x28810))(ppVar2,0,size);\n    png_ptr_00->read_buffer = ppVar2;\n    png_ptr_00->read_buffer_size = size;\n    return (int)ppVar2;\n  }\n  if (in_a2 == &DAT_00000002) {\n    return 0;\n  }\n  if (in_a2 != (undefined1 *)0x0) {\n    (**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar8 + 0x28998))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n  iVar4 = (uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100;\n  iVar3 = -1;\n  if (-1 < iVar4) {\n    iVar3 = iVar4;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "png_inflate_claim(png_structrp png_ptr,png_uint_32 owner)" identifier (parameter_list "(png_structrp png_ptr,png_uint_32 owner)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 owner" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  png_bytep ppVar2;\n  int iVar3;\n  png_const_structrp png_ptr_00;\n  int iVar4;\n  uint size;\n  png_uint_32 pVar5;\n  uint uVar6;\n  undefined1 *in_a2;\n  z_stream *pzVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  char msg [64];\n  \n  puVar8 = PTR___stack_chk_guard_000534bc;\n  png_ptr_00 = *(png_const_structrp *)PTR___stack_chk_guard_000534bc;\n  if (png_ptr->zowner != 0) {\n    in_a2 = &DAT_00000004;\n    msg._0_4_ = png_ptr->zowner;\n    png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);\n    png_ptr->zowner = 0;\n  }\n  pVar5 = png_ptr->options;\n  size = 0xf;\n  uVar1 = png_ptr->flags;\n  pzVar7 = &png_ptr->zstream;\n  (png_ptr->zstream).next_in = (Bytef *)0x0;\n  (png_ptr->zstream).avail_in = 0;\n  (png_ptr->zstream).next_out = (Bytef *)0x0;\n  uVar6 = (pVar5 << 0x1c) >> 0x1e ^ 3;\n  (png_ptr->zstream).avail_out = 0;\n  if (uVar6 != 0) {\n    size = 0;\n  }\n  png_ptr->zstream_start = uVar6 != 0;\n  if ((uVar1 & 2) == 0) {\n    in_a2 = PTR_s_nt_0005301c + 0x5c0;\n    uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);\n    if (uVar1 != 0) {\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    png_ptr->flags = png_ptr->flags | 2;\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar1 = 0;\n  png_ptr->zowner = owner;\nLAB_0002aa84:\n  if (png_ptr_00 == *(png_const_structrp *)puVar8) {\n    return uVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (png_ptr_00->read_buffer != (png_bytep)0x0) {\n    pcVar9 = *(code **)(puVar8 + 0x287a0);\n    if (size <= png_ptr_00->read_buffer_size) {\n      return (int)png_ptr_00->read_buffer;\n    }\n    png_ptr_00->read_buffer = (png_bytep)0x0;\n    png_ptr_00->read_buffer_size = 0;\n    (*pcVar9)();\n  }\n  ppVar2 = (png_bytep)png_malloc_base(png_ptr_00,size);\n  if (ppVar2 != (png_bytep)0x0) {\n    (**(code **)(puVar8 + 0x28810))(ppVar2,0,size);\n    png_ptr_00->read_buffer = ppVar2;\n    png_ptr_00->read_buffer_size = size;\n    return (int)ppVar2;\n  }\n  if (in_a2 == &DAT_00000002) {\n    return 0;\n  }\n  if (in_a2 != (undefined1 *)0x0) {\n    (**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar8 + 0x28998))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n  iVar4 = (uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100;\n  iVar3 = -1;\n  if (-1 < iVar4) {\n    iVar3 = iVar4;\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "png_bytep ppVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "png_const_structrp png_ptr_00;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint size;" type_identifier identifier ;) (declaration "png_uint_32 pVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 *in_a2;" type_identifier (pointer_declarator "*in_a2" * identifier) ;) (declaration "z_stream *pzVar7;" type_identifier (pointer_declarator "*pzVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char msg [64];" primitive_type (array_declarator "msg [64]" identifier [ number_literal ]) ;) (expression_statement "puVar8 = PTR___stack_chk_guard_000534bc;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000534bc" identifier = identifier) ;) (expression_statement "png_ptr_00 = *(png_const_structrp *)PTR___stack_chk_guard_000534bc;" (assignment_expression "png_ptr_00 = *(png_const_structrp *)PTR___stack_chk_guard_000534bc" identifier = (pointer_expression "*(png_const_structrp *)PTR___stack_chk_guard_000534bc" * (cast_expression "(png_const_structrp *)PTR___stack_chk_guard_000534bc" ( (type_descriptor "png_const_structrp *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (png_ptr->zowner != 0) {\n    in_a2 = &DAT_00000004;\n    msg._0_4_ = png_ptr->zowner;\n    png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);\n    png_ptr->zowner = 0;\n  }" if (parenthesized_expression "(png_ptr->zowner != 0)" ( (binary_expression "png_ptr->zowner != 0" (field_expression "png_ptr->zowner" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    in_a2 = &DAT_00000004;\n    msg._0_4_ = png_ptr->zowner;\n    png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);\n    png_ptr->zowner = 0;\n  }" { (expression_statement "in_a2 = &DAT_00000004;" (assignment_expression "in_a2 = &DAT_00000004" identifier = (pointer_expression "&DAT_00000004" & identifier)) ;) (expression_statement "msg._0_4_ = png_ptr->zowner;" (assignment_expression "msg._0_4_ = png_ptr->zowner" (field_expression "msg._0_4_" identifier . field_identifier) = (field_expression "png_ptr->zowner" identifier -> field_identifier)) ;) (expression_statement "png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0);" (call_expression "png_safecat(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0)" identifier (argument_list "(msg,0x40,4,PTR_s_nt_0005301c + 0x5b0)" ( identifier , number_literal , number_literal , (binary_expression "PTR_s_nt_0005301c + 0x5b0" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg);" (call_expression "(*(code *)PTR_png_chunk_warning_00053368)(png_ptr,msg)" (parenthesized_expression "(*(code *)PTR_png_chunk_warning_00053368)" ( (pointer_expression "*(code *)PTR_png_chunk_warning_00053368" * (cast_expression "(code *)PTR_png_chunk_warning_00053368" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(png_ptr,msg)" ( identifier , identifier ))) ;) (expression_statement "png_ptr->zowner = 0;" (assignment_expression "png_ptr->zowner = 0" (field_expression "png_ptr->zowner" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "pVar5 = png_ptr->options;" (assignment_expression "pVar5 = png_ptr->options" identifier = (field_expression "png_ptr->options" identifier -> field_identifier)) ;) (expression_statement "size = 0xf;" (assignment_expression "size = 0xf" identifier = number_literal) ;) (expression_statement "uVar1 = png_ptr->flags;" (assignment_expression "uVar1 = png_ptr->flags" identifier = (field_expression "png_ptr->flags" identifier -> field_identifier)) ;) (expression_statement "pzVar7 = &png_ptr->zstream;" (assignment_expression "pzVar7 = &png_ptr->zstream" identifier = (pointer_expression "&png_ptr->zstream" & (field_expression "png_ptr->zstream" identifier -> field_identifier))) ;) (expression_statement "(png_ptr->zstream).next_in = (Bytef *)0x0;" (assignment_expression "(png_ptr->zstream).next_in = (Bytef *)0x0" (field_expression "(png_ptr->zstream).next_in" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(png_ptr->zstream).avail_in = 0;" (assignment_expression "(png_ptr->zstream).avail_in = 0" (field_expression "(png_ptr->zstream).avail_in" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(png_ptr->zstream).next_out = (Bytef *)0x0;" (assignment_expression "(png_ptr->zstream).next_out = (Bytef *)0x0" (field_expression "(png_ptr->zstream).next_out" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar6 = (pVar5 << 0x1c) >> 0x1e ^ 3;" (assignment_expression "uVar6 = (pVar5 << 0x1c) >> 0x1e ^ 3" identifier = (binary_expression "(pVar5 << 0x1c) >> 0x1e ^ 3" (binary_expression "(pVar5 << 0x1c) >> 0x1e" (parenthesized_expression "(pVar5 << 0x1c)" ( (binary_expression "pVar5 << 0x1c" identifier << number_literal) )) >> number_literal) ^ number_literal)) ;) (expression_statement "(png_ptr->zstream).avail_out = 0;" (assignment_expression "(png_ptr->zstream).avail_out = 0" (field_expression "(png_ptr->zstream).avail_out" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (if_statement "if (uVar6 != 0) {\n    size = 0;\n  }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    size = 0;\n  }" { (expression_statement "size = 0;" (assignment_expression "size = 0" identifier = number_literal) ;) })) (expression_statement "png_ptr->zstream_start = uVar6 != 0;" (assignment_expression "png_ptr->zstream_start = uVar6 != 0" (field_expression "png_ptr->zstream_start" identifier -> field_identifier) = (binary_expression "uVar6 != 0" identifier != number_literal)) ;) (if_statement "if ((uVar1 & 2) == 0) {\n    in_a2 = PTR_s_nt_0005301c + 0x5c0;\n    uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);\n    if (uVar1 != 0) {\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    png_ptr->flags = png_ptr->flags | 2;\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }\n  }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    in_a2 = PTR_s_nt_0005301c + 0x5c0;\n    uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);\n    if (uVar1 != 0) {\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    png_ptr->flags = png_ptr->flags | 2;\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }\n  }" { (expression_statement "in_a2 = PTR_s_nt_0005301c + 0x5c0;" (assignment_expression "in_a2 = PTR_s_nt_0005301c + 0x5c0" identifier = (binary_expression "PTR_s_nt_0005301c + 0x5c0" identifier + number_literal)) ;) (expression_statement "uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38);" (assignment_expression "uVar1 = (*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38)" identifier = (call_expression "(*(code *)PTR_inflateInit2__0005332c)(pzVar7,size,in_a2,0x38)" (parenthesized_expression "(*(code *)PTR_inflateInit2__0005332c)" ( (pointer_expression "*(code *)PTR_inflateInit2__0005332c" * (cast_expression "(code *)PTR_inflateInit2__0005332c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pzVar7,size,in_a2,0x38)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (uVar1 != 0) {\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" { (if_statement "if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" if (parenthesized_expression "((png_ptr->options << 0x16) >> 0x1e == 3)" ( (binary_expression "(png_ptr->options << 0x16) >> 0x1e == 3" (binary_expression "(png_ptr->options << 0x16) >> 0x1e" (parenthesized_expression "(png_ptr->options << 0x16)" ( (binary_expression "png_ptr->options << 0x16" (field_expression "png_ptr->options" identifier -> field_identifier) << number_literal) )) >> number_literal) == number_literal) )) (goto_statement "goto LAB_0002ab18;" goto statement_identifier ;)) (goto_statement "goto LAB_0002aac0;" goto statement_identifier ;) })) (expression_statement "png_ptr->flags = png_ptr->flags | 2;" (assignment_expression "png_ptr->flags = png_ptr->flags | 2" (field_expression "png_ptr->flags" identifier -> field_identifier) = (binary_expression "png_ptr->flags | 2" (field_expression "png_ptr->flags" identifier -> field_identifier) | number_literal)) ;) (if_statement "if ((png_ptr->options << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }" if (parenthesized_expression "((png_ptr->options << 0x16) >> 0x1e == 3)" ( (binary_expression "(png_ptr->options << 0x16) >> 0x1e == 3" (binary_expression "(png_ptr->options << 0x16) >> 0x1e" (parenthesized_expression "(png_ptr->options << 0x16)" ( (binary_expression "png_ptr->options << 0x16" (field_expression "png_ptr->options" identifier -> field_identifier) << number_literal) )) >> number_literal) == number_literal) )) (compound_statement "{\nLAB_0002ab18:\n      size = 0;\n      uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);\n      goto joined_r0x0002ab28;\n    }" { (labeled_statement "LAB_0002ab18:\n      size = 0;" statement_identifier : (expression_statement "size = 0;" (assignment_expression "size = 0" identifier = number_literal) ;)) (expression_statement "uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7);" (assignment_expression "uVar1 = (*(code *)PTR_inflateValidate_000534a0)(pzVar7)" identifier = (call_expression "(*(code *)PTR_inflateValidate_000534a0)(pzVar7)" (parenthesized_expression "(*(code *)PTR_inflateValidate_000534a0)" ( (pointer_expression "*(code *)PTR_inflateValidate_000534a0" * (cast_expression "(code *)PTR_inflateValidate_000534a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pzVar7)" ( identifier )))) ;) (goto_statement "goto joined_r0x0002ab28;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);\n    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }\n  }" { (expression_statement "uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7);" (assignment_expression "uVar1 = (*(code *)PTR_inflateReset2_000534d4)(pzVar7)" identifier = (call_expression "(*(code *)PTR_inflateReset2_000534d4)(pzVar7)" (parenthesized_expression "(*(code *)PTR_inflateReset2_000534d4)" ( (pointer_expression "*(code *)PTR_inflateReset2_000534d4" * (cast_expression "(code *)PTR_inflateReset2_000534d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pzVar7)" ( identifier )))) ;) (if_statement "if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" if (parenthesized_expression "((png_ptr->options << 0x16) >> 0x1e == 3)" ( (binary_expression "(png_ptr->options << 0x16) >> 0x1e == 3" (binary_expression "(png_ptr->options << 0x16) >> 0x1e" (parenthesized_expression "(png_ptr->options << 0x16)" ( (binary_expression "png_ptr->options << 0x16" (field_expression "png_ptr->options" identifier -> field_identifier) << number_literal) )) >> number_literal) == number_literal) )) (goto_statement "goto LAB_0002ab18;" goto statement_identifier ;)) (labeled_statement "joined_r0x0002ab28:\n    if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }" statement_identifier : (if_statement "if (uVar1 != 0) {\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002aac0:\n      size = uVar1;\n      png_zstream_error(png_ptr,uVar1);\n      goto LAB_0002aa84;\n    }" { (labeled_statement "LAB_0002aac0:\n      size = uVar1;" statement_identifier : (expression_statement "size = uVar1;" (assignment_expression "size = uVar1" identifier = identifier) ;)) (expression_statement "png_zstream_error(png_ptr,uVar1);" (call_expression "png_zstream_error(png_ptr,uVar1)" identifier (argument_list "(png_ptr,uVar1)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_0002aa84;" goto statement_identifier ;) }))) }))) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "png_ptr->zowner = owner;" (assignment_expression "png_ptr->zowner = owner" (field_expression "png_ptr->zowner" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_0002aa84:\n  if (png_ptr_00 == *(png_const_structrp *)puVar8) {\n    return uVar1;\n  }" statement_identifier : (if_statement "if (png_ptr_00 == *(png_const_structrp *)puVar8) {\n    return uVar1;\n  }" if (parenthesized_expression "(png_ptr_00 == *(png_const_structrp *)puVar8)" ( (binary_expression "png_ptr_00 == *(png_const_structrp *)puVar8" identifier == (pointer_expression "*(png_const_structrp *)puVar8" * (cast_expression "(png_const_structrp *)puVar8" ( (type_descriptor "png_const_structrp *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) }))) (expression_statement "puVar8 = PTR___stack_chk_fail_00053484;" (assignment_expression "puVar8 = PTR___stack_chk_fail_00053484" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00053484)();" (call_expression "(*(code *)PTR___stack_chk_fail_00053484)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00053484)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00053484" * (cast_expression "(code *)PTR___stack_chk_fail_00053484" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (png_ptr_00->read_buffer != (png_bytep)0x0) {\n    pcVar9 = *(code **)(puVar8 + 0x287a0);\n    if (size <= png_ptr_00->read_buffer_size) {\n      return (int)png_ptr_00->read_buffer;\n    }\n    png_ptr_00->read_buffer = (png_bytep)0x0;\n    png_ptr_00->read_buffer_size = 0;\n    (*pcVar9)();\n  }" if (parenthesized_expression "(png_ptr_00->read_buffer != (png_bytep)0x0)" ( (binary_expression "png_ptr_00->read_buffer != (png_bytep)0x0" (field_expression "png_ptr_00->read_buffer" identifier -> field_identifier) != (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) )) (compound_statement "{\n    pcVar9 = *(code **)(puVar8 + 0x287a0);\n    if (size <= png_ptr_00->read_buffer_size) {\n      return (int)png_ptr_00->read_buffer;\n    }\n    png_ptr_00->read_buffer = (png_bytep)0x0;\n    png_ptr_00->read_buffer_size = 0;\n    (*pcVar9)();\n  }" { (expression_statement "pcVar9 = *(code **)(puVar8 + 0x287a0);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0x287a0)" identifier = (pointer_expression "*(code **)(puVar8 + 0x287a0)" * (cast_expression "(code **)(puVar8 + 0x287a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x287a0)" ( (binary_expression "puVar8 + 0x287a0" identifier + number_literal) ))))) ;) (if_statement "if (size <= png_ptr_00->read_buffer_size) {\n      return (int)png_ptr_00->read_buffer;\n    }" if (parenthesized_expression "(size <= png_ptr_00->read_buffer_size)" ( (binary_expression "size <= png_ptr_00->read_buffer_size" identifier <= (field_expression "png_ptr_00->read_buffer_size" identifier -> field_identifier)) )) (compound_statement "{\n      return (int)png_ptr_00->read_buffer;\n    }" { (return_statement "return (int)png_ptr_00->read_buffer;" return (cast_expression "(int)png_ptr_00->read_buffer" ( (type_descriptor "int" primitive_type) ) (field_expression "png_ptr_00->read_buffer" identifier -> field_identifier)) ;) })) (expression_statement "png_ptr_00->read_buffer = (png_bytep)0x0;" (assignment_expression "png_ptr_00->read_buffer = (png_bytep)0x0" (field_expression "png_ptr_00->read_buffer" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) (expression_statement "png_ptr_00->read_buffer_size = 0;" (assignment_expression "png_ptr_00->read_buffer_size = 0" (field_expression "png_ptr_00->read_buffer_size" identifier -> field_identifier) = number_literal) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "ppVar2 = (png_bytep)png_malloc_base(png_ptr_00,size);" (assignment_expression "ppVar2 = (png_bytep)png_malloc_base(png_ptr_00,size)" identifier = (cast_expression "(png_bytep)png_malloc_base(png_ptr_00,size)" ( (type_descriptor "png_bytep" type_identifier) ) (call_expression "png_malloc_base(png_ptr_00,size)" identifier (argument_list "(png_ptr_00,size)" ( identifier , identifier ))))) ;) (if_statement "if (ppVar2 != (png_bytep)0x0) {\n    (**(code **)(puVar8 + 0x28810))(ppVar2,0,size);\n    png_ptr_00->read_buffer = ppVar2;\n    png_ptr_00->read_buffer_size = size;\n    return (int)ppVar2;\n  }" if (parenthesized_expression "(ppVar2 != (png_bytep)0x0)" ( (binary_expression "ppVar2 != (png_bytep)0x0" identifier != (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar8 + 0x28810))(ppVar2,0,size);\n    png_ptr_00->read_buffer = ppVar2;\n    png_ptr_00->read_buffer_size = size;\n    return (int)ppVar2;\n  }" { (expression_statement "(**(code **)(puVar8 + 0x28810))(ppVar2,0,size);" (call_expression "(**(code **)(puVar8 + 0x28810))(ppVar2,0,size)" (parenthesized_expression "(**(code **)(puVar8 + 0x28810))" ( (pointer_expression "**(code **)(puVar8 + 0x28810)" * (pointer_expression "*(code **)(puVar8 + 0x28810)" * (cast_expression "(code **)(puVar8 + 0x28810)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x28810)" ( (binary_expression "puVar8 + 0x28810" identifier + number_literal) ))))) )) (argument_list "(ppVar2,0,size)" ( identifier , number_literal , identifier ))) ;) (expression_statement "png_ptr_00->read_buffer = ppVar2;" (assignment_expression "png_ptr_00->read_buffer = ppVar2" (field_expression "png_ptr_00->read_buffer" identifier -> field_identifier) = identifier) ;) (expression_statement "png_ptr_00->read_buffer_size = size;" (assignment_expression "png_ptr_00->read_buffer_size = size" (field_expression "png_ptr_00->read_buffer_size" identifier -> field_identifier) = identifier) ;) (return_statement "return (int)ppVar2;" return (cast_expression "(int)ppVar2" ( (type_descriptor "int" primitive_type) ) identifier) ;) })) (if_statement "if (in_a2 == &DAT_00000002) {\n    return 0;\n  }" if (parenthesized_expression "(in_a2 == &DAT_00000002)" ( (binary_expression "in_a2 == &DAT_00000002" identifier == (pointer_expression "&DAT_00000002" & identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (in_a2 != (undefined1 *)0x0) {\n    (**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n    return 0;\n  }" if (parenthesized_expression "(in_a2 != (undefined1 *)0x0)" ( (binary_expression "in_a2 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);\n    return 0;\n  }" { (expression_statement "(**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar8 + 0x287e4))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar8 + 0x287e4))" ( (pointer_expression "**(code **)(puVar8 + 0x287e4)" * (pointer_expression "*(code **)(puVar8 + 0x287e4)" * (cast_expression "(code **)(puVar8 + 0x287e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x287e4)" ( (binary_expression "puVar8 + 0x287e4" identifier + number_literal) ))))) )) (argument_list "(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8)" ( identifier , (binary_expression "*(int *)(puVar8 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar8 + 0x28498)" * (cast_expression "(int *)(puVar8 + 0x28498)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x28498)" ( (binary_expression "puVar8 + 0x28498" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(puVar8 + 0x28998))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar8 + 0x28998))(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar8 + 0x28998))" ( (pointer_expression "**(code **)(puVar8 + 0x28998)" * (pointer_expression "*(code **)(puVar8 + 0x28998)" * (cast_expression "(code **)(puVar8 + 0x28998)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x28998)" ( (binary_expression "puVar8 + 0x28998" identifier + number_literal) ))))) )) (argument_list "(png_ptr_00,*(int *)(puVar8 + 0x28498) + 0x5c8)" ( identifier , (binary_expression "*(int *)(puVar8 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar8 + 0x28498)" * (cast_expression "(int *)(puVar8 + 0x28498)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x28498)" ( (binary_expression "puVar8 + 0x28498" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "iVar4 = (uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100;" (assignment_expression "iVar4 = (uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100" identifier = (binary_expression "(uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100" (binary_expression "(uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3)" (binary_expression "(uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +\n          (uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000" (binary_expression "(uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000" (binary_expression "(uint)*(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" & (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" (subscript_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0]" (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf" (subscript_expression "png_ptr_00->jmp_buf_local[0]" (field_expression "png_ptr_00->jmp_buf_local" identifier -> field_identifier) [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier)))) * number_literal) + (binary_expression "(uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000" (binary_expression "(uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1)" ( (binary_expression "(int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 1" (cast_expression "(int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" & (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" (subscript_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0]" (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf" (subscript_expression "png_ptr_00->jmp_buf_local[0]" (field_expression "png_ptr_00->jmp_buf_local" identifier -> field_identifier) [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) + number_literal) )))) * number_literal)) + (binary_expression "(uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3)" ( (binary_expression "(int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 3" (cast_expression "(int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" & (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" (subscript_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0]" (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf" (subscript_expression "png_ptr_00->jmp_buf_local[0]" (field_expression "png_ptr_00->jmp_buf_local" identifier -> field_identifier) [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) + number_literal) ))))) + (binary_expression "(uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100" (binary_expression "(uint)*(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2)" ( (binary_expression "(int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc + 2" (cast_expression "(int)&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" & (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0].__pc" (subscript_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf[0]" (field_expression "png_ptr_00->jmp_buf_local[0].__jmpbuf" (subscript_expression "png_ptr_00->jmp_buf_local[0]" (field_expression "png_ptr_00->jmp_buf_local" identifier -> field_identifier) [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) + number_literal) )))) * number_literal))) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (-1 < iVar4) {\n    iVar3 = iVar4;\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar3 = iVar4;\n  }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "uint FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int local_5c [16];" primitive_type (array_declarator "local_5c [16]" identifier [ number_literal ]) ;) (declaration "byte *local_1c;" type_identifier (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000534bc;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000534bc" identifier = identifier) ;) (expression_statement "local_1c = *(byte **)PTR___stack_chk_guard_000534bc;" (assignment_expression "local_1c = *(byte **)PTR___stack_chk_guard_000534bc" identifier = (pointer_expression "*(byte **)PTR___stack_chk_guard_000534bc" * (cast_expression "(byte **)PTR___stack_chk_guard_000534bc" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x130) != 0)" ( (binary_expression "*(int *)(param_1 + 0x130) != 0" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }" { (expression_statement "param_3 = &DAT_00000004;" (assignment_expression "param_3 = &DAT_00000004" identifier = (pointer_expression "&DAT_00000004" & identifier)) ;) (expression_statement "local_5c[0] = *(int *)(param_1 + 0x130);" (assignment_expression "local_5c[0] = *(int *)(param_1 + 0x130)" (subscript_expression "local_5c[0]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) ))))) ;) (expression_statement "FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);" (call_expression "FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0)" identifier (argument_list "(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0)" ( identifier , number_literal , number_literal , (binary_expression "PTR_s_nt_0005301c + 0x5b0" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);" (call_expression "(*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c)" (parenthesized_expression "(*(code *)PTR_png_chunk_warning_00053368)" ( (pointer_expression "*(code *)PTR_png_chunk_warning_00053368" * (cast_expression "(code *)PTR_png_chunk_warning_00053368" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,local_5c)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x130) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" * (cast_expression "(undefined4 *)(param_1 + 0x130)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" identifier = number_literal) ;) (expression_statement "iVar4 = param_1 + 0x134;" (assignment_expression "iVar4 = param_1 + 0x134" identifier = (binary_expression "param_1 + 0x134" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x134) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x134) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x134)" * (cast_expression "(undefined4 *)(param_1 + 0x134)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x138) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x138) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x138)" * (cast_expression "(undefined4 *)(param_1 + 0x138)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x140) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x140) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x140)" * (cast_expression "(undefined4 *)(param_1 + 0x140)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;" (assignment_expression "uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3" identifier = (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x1c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x1c)" ( (binary_expression "*(int *)(param_1 + 700) << 0x1c" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) ^ number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x144) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x144) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x144)" * (cast_expression "(undefined4 *)(param_1 + 0x144)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x144)" ( (binary_expression "param_1 + 0x144" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar3 != 0) {\n    uVar1 = 0;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (expression_statement "*(bool *)(param_1 + 0x208) = uVar3 != 0;" (assignment_expression "*(bool *)(param_1 + 0x208) = uVar3 != 0" (pointer_expression "*(bool *)(param_1 + 0x208)" * (cast_expression "(bool *)(param_1 + 0x208)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x208)" ( (binary_expression "param_1 + 0x208" identifier + number_literal) )))) = (binary_expression "uVar3 != 0" identifier != number_literal)) ;) (if_statement "if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x128) & 2) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x128) & 2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x128) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x128) & 2" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }" { (expression_statement "param_3 = PTR_s_nt_0005301c + 0x5c0;" (assignment_expression "param_3 = PTR_s_nt_0005301c + 0x5c0" identifier = (binary_expression "PTR_s_nt_0005301c + 0x5c0" identifier + number_literal)) ;) (expression_statement "uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);" (assignment_expression "uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38)" identifier = (call_expression "(*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38)" (parenthesized_expression "(*(code *)PTR_inflateInit2__0005332c)" ( (pointer_expression "*(code *)PTR_inflateInit2__0005332c" * (cast_expression "(code *)PTR_inflateInit2__0005332c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,uVar1,param_3,0x38)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" { (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" if (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x16)" ( (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) == number_literal) )) (goto_statement "goto LAB_0002ab18;" goto statement_identifier ;)) (goto_statement "goto LAB_0002aac0;" goto statement_identifier ;) })) (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x128) | 2" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) | number_literal)) ;) (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x16)" ( (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) == number_literal) )) (compound_statement "{\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }" { (labeled_statement "LAB_0002ab18:\n      uVar1 = 0;" statement_identifier : (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;)) (expression_statement "uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4)" identifier = (call_expression "(*(code *)PTR_inflateValidate_000534a0)(iVar4)" (parenthesized_expression "(*(code *)PTR_inflateValidate_000534a0)" ( (pointer_expression "*(code *)PTR_inflateValidate_000534a0" * (cast_expression "(code *)PTR_inflateValidate_000534a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (goto_statement "goto joined_r0x0002ab28;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" else (compound_statement "{\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" { (expression_statement "uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4)" identifier = (call_expression "(*(code *)PTR_inflateReset2_000534d4)(iVar4)" (parenthesized_expression "(*(code *)PTR_inflateReset2_000534d4)" ( (pointer_expression "*(code *)PTR_inflateReset2_000534d4" * (cast_expression "(code *)PTR_inflateReset2_000534d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" if (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 700) << 0x16)" ( (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" * (cast_expression "(int *)(param_1 + 700)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 700)" ( (binary_expression "param_1 + 700" identifier + number_literal) )))) << number_literal) ))) >> number_literal) == number_literal) )) (goto_statement "goto LAB_0002ab18;" goto statement_identifier ;)) (labeled_statement "joined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" statement_identifier : (if_statement "if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" { (labeled_statement "LAB_0002aac0:\n      uVar1 = uVar3;" statement_identifier : (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;)) (expression_statement "FUN_000156a8(param_1);" (call_expression "FUN_000156a8(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (goto_statement "goto LAB_0002aa84;" goto statement_identifier ;) }))) }))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x130) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" * (cast_expression "(undefined4 *)(param_1 + 0x130)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_1c == *(byte **)puVar5)" ( (binary_expression "local_1c == *(byte **)puVar5" identifier == (pointer_expression "*(byte **)puVar5" * (cast_expression "(byte **)puVar5" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "pbVar2 = local_1c;" (assignment_expression "pbVar2 = local_1c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00053484;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00053484" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00053484)();" (call_expression "(*(code *)PTR___stack_chk_fail_00053484)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00053484)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00053484" * (cast_expression "(code *)PTR___stack_chk_fail_00053484" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }" if (parenthesized_expression "(*(uint *)(pbVar2 + 0x374) != 0)" ( (binary_expression "*(uint *)(pbVar2 + 0x374) != 0" (pointer_expression "*(uint *)(pbVar2 + 0x374)" * (cast_expression "(uint *)(pbVar2 + 0x374)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x374)" ( (binary_expression "pbVar2 + 0x374" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }" { (expression_statement "pcVar6 = *(code **)(puVar5 + 0x287a0);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x287a0)" identifier = (pointer_expression "*(code **)(puVar5 + 0x287a0)" * (cast_expression "(code **)(puVar5 + 0x287a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x287a0)" ( (binary_expression "puVar5 + 0x287a0" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }" if (parenthesized_expression "(uVar1 <= *(uint *)(pbVar2 + 0x378))" ( (binary_expression "uVar1 <= *(uint *)(pbVar2 + 0x378)" identifier <= (pointer_expression "*(uint *)(pbVar2 + 0x378)" * (cast_expression "(uint *)(pbVar2 + 0x378)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x378)" ( (binary_expression "pbVar2 + 0x378" identifier + number_literal) ))))) )) (compound_statement "{\n      return *(uint *)(pbVar2 + 0x374);\n    }" { (return_statement "return *(uint *)(pbVar2 + 0x374);" return (pointer_expression "*(uint *)(pbVar2 + 0x374)" * (cast_expression "(uint *)(pbVar2 + 0x374)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x374)" ( (binary_expression "pbVar2 + 0x374" identifier + number_literal) )))) ;) })) (expression_statement "pbVar2[0x374] = 0;" (assignment_expression "pbVar2[0x374] = 0" (subscript_expression "pbVar2[0x374]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x375] = 0;" (assignment_expression "pbVar2[0x375] = 0" (subscript_expression "pbVar2[0x375]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x376] = 0;" (assignment_expression "pbVar2[0x376] = 0" (subscript_expression "pbVar2[0x376]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x377] = 0;" (assignment_expression "pbVar2[0x377] = 0" (subscript_expression "pbVar2[0x377]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x378] = 0;" (assignment_expression "pbVar2[0x378] = 0" (subscript_expression "pbVar2[0x378]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x379] = 0;" (assignment_expression "pbVar2[0x379] = 0" (subscript_expression "pbVar2[0x379]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x37a] = 0;" (assignment_expression "pbVar2[0x37a] = 0" (subscript_expression "pbVar2[0x37a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar2[0x37b] = 0;" (assignment_expression "pbVar2[0x37b] = 0" (subscript_expression "pbVar2[0x37b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar3 = FUN_0001c240(pbVar2,uVar1);" (assignment_expression "uVar3 = FUN_0001c240(pbVar2,uVar1)" identifier = (call_expression "FUN_0001c240(pbVar2,uVar1)" identifier (argument_list "(pbVar2,uVar1)" ( identifier , identifier )))) ;) (if_statement "if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }" { (expression_statement "(**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);" (call_expression "(**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x28810))" ( (pointer_expression "**(code **)(puVar5 + 0x28810)" * (pointer_expression "*(code **)(puVar5 + 0x28810)" * (cast_expression "(code **)(puVar5 + 0x28810)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x28810)" ( (binary_expression "puVar5 + 0x28810" identifier + number_literal) ))))) )) (argument_list "(uVar3,0,uVar1)" ( identifier , number_literal , identifier ))) ;) (expression_statement "*(uint *)(pbVar2 + 0x374) = uVar3;" (assignment_expression "*(uint *)(pbVar2 + 0x374) = uVar3" (pointer_expression "*(uint *)(pbVar2 + 0x374)" * (cast_expression "(uint *)(pbVar2 + 0x374)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x374)" ( (binary_expression "pbVar2 + 0x374" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(pbVar2 + 0x378) = uVar1;" (assignment_expression "*(uint *)(pbVar2 + 0x378) = uVar1" (pointer_expression "*(uint *)(pbVar2 + 0x378)" * (cast_expression "(uint *)(pbVar2 + 0x378)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x378)" ( (binary_expression "pbVar2 + 0x378" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == (undefined1 *)0x2)" ( (binary_expression "param_3 == (undefined1 *)0x2" identifier == (cast_expression "(undefined1 *)0x2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }" if (parenthesized_expression "(param_3 != (undefined1 *)0x0)" ( (binary_expression "param_3 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }" { (expression_statement "(**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar5 + 0x287e4))" ( (pointer_expression "**(code **)(puVar5 + 0x287e4)" * (pointer_expression "*(code **)(puVar5 + 0x287e4)" * (cast_expression "(code **)(puVar5 + 0x287e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x287e4)" ( (binary_expression "puVar5 + 0x287e4" identifier + number_literal) ))))) )) (argument_list "(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" ( identifier , (binary_expression "*(int *)(puVar5 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar5 + 0x28498)" * (cast_expression "(int *)(puVar5 + 0x28498)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x28498)" ( (binary_expression "puVar5 + 0x28498" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar5 + 0x28998))" ( (pointer_expression "**(code **)(puVar5 + 0x28998)" * (pointer_expression "*(code **)(puVar5 + 0x28998)" * (cast_expression "(code **)(puVar5 + 0x28998)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x28998)" ( (binary_expression "puVar5 + 0x28998" identifier + number_literal) ))))) )) (argument_list "(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" ( identifier , (binary_expression "*(int *)(puVar5 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar5 + 0x28498)" * (cast_expression "(int *)(puVar5 + 0x28498)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x28498)" ( (binary_expression "puVar5 + 0x28498" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;" (assignment_expression "uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100" identifier = (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100" (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3]" (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000" (binary_expression "(uint)*pbVar2 * 0x1000000" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (binary_expression "(uint)pbVar2[1] * 0x10000" (cast_expression "(uint)pbVar2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[1]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[3]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[2] * 0x100" (cast_expression "(uint)pbVar2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[2]" identifier [ number_literal ])) * number_literal))) ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }" if (parenthesized_expression "(-1 < (int)uVar3)" ( (binary_expression "-1 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar1 = uVar3;\n  }" { (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , 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 , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) >> LIT) ^ LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT != LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) >> LIT) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) >> LIT) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 ( IDENT )))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (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 (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) >> LIT) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) }))) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_0002a9cc(int param_1,undefined4 param_2,undefined1 *param_3)" (identifier "FUN_0002a9cc") (parameter_list "(int param_1,undefined4 param_2,undefined1 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int local_5c [16];\n  byte *local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000534bc;\n  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;\n  if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }\n  uVar1 = 0xf;\n  iVar4 = param_1 + 0x134;\n  *(undefined4 *)(param_1 + 0x134) = 0;\n  *(undefined4 *)(param_1 + 0x138) = 0;\n  *(undefined4 *)(param_1 + 0x140) = 0;\n  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;\n  *(undefined4 *)(param_1 + 0x144) = 0;\n  if (uVar3 != 0) {\n    uVar1 = 0;\n  }\n  *(bool *)(param_1 + 0x208) = uVar3 != 0;\n  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }\n  uVar3 = 0;\n  *(undefined4 *)(param_1 + 0x130) = param_2;\nLAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }\n  pbVar2 = local_1c;\n  puVar5 = PTR___stack_chk_fail_00053484;\n  (*(code *)PTR___stack_chk_fail_00053484)();\n  if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }\n  uVar3 = FUN_0001c240(pbVar2,uVar1);\n  if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }\n  if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }\n  if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }\n  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;\n  uVar1 = 0xffffffff;\n  if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int local_5c [16];" (primitive_type "int") (array_declarator "local_5c [16]" (identifier "local_5c") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "byte *local_1c;" (type_identifier "byte") (pointer_declarator "*local_1c" (* "*") (identifier "local_1c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_000534bc;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000534bc" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_000534bc")) (; ";")) (expression_statement "local_1c = *(byte **)PTR___stack_chk_guard_000534bc;" (assignment_expression "local_1c = *(byte **)PTR___stack_chk_guard_000534bc" (identifier "local_1c") (= "=") (pointer_expression "*(byte **)PTR___stack_chk_guard_000534bc" (* "*") (cast_expression "(byte **)PTR___stack_chk_guard_000534bc" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000534bc")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x130) != 0) {\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x130) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x130) != 0" (pointer_expression "*(int *)(param_1 + 0x130)" (* "*") (cast_expression "(int *)(param_1 + 0x130)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = &DAT_00000004;\n    local_5c[0] = *(int *)(param_1 + 0x130);\n    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);\n    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);\n    *(undefined4 *)(param_1 + 0x130) = 0;\n  }" ({ "{") (expression_statement "param_3 = &DAT_00000004;" (assignment_expression "param_3 = &DAT_00000004" (identifier "param_3") (= "=") (pointer_expression "&DAT_00000004" (& "&") (identifier "DAT_00000004"))) (; ";")) (expression_statement "local_5c[0] = *(int *)(param_1 + 0x130);" (assignment_expression "local_5c[0] = *(int *)(param_1 + 0x130)" (subscript_expression "local_5c[0]" (identifier "local_5c") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(int *)(param_1 + 0x130)" (* "*") (cast_expression "(int *)(param_1 + 0x130)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")"))))) (; ";")) (expression_statement "FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);" (call_expression "FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0)" (identifier "FUN_000198e4") (argument_list "(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0)" (( "(") (identifier "local_5c") (, ",") (number_literal "0x40") (, ",") (number_literal "4") (, ",") (binary_expression "PTR_s_nt_0005301c + 0x5b0" (identifier "PTR_s_nt_0005301c") (+ "+") (number_literal "0x5b0")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);" (call_expression "(*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c)" (parenthesized_expression "(*(code *)PTR_png_chunk_warning_00053368)" (( "(") (pointer_expression "*(code *)PTR_png_chunk_warning_00053368" (* "*") (cast_expression "(code *)PTR_png_chunk_warning_00053368" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_png_chunk_warning_00053368"))) () ")")) (argument_list "(param_1,local_5c)" (( "(") (identifier "param_1") (, ",") (identifier "local_5c") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x130) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x130)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar1 = 0xf;" (assignment_expression "uVar1 = 0xf" (identifier "uVar1") (= "=") (number_literal "0xf")) (; ";")) (expression_statement "iVar4 = param_1 + 0x134;" (assignment_expression "iVar4 = param_1 + 0x134" (identifier "iVar4") (= "=") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x134) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x134) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x134)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x134)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x138) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x138) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x138)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x138)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x138)" (( "(") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x140) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x140) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x140)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x140)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;" (assignment_expression "uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3" (identifier "uVar3") (= "=") (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x1c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 700) << 0x1c)" (( "(") (binary_expression "*(int *)(param_1 + 700) << 0x1c" (pointer_expression "*(int *)(param_1 + 700)" (* "*") (cast_expression "(int *)(param_1 + 700)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 700)" (( "(") (binary_expression "param_1 + 700" (identifier "param_1") (+ "+") (number_literal "700")) () ")")))) (<< "<<") (number_literal "0x1c")) () ")"))) (>> ">>") (number_literal "0x1e")) (^ "^") (number_literal "3"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x144) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x144) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x144)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x144)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x144)" (( "(") (binary_expression "param_1 + 0x144" (identifier "param_1") (+ "+") (number_literal "0x144")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar3 != 0) {\n    uVar1 = 0;\n  }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*(bool *)(param_1 + 0x208) = uVar3 != 0;" (assignment_expression "*(bool *)(param_1 + 0x208) = uVar3 != 0" (pointer_expression "*(bool *)(param_1 + 0x208)" (* "*") (cast_expression "(bool *)(param_1 + 0x208)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x208)" (( "(") (binary_expression "param_1 + 0x208" (identifier "param_1") (+ "+") (number_literal "0x208")) () ")")))) (= "=") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0"))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x128) & 2) == 0) {\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }\n  else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x128) & 2) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x128) & 2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x128) & 2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x128) & 2" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = PTR_s_nt_0005301c + 0x5c0;\n    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);\n    if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }\n  }" ({ "{") (expression_statement "param_3 = PTR_s_nt_0005301c + 0x5c0;" (assignment_expression "param_3 = PTR_s_nt_0005301c + 0x5c0" (identifier "param_3") (= "=") (binary_expression "PTR_s_nt_0005301c + 0x5c0" (identifier "PTR_s_nt_0005301c") (+ "+") (number_literal "0x5c0"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);" (assignment_expression "uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38)" (parenthesized_expression "(*(code *)PTR_inflateInit2__0005332c)" (( "(") (pointer_expression "*(code *)PTR_inflateInit2__0005332c" (* "*") (cast_expression "(code *)PTR_inflateInit2__0005332c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_inflateInit2__0005332c"))) () ")")) (argument_list "(iVar4,uVar1,param_3,0x38)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar1") (, ",") (identifier "param_3") (, ",") (number_literal "0x38") () ")")))) (; ";")) (if_statement "if (uVar3 != 0) {\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\n      goto LAB_0002aac0;\n    }" ({ "{") (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" (if "if") (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" (( "(") (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 700) << 0x16)" (( "(") (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" (* "*") (cast_expression "(int *)(param_1 + 700)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 700)" (( "(") (binary_expression "param_1 + 700" (identifier "param_1") (+ "+") (number_literal "700")) () ")")))) (<< "<<") (number_literal "0x16")) () ")"))) (>> ">>") (number_literal "0x1e")) (== "==") (number_literal "3")) () ")")) (goto_statement "goto LAB_0002ab18;" (goto "goto") (statement_identifier "LAB_0002ab18") (; ";"))) (goto_statement "goto LAB_0002aac0;" (goto "goto") (statement_identifier "LAB_0002aac0") (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x128) | 2" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (| "|") (number_literal "2"))) (; ";")) (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" (( "(") (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 700) << 0x16)" (( "(") (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" (* "*") (cast_expression "(int *)(param_1 + 700)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 700)" (( "(") (binary_expression "param_1 + 700" (identifier "param_1") (+ "+") (number_literal "700")) () ")")))) (<< "<<") (number_literal "0x16")) () ")"))) (>> ">>") (number_literal "0x1e")) (== "==") (number_literal "3")) () ")")) (compound_statement "{\nLAB_0002ab18:\n      uVar1 = 0;\n      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);\n      goto joined_r0x0002ab28;\n    }" ({ "{") (labeled_statement "LAB_0002ab18:\n      uVar1 = 0;" (statement_identifier "LAB_0002ab18") (: ":") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";"))) (expression_statement "uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_inflateValidate_000534a0)(iVar4)" (parenthesized_expression "(*(code *)PTR_inflateValidate_000534a0)" (( "(") (pointer_expression "*(code *)PTR_inflateValidate_000534a0" (* "*") (cast_expression "(code *)PTR_inflateValidate_000534a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_inflateValidate_000534a0"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (goto_statement "goto joined_r0x0002ab28;" (goto "goto") (statement_identifier "joined_r0x0002ab28") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" (else "else") (compound_statement "{\n    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);\n    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;\njoined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_inflateReset2_000534d4)(iVar4)" (parenthesized_expression "(*(code *)PTR_inflateReset2_000534d4)" (( "(") (pointer_expression "*(code *)PTR_inflateReset2_000534d4" (* "*") (cast_expression "(code *)PTR_inflateReset2_000534d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_inflateReset2_000534d4"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;" (if "if") (parenthesized_expression "((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3)" (( "(") (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3" (binary_expression "(uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e" (call_expression "(uint)(*(int *)(param_1 + 700) << 0x16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 700) << 0x16)" (( "(") (binary_expression "*(int *)(param_1 + 700) << 0x16" (pointer_expression "*(int *)(param_1 + 700)" (* "*") (cast_expression "(int *)(param_1 + 700)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 700)" (( "(") (binary_expression "param_1 + 700" (identifier "param_1") (+ "+") (number_literal "700")) () ")")))) (<< "<<") (number_literal "0x16")) () ")"))) (>> ">>") (number_literal "0x1e")) (== "==") (number_literal "3")) () ")")) (goto_statement "goto LAB_0002ab18;" (goto "goto") (statement_identifier "LAB_0002ab18") (; ";"))) (labeled_statement "joined_r0x0002ab28:\n    if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" (statement_identifier "joined_r0x0002ab28") (: ":") (if_statement "if (uVar3 != 0) {\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0002aac0:\n      uVar1 = uVar3;\n      FUN_000156a8(param_1);\n      goto LAB_0002aa84;\n    }" ({ "{") (labeled_statement "LAB_0002aac0:\n      uVar1 = uVar3;" (statement_identifier "LAB_0002aac0") (: ":") (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" (identifier "uVar1") (= "=") (identifier "uVar3")) (; ";"))) (expression_statement "FUN_000156a8(param_1);" (call_expression "FUN_000156a8(param_1)" (identifier "FUN_000156a8") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_0002aa84;" (goto "goto") (statement_identifier "LAB_0002aa84") (; ";")) (} "}")))) (} "}")))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x130) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x130)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (labeled_statement "LAB_0002aa84:\n  if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }" (statement_identifier "LAB_0002aa84") (: ":") (if_statement "if (local_1c == *(byte **)puVar5) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_1c == *(byte **)puVar5)" (( "(") (binary_expression "local_1c == *(byte **)puVar5" (identifier "local_1c") (== "==") (pointer_expression "*(byte **)puVar5" (* "*") (cast_expression "(byte **)puVar5" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))) (expression_statement "pbVar2 = local_1c;" (assignment_expression "pbVar2 = local_1c" (identifier "pbVar2") (= "=") (identifier "local_1c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_00053484;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00053484" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_00053484")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00053484)();" (call_expression "(*(code *)PTR___stack_chk_fail_00053484)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00053484)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00053484" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00053484" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00053484"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(uint *)(pbVar2 + 0x374) != 0) {\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }" (if "if") (parenthesized_expression "(*(uint *)(pbVar2 + 0x374) != 0)" (( "(") (binary_expression "*(uint *)(pbVar2 + 0x374) != 0" (pointer_expression "*(uint *)(pbVar2 + 0x374)" (* "*") (cast_expression "(uint *)(pbVar2 + 0x374)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x374)" (( "(") (binary_expression "pbVar2 + 0x374" (identifier "pbVar2") (+ "+") (number_literal "0x374")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar6 = *(code **)(puVar5 + 0x287a0);\n    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }\n    pbVar2[0x374] = 0;\n    pbVar2[0x375] = 0;\n    pbVar2[0x376] = 0;\n    pbVar2[0x377] = 0;\n    pbVar2[0x378] = 0;\n    pbVar2[0x379] = 0;\n    pbVar2[0x37a] = 0;\n    pbVar2[0x37b] = 0;\n    (*pcVar6)();\n  }" ({ "{") (expression_statement "pcVar6 = *(code **)(puVar5 + 0x287a0);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x287a0)" (identifier "pcVar6") (= "=") (pointer_expression "*(code **)(puVar5 + 0x287a0)" (* "*") (cast_expression "(code **)(puVar5 + 0x287a0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x287a0)" (( "(") (binary_expression "puVar5 + 0x287a0" (identifier "puVar5") (+ "+") (number_literal "0x287a0")) () ")"))))) (; ";")) (if_statement "if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {\n      return *(uint *)(pbVar2 + 0x374);\n    }" (if "if") (parenthesized_expression "(uVar1 <= *(uint *)(pbVar2 + 0x378))" (( "(") (binary_expression "uVar1 <= *(uint *)(pbVar2 + 0x378)" (identifier "uVar1") (<= "<=") (pointer_expression "*(uint *)(pbVar2 + 0x378)" (* "*") (cast_expression "(uint *)(pbVar2 + 0x378)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x378)" (( "(") (binary_expression "pbVar2 + 0x378" (identifier "pbVar2") (+ "+") (number_literal "0x378")) () ")"))))) () ")")) (compound_statement "{\n      return *(uint *)(pbVar2 + 0x374);\n    }" ({ "{") (return_statement "return *(uint *)(pbVar2 + 0x374);" (return "return") (pointer_expression "*(uint *)(pbVar2 + 0x374)" (* "*") (cast_expression "(uint *)(pbVar2 + 0x374)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x374)" (( "(") (binary_expression "pbVar2 + 0x374" (identifier "pbVar2") (+ "+") (number_literal "0x374")) () ")")))) (; ";")) (} "}"))) (expression_statement "pbVar2[0x374] = 0;" (assignment_expression "pbVar2[0x374] = 0" (subscript_expression "pbVar2[0x374]" (identifier "pbVar2") ([ "[") (number_literal "0x374") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x375] = 0;" (assignment_expression "pbVar2[0x375] = 0" (subscript_expression "pbVar2[0x375]" (identifier "pbVar2") ([ "[") (number_literal "0x375") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x376] = 0;" (assignment_expression "pbVar2[0x376] = 0" (subscript_expression "pbVar2[0x376]" (identifier "pbVar2") ([ "[") (number_literal "0x376") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x377] = 0;" (assignment_expression "pbVar2[0x377] = 0" (subscript_expression "pbVar2[0x377]" (identifier "pbVar2") ([ "[") (number_literal "0x377") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x378] = 0;" (assignment_expression "pbVar2[0x378] = 0" (subscript_expression "pbVar2[0x378]" (identifier "pbVar2") ([ "[") (number_literal "0x378") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x379] = 0;" (assignment_expression "pbVar2[0x379] = 0" (subscript_expression "pbVar2[0x379]" (identifier "pbVar2") ([ "[") (number_literal "0x379") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x37a] = 0;" (assignment_expression "pbVar2[0x37a] = 0" (subscript_expression "pbVar2[0x37a]" (identifier "pbVar2") ([ "[") (number_literal "0x37a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2[0x37b] = 0;" (assignment_expression "pbVar2[0x37b] = 0" (subscript_expression "pbVar2[0x37b]" (identifier "pbVar2") ([ "[") (number_literal "0x37b") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_0001c240(pbVar2,uVar1);" (assignment_expression "uVar3 = FUN_0001c240(pbVar2,uVar1)" (identifier "uVar3") (= "=") (call_expression "FUN_0001c240(pbVar2,uVar1)" (identifier "FUN_0001c240") (argument_list "(pbVar2,uVar1)" (( "(") (identifier "pbVar2") (, ",") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (uVar3 != 0) {\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);\n    *(uint *)(pbVar2 + 0x374) = uVar3;\n    *(uint *)(pbVar2 + 0x378) = uVar1;\n    return uVar3;\n  }" ({ "{") (expression_statement "(**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);" (call_expression "(**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x28810))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x28810)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x28810)" (* "*") (cast_expression "(code **)(puVar5 + 0x28810)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x28810)" (( "(") (binary_expression "puVar5 + 0x28810" (identifier "puVar5") (+ "+") (number_literal "0x28810")) () ")"))))) () ")")) (argument_list "(uVar3,0,uVar1)" (( "(") (identifier "uVar3") (, ",") (number_literal "0") (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "*(uint *)(pbVar2 + 0x374) = uVar3;" (assignment_expression "*(uint *)(pbVar2 + 0x374) = uVar3" (pointer_expression "*(uint *)(pbVar2 + 0x374)" (* "*") (cast_expression "(uint *)(pbVar2 + 0x374)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x374)" (( "(") (binary_expression "pbVar2 + 0x374" (identifier "pbVar2") (+ "+") (number_literal "0x374")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(uint *)(pbVar2 + 0x378) = uVar1;" (assignment_expression "*(uint *)(pbVar2 + 0x378) = uVar1" (pointer_expression "*(uint *)(pbVar2 + 0x378)" (* "*") (cast_expression "(uint *)(pbVar2 + 0x378)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x378)" (( "(") (binary_expression "pbVar2 + 0x378" (identifier "pbVar2") (+ "+") (number_literal "0x378")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (if_statement "if (param_3 == (undefined1 *)0x2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == (undefined1 *)0x2)" (( "(") (binary_expression "param_3 == (undefined1 *)0x2" (identifier "param_3") (== "==") (cast_expression "(undefined1 *)0x2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 != (undefined1 *)0x0) {\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 != (undefined1 *)0x0)" (( "(") (binary_expression "param_3 != (undefined1 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);\n    return 0;\n  }" ({ "{") (expression_statement "(**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar5 + 0x287e4))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x287e4)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x287e4)" (* "*") (cast_expression "(code **)(puVar5 + 0x287e4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x287e4)" (( "(") (binary_expression "puVar5 + 0x287e4" (identifier "puVar5") (+ "+") (number_literal "0x287e4")) () ")"))))) () ")")) (argument_list "(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (( "(") (identifier "pbVar2") (, ",") (binary_expression "*(int *)(puVar5 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar5 + 0x28498)" (* "*") (cast_expression "(int *)(puVar5 + 0x28498)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x28498)" (( "(") (binary_expression "puVar5 + 0x28498" (identifier "puVar5") (+ "+") (number_literal "0x28498")) () ")")))) (+ "+") (number_literal "0x5c8")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);" (call_expression "(**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (parenthesized_expression "(**(code **)(puVar5 + 0x28998))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x28998)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x28998)" (* "*") (cast_expression "(code **)(puVar5 + 0x28998)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x28998)" (( "(") (binary_expression "puVar5 + 0x28998" (identifier "puVar5") (+ "+") (number_literal "0x28998")) () ")"))))) () ")")) (argument_list "(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8)" (( "(") (identifier "pbVar2") (, ",") (binary_expression "*(int *)(puVar5 + 0x28498) + 0x5c8" (pointer_expression "*(int *)(puVar5 + 0x28498)" (* "*") (cast_expression "(int *)(puVar5 + 0x28498)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x28498)" (( "(") (binary_expression "puVar5 + 0x28498" (identifier "puVar5") (+ "+") (number_literal "0x28498")) () ")")))) (+ "+") (number_literal "0x5c8")) () ")"))) (; ";")) (expression_statement "uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100;" (assignment_expression "uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +\n          (uint)pbVar2[2] * 0x100" (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3]" (binary_expression "(uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000" (binary_expression "(uint)*pbVar2 * 0x1000000" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "0x1000000")) (+ "+") (binary_expression "(uint)pbVar2[1] * 0x10000" (cast_expression "(uint)pbVar2[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[1]" (identifier "pbVar2") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "0x10000"))) (+ "+") (cast_expression "(uint)pbVar2[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[3]" (identifier "pbVar2") ([ "[") (number_literal "3") (] "]")))) (+ "+") (binary_expression "(uint)pbVar2[2] * 0x100" (cast_expression "(uint)pbVar2[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[2]" (identifier "pbVar2") ([ "[") (number_literal "2") (] "]"))) (* "*") (number_literal "0x100")))) (; ";")) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (-1 < (int)uVar3) {\n    uVar1 = uVar3;\n  }" (if "if") (parenthesized_expression "(-1 < (int)uVar3)" (( "(") (binary_expression "-1 < (int)uVar3" (number_literal "-1") (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (compound_statement "{\n    uVar1 = uVar3;\n  }" ({ "{") (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" (identifier "uVar1") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 png_ptr,type_2 owner)

{
  type_3 var_5;
  type_4 var_11;
  int iVar3;
  type_5 var_7;
  int var_13;
  type_3 var_9;
  type_2 var_3;
  type_3 var_4;
  type_6 *var_12;
  type_7 *pzVar7;
  type_8 *var_8;
  type_9 *pcVar9;
  char msg [64];
  
  var_8 = PTR___stack_chk_guard_000534bc;
  var_7 = *(type_5 *)PTR___stack_chk_guard_000534bc;
  if (png_ptr->zowner != 0) {
    var_12 = &DAT_00000004;
    msg._0_4_ = png_ptr->zowner;
    var_1(msg,0x40,4,var_2 + 0x5b0);
    (*(type_9 *)PTR_png_chunk_warning_00053368)(png_ptr,msg);
    png_ptr->zowner = 0;
  }
  var_3 = png_ptr->options;
  var_9 = 0xf;
  var_5 = png_ptr->flags;
  pzVar7 = &png_ptr->zstream;
  (png_ptr->zstream).next_in = (type_10 *)0x0;
  (png_ptr->zstream).avail_in = 0;
  (png_ptr->zstream).next_out = (type_10 *)0x0;
  var_4 = (var_3 << 0x1c) >> 0x1e ^ 3;
  (png_ptr->zstream).avail_out = 0;
  if (var_4 != 0) {
    var_9 = 0;
  }
  png_ptr->zstream_start = var_4 != 0;
  if ((var_5 & 2) == 0) {
    var_12 = var_2 + 0x5c0;
    var_5 = (*(type_9 *)PTR_inflateInit2__0005332c)(pzVar7,var_9,var_12,0x38);
    if (var_5 != 0) {
      if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
      goto LAB_0002aac0;
    }
    png_ptr->flags = png_ptr->flags | 2;
    if ((png_ptr->options << 0x16) >> 0x1e == 3) {
LAB_0002ab18:
      var_9 = 0;
      var_5 = (*(type_9 *)PTR_inflateValidate_000534a0)(pzVar7);
      goto joined_r0x0002ab28;
    }
  }
  else {
    var_5 = (*(type_9 *)PTR_inflateReset2_000534d4)(pzVar7);
    if ((png_ptr->options << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
joined_r0x0002ab28:
    if (var_5 != 0) {
LAB_0002aac0:
      var_9 = var_5;
      var_6(png_ptr,var_5);
      goto LAB_0002aa84;
    }
  }
  var_5 = 0;
  png_ptr->zowner = owner;
LAB_0002aa84:
  if (var_7 == *(type_5 *)var_8) {
    return var_5;
  }
  var_8 = PTR___stack_chk_fail_00053484;
  (*(type_9 *)PTR___stack_chk_fail_00053484)();
  if (var_7->read_buffer != (type_4)0x0) {
    pcVar9 = *(type_9 **)(var_8 + 0x287a0);
    if (var_9 <= var_7->read_buffer_size) {
      return (int)var_7->read_buffer;
    }
    var_7->read_buffer = (type_4)0x0;
    var_7->read_buffer_size = 0;
    (*pcVar9)();
  }
  var_11 = (type_4)var_10(var_7,var_9);
  if (var_11 != (type_4)0x0) {
    (**(type_9 **)(var_8 + 0x28810))(var_11,0,var_9);
    var_7->read_buffer = var_11;
    var_7->read_buffer_size = var_9;
    return (int)var_11;
  }
  if (var_12 == &DAT_00000002) {
    return 0;
  }
  if (var_12 != (type_6 *)0x0) {
    (**(type_9 **)(var_8 + 0x287e4))(var_7,*(int *)(var_8 + 0x28498) + 0x5c8);
    return 0;
  }
  (**(type_9 **)(var_8 + 0x28998))(var_7,*(int *)(var_8 + 0x28498) + 0x5c8);
  var_13 = (type_3)*(type_11 *)&var_7->jmp_buf_local[0].__jmpbuf[0].__pc * 0x1000000 +
          (type_3)*(type_11 *)((int)&var_7->jmp_buf_local[0].__jmpbuf[0].__pc + 1) * 0x10000 +
          (type_3)*(type_11 *)((int)&var_7->jmp_buf_local[0].__jmpbuf[0].__pc + 3) +
          (type_3)*(type_11 *)((int)&var_7->jmp_buf_local[0].__jmpbuf[0].__pc + 2) * 0x100;
  iVar3 = -1;
  if (-1 < var_13) {
    iVar3 = var_13;
  }
  return iVar3;
}


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

uint MASKED(int param_1,undefined4 param_2,undefined1 *param_3)

{
  uint uVar1;
  byte *pbVar2;
  uint uVar3;
  int iVar4;
  undefined *puVar5;
  code *pcVar6;
  int local_5c [16];
  byte *local_1c;
  
  puVar5 = PTR___stack_chk_guard_000534bc;
  local_1c = *(byte **)PTR___stack_chk_guard_000534bc;
  if (*(int *)(param_1 + 0x130) != 0) {
    param_3 = &DAT_00000004;
    local_5c[0] = *(int *)(param_1 + 0x130);
    FUN_000198e4(local_5c,0x40,4,PTR_s_nt_0005301c + 0x5b0);
    (*(code *)PTR_png_chunk_warning_00053368)(param_1,local_5c);
    *(undefined4 *)(param_1 + 0x130) = 0;
  }
  uVar1 = 0xf;
  iVar4 = param_1 + 0x134;
  *(undefined4 *)(param_1 + 0x134) = 0;
  *(undefined4 *)(param_1 + 0x138) = 0;
  *(undefined4 *)(param_1 + 0x140) = 0;
  uVar3 = (uint)(*(int *)(param_1 + 700) << 0x1c) >> 0x1e ^ 3;
  *(undefined4 *)(param_1 + 0x144) = 0;
  if (uVar3 != 0) {
    uVar1 = 0;
  }
  *(bool *)(param_1 + 0x208) = uVar3 != 0;
  if ((*(uint *)(param_1 + 0x128) & 2) == 0) {
    param_3 = PTR_s_nt_0005301c + 0x5c0;
    uVar3 = (*(code *)PTR_inflateInit2__0005332c)(iVar4,uVar1,param_3,0x38);
    if (uVar3 != 0) {
      if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
      goto LAB_0002aac0;
    }
    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 2;
    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) {
LAB_0002ab18:
      uVar1 = 0;
      uVar3 = (*(code *)PTR_inflateValidate_000534a0)(iVar4);
      goto joined_r0x0002ab28;
    }
  }
  else {
    uVar3 = (*(code *)PTR_inflateReset2_000534d4)(iVar4);
    if ((uint)(*(int *)(param_1 + 700) << 0x16) >> 0x1e == 3) goto LAB_0002ab18;
joined_r0x0002ab28:
    if (uVar3 != 0) {
LAB_0002aac0:
      uVar1 = uVar3;
      FUN_000156a8(param_1);
      goto LAB_0002aa84;
    }
  }
  uVar3 = 0;
  *(undefined4 *)(param_1 + 0x130) = param_2;
LAB_0002aa84:
  if (local_1c == *(byte **)puVar5) {
    return uVar3;
  }
  pbVar2 = local_1c;
  puVar5 = PTR___stack_chk_fail_00053484;
  (*(code *)PTR___stack_chk_fail_00053484)();
  if (*(uint *)(pbVar2 + 0x374) != 0) {
    pcVar6 = *(code **)(puVar5 + 0x287a0);
    if (uVar1 <= *(uint *)(pbVar2 + 0x378)) {
      return *(uint *)(pbVar2 + 0x374);
    }
    pbVar2[0x374] = 0;
    pbVar2[0x375] = 0;
    pbVar2[0x376] = 0;
    pbVar2[0x377] = 0;
    pbVar2[0x378] = 0;
    pbVar2[0x379] = 0;
    pbVar2[0x37a] = 0;
    pbVar2[0x37b] = 0;
    (*pcVar6)();
  }
  uVar3 = FUN_0001c240(pbVar2,uVar1);
  if (uVar3 != 0) {
    (**(code **)(puVar5 + 0x28810))(uVar3,0,uVar1);
    *(uint *)(pbVar2 + 0x374) = uVar3;
    *(uint *)(pbVar2 + 0x378) = uVar1;
    return uVar3;
  }
  if (param_3 == (undefined1 *)0x2) {
    return 0;
  }
  if (param_3 != (undefined1 *)0x0) {
    (**(code **)(puVar5 + 0x287e4))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);
    return 0;
  }
  (**(code **)(puVar5 + 0x28998))(pbVar2,*(int *)(puVar5 + 0x28498) + 0x5c8);
  uVar3 = (uint)*pbVar2 * 0x1000000 + (uint)pbVar2[1] * 0x10000 + (uint)pbVar2[3] +
          (uint)pbVar2[2] * 0x100;
  uVar1 = 0xffffffff;
  if (-1 < (int)uVar3) {
    uVar1 = uVar3;
  }
  return uVar1;
}

