
/* WARNING: Variable defined which should be unmapped: filesize */

int xfer_download_gotpkt(fxp_xfer *xfer,sftp_packet *pktin)

{
  uint64 x;
  uint64 x_00;
  uint64 x_01;
  uint64 x_02;
  uint64 y;
  uint64 y_00;
  uint64 y_01;
  undefined *puVar1;
  int iVar2;
  sftp_request *req;
  int iVar3;
  int iVar4;
  ulong uVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined1 *puVar8;
  ulong in_stack_ffffffd4;
  ulong uStack_28;
  uint64 filesize;
  
  puVar1 = PTR___stack_chk_guard_000b0c9c;
  puVar8 = &_gp;
  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;
  req = sftp_find_request(pktin);
  if (req == (sftp_request *)0x0) {
    iVar3 = -0x80000000;
    goto LAB_00035b88;
  }
  puVar7 = (undefined4 *)req->userdata;
  if (puVar7 == (undefined4 *)0x0) {
    iVar3 = -0x80000000;
    *(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;
    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;
    goto LAB_00035b88;
  }
  iVar3 = fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1]);
  puVar7[2] = iVar3;
  if (iVar3 < 0) {
    iVar3 = -1;
    if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {
      xfer->err = 1;
      puVar7[3] = 0xffffffff;
      goto LAB_00035b88;
    }
LAB_00035b44:
    iVar3 = 0;
    xfer->eof = 1;
    puVar7[2] = 0;
    puVar7[3] = 1;
LAB_00035b54:
    if (iVar3 < (int)puVar7[1]) {
LAB_00035bf0:
      x_01.hi = (ulong)puVar8;
      x_01.lo = in_stack_ffffffd4;
      uint64_add32(x_01,(ulong)&filesize);
      x_02.hi = (ulong)puVar8;
      x_02.lo = in_stack_ffffffd4;
      y_01.hi = uStack_28;
      y_01.lo = filesize.hi;
      iVar3 = uint64_compare(x_02,y_01);
      if (0 < iVar3) {
        (xfer->filesize).hi = filesize.hi;
        (xfer->filesize).lo = filesize.lo;
      }
    }
  }
  else {
    if (iVar3 == 0) goto LAB_00035b44;
    puVar7[3] = 1;
    x_00.hi = (ulong)puVar8;
    x_00.lo = in_stack_ffffffd4;
    y_00.hi = uStack_28;
    y_00.lo = filesize.hi;
    iVar3 = uint64_compare(x_00,y_00);
    if (iVar3 < 0) {
      uVar5 = puVar7[5];
      iVar3 = puVar7[2];
      (xfer->furthestdata).hi = puVar7[4];
      (xfer->furthestdata).lo = uVar5;
      goto LAB_00035b54;
    }
    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;
  }
  x.hi = (ulong)puVar8;
  x.lo = in_stack_ffffffd4;
  y.hi = uStack_28;
  y.lo = filesize.hi;
  iVar4 = uint64_compare(x,y);
  iVar3 = 1;
  if (0 < iVar4) {
    iVar4 = *(int *)(puVar8 + -0x7fc8);
    iVar6 = *(int *)(puVar8 + -0x7fd8);
    xfer->err = 1;
    iVar3 = -1;
    *(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;
    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;
  }
LAB_00035b88:
  if (iVar2 == *(int *)puVar1) {
    return iVar3;
  }
  (**(code **)(puVar8 + -0x74e0))();
  *(undefined4 *)(iVar2 + 0x24) = 1;
  return 1;
}



undefined4 xfer_download_gotpkt(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  undefined4 local_24;
  undefined4 local_20;
  int local_1c;
  
  puVar3 = PTR___stack_chk_guard_000b0c9c;
  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;
  iVar4 = sftp_find_request(param_2);
  if (iVar4 == 0) {
    uVar5 = 0x80000000;
    goto LAB_00035b88;
  }
  puVar7 = *(undefined4 **)(iVar4 + 8);
  if (puVar7 == (undefined4 *)0x0) {
    uVar5 = 0x80000000;
    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;
    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;
    goto LAB_00035b88;
  }
  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);
  puVar7[2] = iVar4;
  if (iVar4 < 0) {
    uVar5 = 0xffffffff;
    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {
      *(undefined4 *)(param_1 + 0x24) = 1;
      puVar7[3] = 0xffffffff;
      goto LAB_00035b88;
    }
LAB_00035b44:
    iVar4 = 0;
    *(undefined4 *)(param_1 + 0x20) = 1;
    puVar7[2] = 0;
    puVar7[3] = 1;
LAB_00035b54:
    if (iVar4 < (int)puVar7[1]) {
LAB_00035bf0:
      if (iVar4 < 0) {
        iVar4 = 0;
      }
      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);
      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),
                             local_24,local_20);
      if (0 < iVar4) {
        *(undefined4 *)(param_1 + 0x10) = local_24;
        *(undefined4 *)(param_1 + 0x14) = local_20;
      }
    }
  }
  else {
    if (iVar4 == 0) goto LAB_00035b44;
    uVar5 = *(undefined4 *)(param_1 + 8);
    uVar6 = *(undefined4 *)(param_1 + 0xc);
    puVar7[3] = 1;
    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);
    if (iVar4 < 0) {
      uVar5 = puVar7[5];
      iVar4 = puVar7[2];
      *(undefined4 *)(param_1 + 8) = puVar7[4];
      *(undefined4 *)(param_1 + 0xc) = uVar5;
      goto LAB_00035b54;
    }
    iVar4 = puVar7[2];
    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;
  }
  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),
                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));
  puVar2 = PTR_s_Present_000b0188;
  puVar1 = PTR_DAT_000b0178;
  uVar5 = 1;
  if (0 < iVar4) {
    *(undefined4 *)(param_1 + 0x24) = 1;
    uVar5 = 0xffffffff;
    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;
    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;
  }
LAB_00035b88:
  if (local_1c != *(int *)puVar3) {
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    *(undefined4 *)(local_1c + 0x24) = 1;
    return 1;
  }
  return uVar5;
}


lui gp,0x8
addiu gp,gp,0x2698
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7d1c(gp)
sw s2,0x34(sp)
lw s2,-0x74b4(gp)
sw gp,0x10(sp)
sw s3,0x38(sp)
or s3,a1,zero
sw s1,0x30(sp)
or s1,a0,zero
sw ra,0x3c(sp)
or a0,a1,zero
sw s0,0x2c(sp)
lw v0,0x0(s2)
sw v0,0x24(sp)
bal 0x0003386c
_nop
beq v0,zero,0x00035ccc
_lw gp,0x10(sp)
lw s0,0x8(v0)
beq s0,zero,0x00035ca8
_lw t9,-0x7b58(gp)
or a1,v0,zero
lw a3,0x4(s0)
or a0,s3,zero
bal 0x00034f08
_lw a2,0x0(s0)
lw gp,0x10(sp)
bltz v0,0x00035c44
_sw v0,0x8(s0)
bne v0,zero,0x00035bb4
_lw t9,-0x7d5c(gp)
li v0,0x1
or v1,zero,zero
sw v0,0x20(s1)
sw zero,0x8(s0)
sw v0,0xc(s0)
lw v0,0x4(s0)
slt v0,v1,v0
bne v0,zero,0x00035bf0
_slti a3,v1,0x0
lw t9,-0x7d5c(gp)
lw a2,0x10(s1)
lw a3,0x14(s1)
lw a0,0x8(s1)
bal 0x0001dde4
_lw a1,0xc(s1)
li v1,0x1
bgtz v0,0x00035c80
_lw gp,0x10(sp)
lw a0,0x24(sp)
or v0,v1,zero
lw v1,0x0(s2)
bne a0,v1,0x00035cd4
_lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
li v0,0x1
lw a0,0x8(s1)
lw a1,0xc(s1)
lw a2,0x10(s0)
lw a3,0x14(s0)
bal 0x0001dde4
_sw v0,0xc(s0)
bltz v0,0x00035c68
_lw gp,0x10(sp)
lw v1,0x8(s0)
lw v0,0x4(s0)
slt v0,v1,v0
beq v0,zero,0x00035b68
_lw t9,-0x7d5c(gp)
slti a3,v1,0x0
lw t9,-0x7ccc(gp)
movn v1,zero,a3
addiu a0,sp,0x1c
lw a1,0x10(s0)
lw a2,0x14(s0)
bal 0x0001ddc0
_or a3,v1,zero
lw gp,0x10(sp)
lw a2,0x1c(sp)
lw a3,0x20(sp)
lw a0,0x10(s1)
lw t9,-0x7d5c(gp)
bal 0x0001dde4
_lw a1,0x14(s1)
blez v0,0x00035b64
_lw gp,0x10(sp)
lw v0,0x1c(sp)
sw v0,0x10(s1)
lw v0,0x20(sp)
b 0x00035b64
_sw v0,0x14(s1)
lw v1,-0x7fd8(gp)
li v0,0x1
lw v1,0xe04(v1)
beq v1,v0,0x00035b44
_li v1,-0x1
sw v0,0x24(s1)
li v0,-0x1
b 0x00035b88
_sw v0,0xc(s0)
lw a0,0x10(s0)
lw v0,0x14(s0)
lw v1,0x8(s0)
sw a0,0x8(s1)
b 0x00035b54
_sw v0,0xc(s1)
lw v0,-0x7fc8(gp)
lw a0,-0x7fd8(gp)
sw v1,0x24(s1)
li v1,-0x1
addiu v0,v0,0x1280
sw v0,0xe08(a0)
li a0,-0x1
lw v0,-0x7fd8(gp)
b 0x00035b88
_sw a0,0xe04(v0)
lw v0,-0x7fc8(gp)
lui v1,0x8000
lw a0,-0x7fd8(gp)
addiu v0,v0,0x1250
sw v0,0xe08(a0)
li a0,-0x1
lw v0,-0x7fd8(gp)
b 0x00035b88
_sw a0,0xe04(v0)
b 0x00035b88
_lui v1,0x8000
lw t9,-0x74e0(gp)
jalr t9
_nop
(translation_unit "undefined4 xfer_download_gotpkt(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 xfer_download_gotpkt(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "xfer_download_gotpkt(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = sftp_find_request(param_2);" (assignment_expression "iVar4 = sftp_find_request(param_2)" identifier = (call_expression "sftp_find_request(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }" { (expression_statement "uVar5 = 0x80000000;" (assignment_expression "uVar5 = 0x80000000" identifier = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (expression_statement "puVar7 = *(undefined4 **)(iVar4 + 8);" (assignment_expression "puVar7 = *(undefined4 **)(iVar4 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" { (expression_statement "uVar5 = 0x80000000;" (assignment_expression "uVar5 = 0x80000000" identifier = number_literal) ;) (expression_statement "*(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;" (assignment_expression "*(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250" (pointer_expression "*(undefined **)(PTR_DAT_000b0178 + 0xe08)" * (cast_expression "(undefined **)(PTR_DAT_000b0178 + 0xe08)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe08)" ( (binary_expression "PTR_DAT_000b0178 + 0xe08" identifier + number_literal) )))) = (binary_expression "PTR_s_Present_000b0188 + 0x1250" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" * (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" ( (binary_expression "PTR_DAT_000b0178 + 0xe04" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (expression_statement "iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);" (assignment_expression "iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1])" identifier = (call_expression "fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1])" identifier (argument_list "(param_2,iVar4,*puVar7,puVar7[1])" ( identifier , identifier , (pointer_expression "*puVar7" * identifier) , (subscript_expression "puVar7[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar7[2] = iVar4;" (assignment_expression "puVar7[2] = iVar4" (subscript_expression "puVar7[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" if (parenthesized_expression "(*(int *)(PTR_DAT_000b0178 + 0xe04) != 1)" ( (binary_expression "*(int *)(PTR_DAT_000b0178 + 0xe04) != 1" (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xe04)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0xe04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" ( (binary_expression "PTR_DAT_000b0178 + 0xe04" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar7[3] = 0xffffffff;" (assignment_expression "puVar7[3] = 0xffffffff" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (labeled_statement "LAB_00035b44:\n    iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar7[2] = 0;" (assignment_expression "puVar7[2] = 0" (subscript_expression "puVar7[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" statement_identifier : (if_statement "if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" if (parenthesized_expression "(iVar4 < (int)puVar7[1])" ( (binary_expression "iVar4 < (int)puVar7[1]" identifier < (cast_expression "(int)puVar7[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" { (labeled_statement "LAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }" statement_identifier : (if_statement "if (iVar4 < 0) {\n        iVar4 = 0;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar4 = 0;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);" (call_expression "uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4)" identifier (argument_list "(&local_24,puVar7[4],puVar7[5],iVar4)" ( (pointer_expression "&local_24" & identifier) , (subscript_expression "puVar7[4]" identifier [ number_literal ]) , (subscript_expression "puVar7[5]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);" (assignment_expression "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" identifier = (call_expression "uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , identifier , identifier )))) ;) (if_statement "if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = local_24;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = local_24" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = local_20;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = local_20" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) }))) }) (else_clause "else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" else (compound_statement "{\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" { (if_statement "if (iVar4 == 0) goto LAB_00035b44;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00035b44;" goto statement_identifier ;)) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);" (assignment_expression "iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5])" identifier = (call_expression "uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5])" identifier (argument_list "(uVar5,uVar6,puVar7[4],puVar7[5])" ( identifier , identifier , (subscript_expression "puVar7[4]" identifier [ number_literal ]) , (subscript_expression "puVar7[5]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }" { (expression_statement "uVar5 = puVar7[5];" (assignment_expression "uVar5 = puVar7[5]" identifier = (subscript_expression "puVar7[5]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = puVar7[2];" (assignment_expression "iVar4 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = puVar7[4];" (assignment_expression "*(undefined4 *)(param_1 + 8) = puVar7[4]" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (subscript_expression "puVar7[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00035b54;" goto statement_identifier ;) })) (expression_statement "iVar4 = puVar7[2];" (assignment_expression "iVar4 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;" if (parenthesized_expression "(iVar4 < (int)puVar7[1])" ( (binary_expression "iVar4 < (int)puVar7[1]" identifier < (cast_expression "(int)puVar7[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_00035bf0;" goto statement_identifier ;)) }))) (expression_statement "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "puVar2 = PTR_s_Present_000b0188;" (assignment_expression "puVar2 = PTR_s_Present_000b0188" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" identifier = identifier) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;" (assignment_expression "*(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280" (pointer_expression "*(undefined **)(puVar1 + 0xe08)" * (cast_expression "(undefined **)(puVar1 + 0xe08)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xe08)" ( (binary_expression "puVar1 + 0xe08" identifier + number_literal) )))) = (binary_expression "puVar2 + 0x1280" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" * (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" ( (binary_expression "PTR_DAT_000b0178 + 0xe04" identifier + number_literal) )))) = number_literal) ;) })) (labeled_statement "LAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" statement_identifier : (if_statement "if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" if (parenthesized_expression "(local_1c != *(int *)puVar3)" ( (binary_expression "local_1c != *(int *)puVar3" identifier != (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(local_1c + 0x24) = 1;" (assignment_expression "*(undefined4 *)(local_1c + 0x24) = 1" (pointer_expression "*(undefined4 *)(local_1c + 0x24)" * (cast_expression "(undefined4 *)(local_1c + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1c + 0x24)" ( (binary_expression "local_1c + 0x24" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Variable defined which should be unmapped: filesize */\n\nint xfer_download_gotpkt(fxp_xfer *xfer,sftp_packet *pktin)\n\n{\n  uint64 x;\n  uint64 x_00;\n  uint64 x_01;\n  uint64 x_02;\n  uint64 y;\n  uint64 y_00;\n  uint64 y_01;\n  undefined *puVar1;\n  int iVar2;\n  sftp_request *req;\n  int iVar3;\n  int iVar4;\n  ulong uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 *puVar8;\n  ulong in_stack_ffffffd4;\n  ulong uStack_28;\n  uint64 filesize;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  puVar8 = &_gp;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  req = sftp_find_request(pktin);\n  if (req == (sftp_request *)0x0) {\n    iVar3 = -0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = (undefined4 *)req->userdata;\n  if (puVar7 == (undefined4 *)0x0) {\n    iVar3 = -0x80000000;\n    *(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar3 = fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1]);\n  puVar7[2] = iVar3;\n  if (iVar3 < 0) {\n    iVar3 = -1;\n    if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar3 = 0;\n    xfer->eof = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }\n  }\n  else {\n    if (iVar3 == 0) goto LAB_00035b44;\n    puVar7[3] = 1;\n    x_00.hi = (ulong)puVar8;\n    x_00.lo = in_stack_ffffffd4;\n    y_00.hi = uStack_28;\n    y_00.lo = filesize.hi;\n    iVar3 = uint64_compare(x_00,y_00);\n    if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }\n    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  x.hi = (ulong)puVar8;\n  x.lo = in_stack_ffffffd4;\n  y.hi = uStack_28;\n  y.lo = filesize.hi;\n  iVar4 = uint64_compare(x,y);\n  iVar3 = 1;\n  if (0 < iVar4) {\n    iVar4 = *(int *)(puVar8 + -0x7fc8);\n    iVar6 = *(int *)(puVar8 + -0x7fd8);\n    xfer->err = 1;\n    iVar3 = -1;\n    *(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }\n  (**(code **)(puVar8 + -0x74e0))();\n  *(undefined4 *)(iVar2 + 0x24) = 1;\n  return 1;\n}\n\n" comment (function_definition "int xfer_download_gotpkt(fxp_xfer *xfer,sftp_packet *pktin)\n\n{\n  uint64 x;\n  uint64 x_00;\n  uint64 x_01;\n  uint64 x_02;\n  uint64 y;\n  uint64 y_00;\n  uint64 y_01;\n  undefined *puVar1;\n  int iVar2;\n  sftp_request *req;\n  int iVar3;\n  int iVar4;\n  ulong uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 *puVar8;\n  ulong in_stack_ffffffd4;\n  ulong uStack_28;\n  uint64 filesize;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  puVar8 = &_gp;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  req = sftp_find_request(pktin);\n  if (req == (sftp_request *)0x0) {\n    iVar3 = -0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = (undefined4 *)req->userdata;\n  if (puVar7 == (undefined4 *)0x0) {\n    iVar3 = -0x80000000;\n    *(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar3 = fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1]);\n  puVar7[2] = iVar3;\n  if (iVar3 < 0) {\n    iVar3 = -1;\n    if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar3 = 0;\n    xfer->eof = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }\n  }\n  else {\n    if (iVar3 == 0) goto LAB_00035b44;\n    puVar7[3] = 1;\n    x_00.hi = (ulong)puVar8;\n    x_00.lo = in_stack_ffffffd4;\n    y_00.hi = uStack_28;\n    y_00.lo = filesize.hi;\n    iVar3 = uint64_compare(x_00,y_00);\n    if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }\n    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  x.hi = (ulong)puVar8;\n  x.lo = in_stack_ffffffd4;\n  y.hi = uStack_28;\n  y.lo = filesize.hi;\n  iVar4 = uint64_compare(x,y);\n  iVar3 = 1;\n  if (0 < iVar4) {\n    iVar4 = *(int *)(puVar8 + -0x7fc8);\n    iVar6 = *(int *)(puVar8 + -0x7fd8);\n    xfer->err = 1;\n    iVar3 = -1;\n    *(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }\n  (**(code **)(puVar8 + -0x74e0))();\n  *(undefined4 *)(iVar2 + 0x24) = 1;\n  return 1;\n}" primitive_type (function_declarator "xfer_download_gotpkt(fxp_xfer *xfer,sftp_packet *pktin)" identifier (parameter_list "(fxp_xfer *xfer,sftp_packet *pktin)" ( (parameter_declaration "fxp_xfer *xfer" type_identifier (pointer_declarator "*xfer" * identifier)) , (parameter_declaration "sftp_packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) ))) (compound_statement "{\n  uint64 x;\n  uint64 x_00;\n  uint64 x_01;\n  uint64 x_02;\n  uint64 y;\n  uint64 y_00;\n  uint64 y_01;\n  undefined *puVar1;\n  int iVar2;\n  sftp_request *req;\n  int iVar3;\n  int iVar4;\n  ulong uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 *puVar8;\n  ulong in_stack_ffffffd4;\n  ulong uStack_28;\n  uint64 filesize;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  puVar8 = &_gp;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  req = sftp_find_request(pktin);\n  if (req == (sftp_request *)0x0) {\n    iVar3 = -0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = (undefined4 *)req->userdata;\n  if (puVar7 == (undefined4 *)0x0) {\n    iVar3 = -0x80000000;\n    *(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar3 = fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1]);\n  puVar7[2] = iVar3;\n  if (iVar3 < 0) {\n    iVar3 = -1;\n    if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar3 = 0;\n    xfer->eof = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }\n  }\n  else {\n    if (iVar3 == 0) goto LAB_00035b44;\n    puVar7[3] = 1;\n    x_00.hi = (ulong)puVar8;\n    x_00.lo = in_stack_ffffffd4;\n    y_00.hi = uStack_28;\n    y_00.lo = filesize.hi;\n    iVar3 = uint64_compare(x_00,y_00);\n    if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }\n    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  x.hi = (ulong)puVar8;\n  x.lo = in_stack_ffffffd4;\n  y.hi = uStack_28;\n  y.lo = filesize.hi;\n  iVar4 = uint64_compare(x,y);\n  iVar3 = 1;\n  if (0 < iVar4) {\n    iVar4 = *(int *)(puVar8 + -0x7fc8);\n    iVar6 = *(int *)(puVar8 + -0x7fd8);\n    xfer->err = 1;\n    iVar3 = -1;\n    *(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }\n  (**(code **)(puVar8 + -0x74e0))();\n  *(undefined4 *)(iVar2 + 0x24) = 1;\n  return 1;\n}" { (declaration "uint64 x;" type_identifier identifier ;) (declaration "uint64 x_00;" type_identifier identifier ;) (declaration "uint64 x_01;" type_identifier identifier ;) (declaration "uint64 x_02;" type_identifier identifier ;) (declaration "uint64 y;" type_identifier identifier ;) (declaration "uint64 y_00;" type_identifier identifier ;) (declaration "uint64 y_01;" type_identifier identifier ;) (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sftp_request *req;" type_identifier (pointer_declarator "*req" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "ulong in_stack_ffffffd4;" type_identifier identifier ;) (declaration "ulong uStack_28;" type_identifier identifier ;) (declaration "uint64 filesize;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "puVar8 = &_gp;" (assignment_expression "puVar8 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "req = sftp_find_request(pktin);" (assignment_expression "req = sftp_find_request(pktin)" identifier = (call_expression "sftp_find_request(pktin)" identifier (argument_list "(pktin)" ( identifier )))) ;) (if_statement "if (req == (sftp_request *)0x0) {\n    iVar3 = -0x80000000;\n    goto LAB_00035b88;\n  }" if (parenthesized_expression "(req == (sftp_request *)0x0)" ( (binary_expression "req == (sftp_request *)0x0" identifier == (cast_expression "(sftp_request *)0x0" ( (type_descriptor "sftp_request *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = -0x80000000;\n    goto LAB_00035b88;\n  }" { (expression_statement "iVar3 = -0x80000000;" (assignment_expression "iVar3 = -0x80000000" identifier = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (expression_statement "puVar7 = (undefined4 *)req->userdata;" (assignment_expression "puVar7 = (undefined4 *)req->userdata" identifier = (cast_expression "(undefined4 *)req->userdata" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "req->userdata" identifier -> field_identifier))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    iVar3 = -0x80000000;\n    *(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = -0x80000000;\n    *(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" { (expression_statement "iVar3 = -0x80000000;" (assignment_expression "iVar3 = -0x80000000" identifier = number_literal) ;) (expression_statement "*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250;" (assignment_expression "*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08) = *(int *)(puVar8 + -0x7fc8) + 0x1250" (pointer_expression "*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08)" * (cast_expression "(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar8 + -0x7fd8) + 0xe08)" ( (binary_expression "*(int *)(puVar8 + -0x7fd8) + 0xe08" (pointer_expression "*(int *)(puVar8 + -0x7fd8)" * (cast_expression "(int *)(puVar8 + -0x7fd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fd8)" ( (binary_expression "puVar8 + -0x7fd8" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "*(int *)(puVar8 + -0x7fc8) + 0x1250" (pointer_expression "*(int *)(puVar8 + -0x7fc8)" * (cast_expression "(int *)(puVar8 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fc8)" ( (binary_expression "puVar8 + -0x7fc8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04)" * (cast_expression "(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar8 + -0x7fd8) + 0xe04)" ( (binary_expression "*(int *)(puVar8 + -0x7fd8) + 0xe04" (pointer_expression "*(int *)(puVar8 + -0x7fd8)" * (cast_expression "(int *)(puVar8 + -0x7fd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fd8)" ( (binary_expression "puVar8 + -0x7fd8" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (expression_statement "iVar3 = fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1]);" (assignment_expression "iVar3 = fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1])" identifier = (call_expression "fxp_read_recv(pktin,req,(char *)*puVar7,puVar7[1])" identifier (argument_list "(pktin,req,(char *)*puVar7,puVar7[1])" ( identifier , identifier , (cast_expression "(char *)*puVar7" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) , (subscript_expression "puVar7[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar7[2] = iVar3;" (assignment_expression "puVar7[2] = iVar3" (subscript_expression "puVar7[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 < 0) {\n    iVar3 = -1;\n    if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar3 = 0;\n    xfer->eof = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }\n  }\n  else {\n    if (iVar3 == 0) goto LAB_00035b44;\n    puVar7[3] = 1;\n    x_00.hi = (ulong)puVar8;\n    x_00.lo = in_stack_ffffffd4;\n    y_00.hi = uStack_28;\n    y_00.lo = filesize.hi;\n    iVar3 = uint64_compare(x_00,y_00);\n    if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }\n    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = -1;\n    if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar3 = 0;\n    xfer->eof = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }\n  }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (if_statement "if (*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1) {\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" if (parenthesized_expression "(*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1)" ( (binary_expression "*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) != 1" (pointer_expression "*(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04)" * (cast_expression "(int *)(*(int *)(puVar8 + -0x7fd8) + 0xe04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar8 + -0x7fd8) + 0xe04)" ( (binary_expression "*(int *)(puVar8 + -0x7fd8) + 0xe04" (pointer_expression "*(int *)(puVar8 + -0x7fd8)" * (cast_expression "(int *)(puVar8 + -0x7fd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fd8)" ( (binary_expression "puVar8 + -0x7fd8" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n      xfer->err = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" { (expression_statement "xfer->err = 1;" (assignment_expression "xfer->err = 1" (field_expression "xfer->err" identifier -> field_identifier) = number_literal) ;) (expression_statement "puVar7[3] = 0xffffffff;" (assignment_expression "puVar7[3] = 0xffffffff" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (labeled_statement "LAB_00035b44:\n    iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (expression_statement "xfer->eof = 1;" (assignment_expression "xfer->eof = 1" (field_expression "xfer->eof" identifier -> field_identifier) = number_literal) ;) (expression_statement "puVar7[2] = 0;" (assignment_expression "puVar7[2] = 0" (subscript_expression "puVar7[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00035b54:\n    if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }" statement_identifier : (if_statement "if (iVar3 < (int)puVar7[1]) {\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }" if (parenthesized_expression "(iVar3 < (int)puVar7[1])" ( (binary_expression "iVar3 < (int)puVar7[1]" identifier < (cast_expression "(int)puVar7[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_00035bf0:\n      x_01.hi = (ulong)puVar8;\n      x_01.lo = in_stack_ffffffd4;\n      uint64_add32(x_01,(ulong)&filesize);\n      x_02.hi = (ulong)puVar8;\n      x_02.lo = in_stack_ffffffd4;\n      y_01.hi = uStack_28;\n      y_01.lo = filesize.hi;\n      iVar3 = uint64_compare(x_02,y_01);\n      if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }\n    }" { (labeled_statement "LAB_00035bf0:\n      x_01.hi = (ulong)puVar8;" statement_identifier : (expression_statement "x_01.hi = (ulong)puVar8;" (assignment_expression "x_01.hi = (ulong)puVar8" (field_expression "x_01.hi" identifier . field_identifier) = (cast_expression "(ulong)puVar8" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;)) (expression_statement "x_01.lo = in_stack_ffffffd4;" (assignment_expression "x_01.lo = in_stack_ffffffd4" (field_expression "x_01.lo" identifier . field_identifier) = identifier) ;) (expression_statement "uint64_add32(x_01,(ulong)&filesize);" (call_expression "uint64_add32(x_01,(ulong)&filesize)" identifier (argument_list "(x_01,(ulong)&filesize)" ( identifier , (binary_expression "(ulong)&filesize" (parenthesized_expression "(ulong)" ( identifier )) & identifier) ))) ;) (expression_statement "x_02.hi = (ulong)puVar8;" (assignment_expression "x_02.hi = (ulong)puVar8" (field_expression "x_02.hi" identifier . field_identifier) = (cast_expression "(ulong)puVar8" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "x_02.lo = in_stack_ffffffd4;" (assignment_expression "x_02.lo = in_stack_ffffffd4" (field_expression "x_02.lo" identifier . field_identifier) = identifier) ;) (expression_statement "y_01.hi = uStack_28;" (assignment_expression "y_01.hi = uStack_28" (field_expression "y_01.hi" identifier . field_identifier) = identifier) ;) (expression_statement "y_01.lo = filesize.hi;" (assignment_expression "y_01.lo = filesize.hi" (field_expression "y_01.lo" identifier . field_identifier) = (field_expression "filesize.hi" identifier . field_identifier)) ;) (expression_statement "iVar3 = uint64_compare(x_02,y_01);" (assignment_expression "iVar3 = uint64_compare(x_02,y_01)" identifier = (call_expression "uint64_compare(x_02,y_01)" identifier (argument_list "(x_02,y_01)" ( identifier , identifier )))) ;) (if_statement "if (0 < iVar3) {\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n        (xfer->filesize).hi = filesize.hi;\n        (xfer->filesize).lo = filesize.lo;\n      }" { (expression_statement "(xfer->filesize).hi = filesize.hi;" (assignment_expression "(xfer->filesize).hi = filesize.hi" (field_expression "(xfer->filesize).hi" (parenthesized_expression "(xfer->filesize)" ( (field_expression "xfer->filesize" identifier -> field_identifier) )) . field_identifier) = (field_expression "filesize.hi" identifier . field_identifier)) ;) (expression_statement "(xfer->filesize).lo = filesize.lo;" (assignment_expression "(xfer->filesize).lo = filesize.lo" (field_expression "(xfer->filesize).lo" (parenthesized_expression "(xfer->filesize)" ( (field_expression "xfer->filesize" identifier -> field_identifier) )) . field_identifier) = (field_expression "filesize.lo" identifier . field_identifier)) ;) })) }))) }) (else_clause "else {\n    if (iVar3 == 0) goto LAB_00035b44;\n    puVar7[3] = 1;\n    x_00.hi = (ulong)puVar8;\n    x_00.lo = in_stack_ffffffd4;\n    y_00.hi = uStack_28;\n    y_00.lo = filesize.hi;\n    iVar3 = uint64_compare(x_00,y_00);\n    if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }\n    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;\n  }" else (compound_statement "{\n    if (iVar3 == 0) goto LAB_00035b44;\n    puVar7[3] = 1;\n    x_00.hi = (ulong)puVar8;\n    x_00.lo = in_stack_ffffffd4;\n    y_00.hi = uStack_28;\n    y_00.lo = filesize.hi;\n    iVar3 = uint64_compare(x_00,y_00);\n    if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }\n    if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;\n  }" { (if_statement "if (iVar3 == 0) goto LAB_00035b44;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00035b44;" goto statement_identifier ;)) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "x_00.hi = (ulong)puVar8;" (assignment_expression "x_00.hi = (ulong)puVar8" (field_expression "x_00.hi" identifier . field_identifier) = (cast_expression "(ulong)puVar8" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "x_00.lo = in_stack_ffffffd4;" (assignment_expression "x_00.lo = in_stack_ffffffd4" (field_expression "x_00.lo" identifier . field_identifier) = identifier) ;) (expression_statement "y_00.hi = uStack_28;" (assignment_expression "y_00.hi = uStack_28" (field_expression "y_00.hi" identifier . field_identifier) = identifier) ;) (expression_statement "y_00.lo = filesize.hi;" (assignment_expression "y_00.lo = filesize.hi" (field_expression "y_00.lo" identifier . field_identifier) = (field_expression "filesize.hi" identifier . field_identifier)) ;) (expression_statement "iVar3 = uint64_compare(x_00,y_00);" (assignment_expression "iVar3 = uint64_compare(x_00,y_00)" identifier = (call_expression "uint64_compare(x_00,y_00)" identifier (argument_list "(x_00,y_00)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) {\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar5 = puVar7[5];\n      iVar3 = puVar7[2];\n      (xfer->furthestdata).hi = puVar7[4];\n      (xfer->furthestdata).lo = uVar5;\n      goto LAB_00035b54;\n    }" { (expression_statement "uVar5 = puVar7[5];" (assignment_expression "uVar5 = puVar7[5]" identifier = (subscript_expression "puVar7[5]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = puVar7[2];" (assignment_expression "iVar3 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "(xfer->furthestdata).hi = puVar7[4];" (assignment_expression "(xfer->furthestdata).hi = puVar7[4]" (field_expression "(xfer->furthestdata).hi" (parenthesized_expression "(xfer->furthestdata)" ( (field_expression "xfer->furthestdata" identifier -> field_identifier) )) . field_identifier) = (subscript_expression "puVar7[4]" identifier [ number_literal ])) ;) (expression_statement "(xfer->furthestdata).lo = uVar5;" (assignment_expression "(xfer->furthestdata).lo = uVar5" (field_expression "(xfer->furthestdata).lo" (parenthesized_expression "(xfer->furthestdata)" ( (field_expression "xfer->furthestdata" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (goto_statement "goto LAB_00035b54;" goto statement_identifier ;) })) (if_statement "if ((int)puVar7[2] < (int)puVar7[1]) goto LAB_00035bf0;" if (parenthesized_expression "((int)puVar7[2] < (int)puVar7[1])" ( (binary_expression "(int)puVar7[2] < (int)puVar7[1]" (cast_expression "(int)puVar7[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[2]" identifier [ number_literal ])) < (cast_expression "(int)puVar7[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_00035bf0;" goto statement_identifier ;)) }))) (expression_statement "x.hi = (ulong)puVar8;" (assignment_expression "x.hi = (ulong)puVar8" (field_expression "x.hi" identifier . field_identifier) = (cast_expression "(ulong)puVar8" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "x.lo = in_stack_ffffffd4;" (assignment_expression "x.lo = in_stack_ffffffd4" (field_expression "x.lo" identifier . field_identifier) = identifier) ;) (expression_statement "y.hi = uStack_28;" (assignment_expression "y.hi = uStack_28" (field_expression "y.hi" identifier . field_identifier) = identifier) ;) (expression_statement "y.lo = filesize.hi;" (assignment_expression "y.lo = filesize.hi" (field_expression "y.lo" identifier . field_identifier) = (field_expression "filesize.hi" identifier . field_identifier)) ;) (expression_statement "iVar4 = uint64_compare(x,y);" (assignment_expression "iVar4 = uint64_compare(x,y)" identifier = (call_expression "uint64_compare(x,y)" identifier (argument_list "(x,y)" ( identifier , identifier )))) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar4) {\n    iVar4 = *(int *)(puVar8 + -0x7fc8);\n    iVar6 = *(int *)(puVar8 + -0x7fd8);\n    xfer->err = 1;\n    iVar3 = -1;\n    *(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar4 = *(int *)(puVar8 + -0x7fc8);\n    iVar6 = *(int *)(puVar8 + -0x7fd8);\n    xfer->err = 1;\n    iVar3 = -1;\n    *(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;\n    *(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;\n  }" { (expression_statement "iVar4 = *(int *)(puVar8 + -0x7fc8);" (assignment_expression "iVar4 = *(int *)(puVar8 + -0x7fc8)" identifier = (pointer_expression "*(int *)(puVar8 + -0x7fc8)" * (cast_expression "(int *)(puVar8 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fc8)" ( (binary_expression "puVar8 + -0x7fc8" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(puVar8 + -0x7fd8);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x7fd8)" identifier = (pointer_expression "*(int *)(puVar8 + -0x7fd8)" * (cast_expression "(int *)(puVar8 + -0x7fd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fd8)" ( (binary_expression "puVar8 + -0x7fd8" identifier + number_literal) ))))) ;) (expression_statement "xfer->err = 1;" (assignment_expression "xfer->err = 1" (field_expression "xfer->err" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "*(int *)(iVar6 + 0xe08) = iVar4 + 0x1280;" (assignment_expression "*(int *)(iVar6 + 0xe08) = iVar4 + 0x1280" (pointer_expression "*(int *)(iVar6 + 0xe08)" * (cast_expression "(int *)(iVar6 + 0xe08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xe08)" ( (binary_expression "iVar6 + 0xe08" identifier + number_literal) )))) = (binary_expression "iVar4 + 0x1280" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04)" * (cast_expression "(undefined4 *)(*(int *)(puVar8 + -0x7fd8) + 0xe04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar8 + -0x7fd8) + 0xe04)" ( (binary_expression "*(int *)(puVar8 + -0x7fd8) + 0xe04" (pointer_expression "*(int *)(puVar8 + -0x7fd8)" * (cast_expression "(int *)(puVar8 + -0x7fd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x7fd8)" ( (binary_expression "puVar8 + -0x7fd8" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) })) (labeled_statement "LAB_00035b88:\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) (expression_statement "(**(code **)(puVar8 + -0x74e0))();" (call_expression "(**(code **)(puVar8 + -0x74e0))()" (parenthesized_expression "(**(code **)(puVar8 + -0x74e0))" ( (pointer_expression "**(code **)(puVar8 + -0x74e0)" * (pointer_expression "*(code **)(puVar8 + -0x74e0)" * (cast_expression "(code **)(puVar8 + -0x74e0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + -0x74e0)" ( (binary_expression "puVar8 + -0x74e0" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x24) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x24)" * (cast_expression "(undefined4 *)(iVar2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 xfer_download_gotpkt(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 xfer_download_gotpkt(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "xfer_download_gotpkt(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = sftp_find_request(param_2);" (assignment_expression "iVar4 = sftp_find_request(param_2)" identifier = (call_expression "sftp_find_request(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }" { (expression_statement "uVar5 = 0x80000000;" (assignment_expression "uVar5 = 0x80000000" identifier = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (expression_statement "puVar7 = *(undefined4 **)(iVar4 + 8);" (assignment_expression "puVar7 = *(undefined4 **)(iVar4 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" { (expression_statement "uVar5 = 0x80000000;" (assignment_expression "uVar5 = 0x80000000" identifier = number_literal) ;) (expression_statement "*(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;" (assignment_expression "*(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250" (pointer_expression "*(undefined **)(PTR_DAT_000b0178 + 0xe08)" * (cast_expression "(undefined **)(PTR_DAT_000b0178 + 0xe08)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe08)" ( (binary_expression "PTR_DAT_000b0178 + 0xe08" identifier + number_literal) )))) = (binary_expression "PTR_s_Present_000b0188 + 0x1250" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" * (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" ( (binary_expression "PTR_DAT_000b0178 + 0xe04" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (expression_statement "iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);" (assignment_expression "iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1])" identifier = (call_expression "fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1])" identifier (argument_list "(param_2,iVar4,*puVar7,puVar7[1])" ( identifier , identifier , (pointer_expression "*puVar7" * identifier) , (subscript_expression "puVar7[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar7[2] = iVar4;" (assignment_expression "puVar7[2] = iVar4" (subscript_expression "puVar7[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" if (parenthesized_expression "(*(int *)(PTR_DAT_000b0178 + 0xe04) != 1)" ( (binary_expression "*(int *)(PTR_DAT_000b0178 + 0xe04) != 1" (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xe04)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0xe04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" ( (binary_expression "PTR_DAT_000b0178 + 0xe04" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar7[3] = 0xffffffff;" (assignment_expression "puVar7[3] = 0xffffffff" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00035b88;" goto statement_identifier ;) })) (labeled_statement "LAB_00035b44:\n    iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar7[2] = 0;" (assignment_expression "puVar7[2] = 0" (subscript_expression "puVar7[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" statement_identifier : (if_statement "if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" if (parenthesized_expression "(iVar4 < (int)puVar7[1])" ( (binary_expression "iVar4 < (int)puVar7[1]" identifier < (cast_expression "(int)puVar7[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" { (labeled_statement "LAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }" statement_identifier : (if_statement "if (iVar4 < 0) {\n        iVar4 = 0;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar4 = 0;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);" (call_expression "uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4)" identifier (argument_list "(&local_24,puVar7[4],puVar7[5],iVar4)" ( (pointer_expression "&local_24" & identifier) , (subscript_expression "puVar7[4]" identifier [ number_literal ]) , (subscript_expression "puVar7[5]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);" (assignment_expression "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" identifier = (call_expression "uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , identifier , identifier )))) ;) (if_statement "if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = local_24;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = local_24" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = local_20;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = local_20" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) }))) }) (else_clause "else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" else (compound_statement "{\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" { (if_statement "if (iVar4 == 0) goto LAB_00035b44;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00035b44;" goto statement_identifier ;)) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);" (assignment_expression "iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5])" identifier = (call_expression "uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5])" identifier (argument_list "(uVar5,uVar6,puVar7[4],puVar7[5])" ( identifier , identifier , (subscript_expression "puVar7[4]" identifier [ number_literal ]) , (subscript_expression "puVar7[5]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }" { (expression_statement "uVar5 = puVar7[5];" (assignment_expression "uVar5 = puVar7[5]" identifier = (subscript_expression "puVar7[5]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = puVar7[2];" (assignment_expression "iVar4 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = puVar7[4];" (assignment_expression "*(undefined4 *)(param_1 + 8) = puVar7[4]" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (subscript_expression "puVar7[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00035b54;" goto statement_identifier ;) })) (expression_statement "iVar4 = puVar7[2];" (assignment_expression "iVar4 = puVar7[2]" identifier = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;" if (parenthesized_expression "(iVar4 < (int)puVar7[1])" ( (binary_expression "iVar4 < (int)puVar7[1]" identifier < (cast_expression "(int)puVar7[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_00035bf0;" goto statement_identifier ;)) }))) (expression_statement "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "puVar2 = PTR_s_Present_000b0188;" (assignment_expression "puVar2 = PTR_s_Present_000b0188" identifier = identifier) ;) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" identifier = identifier) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;" (assignment_expression "*(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280" (pointer_expression "*(undefined **)(puVar1 + 0xe08)" * (cast_expression "(undefined **)(puVar1 + 0xe08)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xe08)" ( (binary_expression "puVar1 + 0xe08" identifier + number_literal) )))) = (binary_expression "puVar2 + 0x1280" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" * (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" ( (binary_expression "PTR_DAT_000b0178 + 0xe04" identifier + number_literal) )))) = number_literal) ;) })) (labeled_statement "LAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" statement_identifier : (if_statement "if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" if (parenthesized_expression "(local_1c != *(int *)puVar3)" ( (binary_expression "local_1c != *(int *)puVar3" identifier != (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(local_1c + 0x24) = 1;" (assignment_expression "*(undefined4 *)(local_1c + 0x24) = 1" (pointer_expression "*(undefined4 *)(local_1c + 0x24)" * (cast_expression "(undefined4 *)(local_1c + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1c + 0x24)" ( (binary_expression "local_1c + 0x24" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement 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) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (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) ;) })) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (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 IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 xfer_download_gotpkt(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}" (type_identifier "undefined4") (function_declarator "xfer_download_gotpkt(int param_1,undefined4 param_2)" (identifier "xfer_download_gotpkt") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar4 = sftp_find_request(param_2);\n  if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }\n  puVar7 = *(undefined4 **)(iVar4 + 8);\n  if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }\n  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);\n  puVar7[2] = iVar4;\n  if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }\n  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));\n  puVar2 = PTR_s_Present_000b0188;\n  puVar1 = PTR_DAT_000b0178;\n  uVar5 = 1;\n  if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }\nLAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }\n  return uVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (expression_statement "iVar4 = sftp_find_request(param_2);" (assignment_expression "iVar4 = sftp_find_request(param_2)" (identifier "iVar4") (= "=") (call_expression "sftp_find_request(param_2)" (identifier "sftp_find_request") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 0x80000000;\n    goto LAB_00035b88;\n  }" ({ "{") (expression_statement "uVar5 = 0x80000000;" (assignment_expression "uVar5 = 0x80000000" (identifier "uVar5") (= "=") (number_literal "0x80000000")) (; ";")) (goto_statement "goto LAB_00035b88;" (goto "goto") (statement_identifier "LAB_00035b88") (; ";")) (} "}"))) (expression_statement "puVar7 = *(undefined4 **)(iVar4 + 8);" (assignment_expression "puVar7 = *(undefined4 **)(iVar4 + 8)" (identifier "puVar7") (= "=") (pointer_expression "*(undefined4 **)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (puVar7 == (undefined4 *)0x0) {\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" (if "if") (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar7 == (undefined4 *)0x0" (identifier "puVar7") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar5 = 0x80000000;\n    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n    goto LAB_00035b88;\n  }" ({ "{") (expression_statement "uVar5 = 0x80000000;" (assignment_expression "uVar5 = 0x80000000" (identifier "uVar5") (= "=") (number_literal "0x80000000")) (; ";")) (expression_statement "*(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;" (assignment_expression "*(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250" (pointer_expression "*(undefined **)(PTR_DAT_000b0178 + 0xe08)" (* "*") (cast_expression "(undefined **)(PTR_DAT_000b0178 + 0xe08)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xe08)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xe08" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xe08")) () ")")))) (= "=") (binary_expression "PTR_s_Present_000b0188 + 0x1250" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x1250"))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xe04" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xe04")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_00035b88;" (goto "goto") (statement_identifier "LAB_00035b88") (; ";")) (} "}"))) (expression_statement "iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);" (assignment_expression "iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1])" (identifier "iVar4") (= "=") (call_expression "fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1])" (identifier "fxp_read_recv") (argument_list "(param_2,iVar4,*puVar7,puVar7[1])" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") (, ",") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (, ",") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "puVar7[2] = iVar4;" (assignment_expression "puVar7[2] = iVar4" (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 < 0) {\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }\n  else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 0xffffffff;\n    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }\nLAB_00035b44:\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 0x20) = 1;\n    puVar7[2] = 0;\n    puVar7[3] = 1;\nLAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_000b0178 + 0xe04) != 1)" (( "(") (binary_expression "*(int *)(PTR_DAT_000b0178 + 0xe04) != 1" (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0xe04)" (* "*") (cast_expression "(int *)(PTR_DAT_000b0178 + 0xe04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xe04" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xe04")) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x24) = 1;\n      puVar7[3] = 0xffffffff;\n      goto LAB_00035b88;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar7[3] = 0xffffffff;" (assignment_expression "puVar7[3] = 0xffffffff" (subscript_expression "puVar7[3]" (identifier "puVar7") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_00035b88;" (goto "goto") (statement_identifier "LAB_00035b88") (; ";")) (} "}"))) (labeled_statement "LAB_00035b44:\n    iVar4 = 0;" (statement_identifier "LAB_00035b44") (: ":") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";"))) (expression_statement "*(undefined4 *)(param_1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar7[2] = 0;" (assignment_expression "puVar7[2] = 0" (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" (identifier "puVar7") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_00035b54:\n    if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" (statement_identifier "LAB_00035b54") (: ":") (if_statement "if (iVar4 < (int)puVar7[1]) {\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 < (int)puVar7[1])" (( "(") (binary_expression "iVar4 < (int)puVar7[1]" (identifier "iVar4") (< "<") (cast_expression "(int)puVar7[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\nLAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }\n      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);\n      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);\n      if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }\n    }" ({ "{") (labeled_statement "LAB_00035bf0:\n      if (iVar4 < 0) {\n        iVar4 = 0;\n      }" (statement_identifier "LAB_00035bf0") (: ":") (if_statement "if (iVar4 < 0) {\n        iVar4 = 0;\n      }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = 0;\n      }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);" (call_expression "uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4)" (identifier "uint64_add32") (argument_list "(&local_24,puVar7[4],puVar7[5],iVar4)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (subscript_expression "puVar7[4]" (identifier "puVar7") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "puVar7[5]" (identifier "puVar7") ([ "[") (number_literal "5") (] "]")) (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20);" (assignment_expression "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" (identifier "iVar4") (= "=") (call_expression "uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" (identifier "uint64_compare") (argument_list "(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                             local_24,local_20)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "local_24") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (0 < iVar4) {\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x10) = local_24;\n        *(undefined4 *)(param_1 + 0x14) = local_20;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = local_24;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = local_24" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = local_20;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = local_20" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "local_20")) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" (else "else") (compound_statement "{\n    if (iVar4 == 0) goto LAB_00035b44;\n    uVar5 = *(undefined4 *)(param_1 + 8);\n    uVar6 = *(undefined4 *)(param_1 + 0xc);\n    puVar7[3] = 1;\n    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);\n    if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }\n    iVar4 = puVar7[2];\n    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;\n  }" ({ "{") (if_statement "if (iVar4 == 0) goto LAB_00035b44;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00035b44;" (goto "goto") (statement_identifier "LAB_00035b44") (; ";"))) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 8)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0xc)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar7[3] = 1;" (assignment_expression "puVar7[3] = 1" (subscript_expression "puVar7[3]" (identifier "puVar7") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);" (assignment_expression "iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5])" (identifier "iVar4") (= "=") (call_expression "uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5])" (identifier "uint64_compare") (argument_list "(uVar5,uVar6,puVar7[4],puVar7[5])" (( "(") (identifier "uVar5") (, ",") (identifier "uVar6") (, ",") (subscript_expression "puVar7[4]" (identifier "puVar7") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "puVar7[5]" (identifier "puVar7") ([ "[") (number_literal "5") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = puVar7[5];\n      iVar4 = puVar7[2];\n      *(undefined4 *)(param_1 + 8) = puVar7[4];\n      *(undefined4 *)(param_1 + 0xc) = uVar5;\n      goto LAB_00035b54;\n    }" ({ "{") (expression_statement "uVar5 = puVar7[5];" (assignment_expression "uVar5 = puVar7[5]" (identifier "uVar5") (= "=") (subscript_expression "puVar7[5]" (identifier "puVar7") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "iVar4 = puVar7[2];" (assignment_expression "iVar4 = puVar7[2]" (identifier "iVar4") (= "=") (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = puVar7[4];" (assignment_expression "*(undefined4 *)(param_1 + 8) = puVar7[4]" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (subscript_expression "puVar7[4]" (identifier "puVar7") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (goto_statement "goto LAB_00035b54;" (goto "goto") (statement_identifier "LAB_00035b54") (; ";")) (} "}"))) (expression_statement "iVar4 = puVar7[2];" (assignment_expression "iVar4 = puVar7[2]" (identifier "iVar4") (= "=") (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;" (if "if") (parenthesized_expression "(iVar4 < (int)puVar7[1])" (( "(") (binary_expression "iVar4 < (int)puVar7[1]" (identifier "iVar4") (< "<") (cast_expression "(int)puVar7[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")))) () ")")) (goto_statement "goto LAB_00035bf0;" (goto "goto") (statement_identifier "LAB_00035bf0") (; ";"))) (} "}")))) (expression_statement "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" (identifier "iVar4") (= "=") (call_expression "uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" (identifier "uint64_compare") (argument_list "(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),\n                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (expression_statement "puVar2 = PTR_s_Present_000b0188;" (assignment_expression "puVar2 = PTR_s_Present_000b0188" (identifier "puVar2") (= "=") (identifier "PTR_s_Present_000b0188")) (; ";")) (expression_statement "puVar1 = PTR_DAT_000b0178;" (assignment_expression "puVar1 = PTR_DAT_000b0178" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000b0178")) (; ";")) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (if_statement "if (0 < iVar4) {\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 1;\n    uVar5 = 0xffffffff;\n    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;\n    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;" (assignment_expression "*(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280" (pointer_expression "*(undefined **)(puVar1 + 0xe08)" (* "*") (cast_expression "(undefined **)(puVar1 + 0xe08)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0xe08)" (( "(") (binary_expression "puVar1 + 0xe08" (identifier "puVar1") (+ "+") (number_literal "0xe08")) () ")")))) (= "=") (binary_expression "puVar2 + 0x1280" (identifier "puVar2") (+ "+") (number_literal "0x1280"))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b0178 + 0xe04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0xe04)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0xe04" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0xe04")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (labeled_statement "LAB_00035b88:\n  if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" (statement_identifier "LAB_00035b88") (: ":") (if_statement "if (local_1c != *(int *)puVar3) {\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" (if "if") (parenthesized_expression "(local_1c != *(int *)puVar3)" (( "(") (binary_expression "local_1c != *(int *)puVar3" (identifier "local_1c") (!= "!=") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    *(undefined4 *)(local_1c + 0x24) = 1;\n    return 1;\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(local_1c + 0x24) = 1;" (assignment_expression "*(undefined4 *)(local_1c + 0x24) = 1" (pointer_expression "*(undefined4 *)(local_1c + 0x24)" (* "*") (cast_expression "(undefined4 *)(local_1c + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1c + 0x24)" (( "(") (binary_expression "local_1c + 0x24" (identifier "local_1c") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))
(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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (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))))) 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))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (goto_statement label: (statement_identifier)))) (labeled_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: (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))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (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))))) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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))))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_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))))))) (expression_statement (assignment_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))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (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))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (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))))) (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))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  undefined4 local_24;
  undefined4 local_20;
  int local_1c;
  
  puVar3 = PTR___stack_chk_guard_000b0c9c;
  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;
  iVar4 = sftp_find_request(param_2);
  if (iVar4 == 0) {
    uVar5 = 0x80000000;
    goto LAB_00035b88;
  }
  puVar7 = *(undefined4 **)(iVar4 + 8);
  if (puVar7 == (undefined4 *)0x0) {
    uVar5 = 0x80000000;
    *(undefined **)(PTR_DAT_000b0178 + 0xe08) = PTR_s_Present_000b0188 + 0x1250;
    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;
    goto LAB_00035b88;
  }
  iVar4 = fxp_read_recv(param_2,iVar4,*puVar7,puVar7[1]);
  puVar7[2] = iVar4;
  if (iVar4 < 0) {
    uVar5 = 0xffffffff;
    if (*(int *)(PTR_DAT_000b0178 + 0xe04) != 1) {
      *(undefined4 *)(param_1 + 0x24) = 1;
      puVar7[3] = 0xffffffff;
      goto LAB_00035b88;
    }
LAB_00035b44:
    iVar4 = 0;
    *(undefined4 *)(param_1 + 0x20) = 1;
    puVar7[2] = 0;
    puVar7[3] = 1;
LAB_00035b54:
    if (iVar4 < (int)puVar7[1]) {
LAB_00035bf0:
      if (iVar4 < 0) {
        iVar4 = 0;
      }
      uint64_add32(&local_24,puVar7[4],puVar7[5],iVar4);
      iVar4 = uint64_compare(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),
                             local_24,local_20);
      if (0 < iVar4) {
        *(undefined4 *)(param_1 + 0x10) = local_24;
        *(undefined4 *)(param_1 + 0x14) = local_20;
      }
    }
  }
  else {
    if (iVar4 == 0) goto LAB_00035b44;
    uVar5 = *(undefined4 *)(param_1 + 8);
    uVar6 = *(undefined4 *)(param_1 + 0xc);
    puVar7[3] = 1;
    iVar4 = uint64_compare(uVar5,uVar6,puVar7[4],puVar7[5]);
    if (iVar4 < 0) {
      uVar5 = puVar7[5];
      iVar4 = puVar7[2];
      *(undefined4 *)(param_1 + 8) = puVar7[4];
      *(undefined4 *)(param_1 + 0xc) = uVar5;
      goto LAB_00035b54;
    }
    iVar4 = puVar7[2];
    if (iVar4 < (int)puVar7[1]) goto LAB_00035bf0;
  }
  iVar4 = uint64_compare(*(undefined4 *)(param_1 + 8),*(undefined4 *)(param_1 + 0xc),
                         *(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14));
  puVar2 = PTR_s_Present_000b0188;
  puVar1 = PTR_DAT_000b0178;
  uVar5 = 1;
  if (0 < iVar4) {
    *(undefined4 *)(param_1 + 0x24) = 1;
    uVar5 = 0xffffffff;
    *(undefined **)(puVar1 + 0xe08) = puVar2 + 0x1280;
    *(undefined4 *)(PTR_DAT_000b0178 + 0xe04) = 0xffffffff;
  }
LAB_00035b88:
  if (local_1c != *(int *)puVar3) {
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    *(undefined4 *)(local_1c + 0x24) = 1;
    return 1;
  }
  return uVar5;
}

