
int sftp_put_file(char *fname,char *outfname,int recurse,int restart)

{
  bool bVar1;
  uint64 offset_00;
  uint64 x;
  bool bVar2;
  int iVar3;
  int iVar4;
  sftp_request *psVar5;
  sftp_packet *psVar6;
  fxp_handle *handle;
  fxp_xfer *xfer;
  int iVar7;
  undefined *puVar8;
  undefined4 uVar9;
  char *pcVar10;
  undefined *puVar11;
  size_t n;
  undefined4 *ptr;
  long *plVar12;
  ulong in_stack_ffffef5c;
  long permissions;
  uint64 offset;
  undefined4 local_1074;
  undefined4 local_1070;
  fxp_attrs attrs;
  fxp_attrs attrs_1;
  char decbuf [30];
  
  puVar11 = PTR___stack_chk_guard_000b2f04;
  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;
  if ((recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)) {
    psVar5 = fxp_stat_send(outfname);
    psVar6 = sftp_wait_for_reply(psVar5);
    iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);
    if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {
      psVar5 = fxp_mkdir_send(outfname);
      psVar6 = sftp_wait_for_reply(psVar5);
      iVar4 = fxp_mkdir_recv(psVar6,psVar5);
      if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
        fxp_error();
      }
    }
    iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);
    if (iVar4 != 0) {
      ptr = (undefined4 *)0x0;
      n = 0;
      iVar3 = 0;
      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {
        if ((int)n <= iVar3) {
          n = n + 0x80;
          ptr = (undefined4 *)saferealloc(ptr,n,4);
        }
        ptr[iVar3] = iVar7;
        iVar3 = iVar3 + 1;
      }
      (*(code *)PTR_close_directory_000b2728)(iVar4);
      if (iVar3 != 0) {
        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);
        puVar11 = PTR_sftp_put_file_000b272c;
        if (restart != 0) {
          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);
          psVar5 = fxp_stat_send(pcVar10);
          psVar6 = sftp_wait_for_reply(psVar5);
          fxp_stat_recv(psVar6,psVar5,&attrs);
                    /* WARNING: Subroutine does not return */
          safefree(pcVar10);
        }
        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;
        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);
        pcVar10 = dupcat(outfname,puVar8,*ptr,0);
        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);
                    /* WARNING: Subroutine does not return */
        safefree(pcVar10);
      }
                    /* WARNING: Subroutine does not return */
      safefree(ptr);
    }
    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);
    goto LAB_000294b8;
  }
  plVar12 = &permissions;
  recurse = (*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0);
  if (recurse == 0) {
    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);
    goto LAB_000294b8;
  }
  attrs.flags = 0;
  if (-1 < permissions) {
    attrs.permissions = permissions;
    attrs.flags = 4;
  }
  if (restart == 0) {
    psVar5 = fxp_open_send(outfname,0x1a,&attrs);
    psVar6 = sftp_wait_for_reply(psVar5);
    handle = fxp_open_recv(psVar6,psVar5);
    if (handle == (fxp_handle *)0x0) {
LAB_00029584:
      (*(code *)PTR_close_rfile_000b2720)(recurse);
                    /* WARNING: Subroutine does not return */
      fxp_error();
    }
    uint64_make(0,0);
  }
  else {
    psVar5 = fxp_open_send(outfname,2,&attrs);
    psVar6 = sftp_wait_for_reply(psVar5);
    handle = fxp_open_recv(psVar6,psVar5);
    if (handle == (fxp_handle *)0x0) goto LAB_00029584;
    psVar5 = fxp_fstat_send(handle);
    psVar6 = sftp_wait_for_reply(psVar5);
    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);
    if (iVar4 == 0) {
                    /* WARNING: Subroutine does not return */
      fxp_error();
    }
    if ((attrs_1.flags & 1) == 0) {
      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);
      psVar5 = fxp_close_send(handle);
      psVar6 = sftp_wait_for_reply(psVar5);
      fxp_close_recv(psVar6,psVar5);
      while( true ) {
        (*(code *)PTR_close_rfile_000b2720)(recurse);
LAB_000294b8:
        if (iVar3 == *(int *)puVar11) break;
        (*(code *)PTR___stack_chk_fail_000b2ed8)();
      }
      return 0;
    }
    offset.hi = attrs_1.size.hi;
    offset.lo = attrs_1.size.lo;
    x.hi = (ulong)plVar12;
    x.lo = in_stack_ffffef5c;
    uint64_decimal(x,(char *)attrs_1.size.hi);
    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);
    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);
    if (iVar3 != 0) {
      uint64_make(0,0);
      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);
    }
  }
  (*(code *)PTR___printf_chk_000b2de0)
            (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname);
  bVar1 = false;
  bVar2 = false;
  offset_00.hi = (ulong)plVar12;
  offset_00.lo = in_stack_ffffef5c;
  xfer = xfer_upload_init(handle,offset_00);
  puVar11 = PTR_s_acket_from_server___s_000b23a8 + 0x278;
LAB_000290f0:
  if ((!bVar2) && (!bVar1)) {
    iVar3 = xfer_upload_ready(xfer);
    if (iVar3 != 0) goto LAB_0002913c;
    bVar1 = false;
    bVar2 = false;
    goto LAB_00029178;
  }
  do {
    iVar3 = xfer_done(xfer);
    if (iVar3 != 0) {
                    /* WARNING: Subroutine does not return */
      xfer_cleanup(xfer);
    }
    iVar3 = xfer_upload_ready(xfer);
    if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {
LAB_0002913c:
      do {
        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);
        if (iVar3 == -1) {
          bVar1 = false;
          bVar2 = true;
          (*(code *)PTR_puts_000b2e84)(puVar11);
          xfer_upload_ready(xfer);
          goto LAB_00029178;
        }
        if (iVar3 == 0) {
          bVar1 = true;
          xfer_upload_ready(xfer);
          bVar2 = false;
          goto LAB_00029178;
        }
        xfer_upload_data(xfer,decbuf,iVar3);
        iVar3 = xfer_upload_ready(xfer);
      } while (iVar3 != 0);
      bVar1 = false;
      bVar2 = false;
    }
LAB_00029178:
    iVar3 = xfer_done(xfer);
    if (iVar3 != 0) goto LAB_000290f0;
    psVar6 = sftp_recv();
    iVar3 = xfer_upload_gotpkt(xfer,psVar6);
    if (0 < iVar3) goto LAB_000290f0;
    if (iVar3 == -0x80000000) {
                    /* WARNING: Subroutine does not return */
      safefree(psVar6);
    }
    if (!bVar2) {
                    /* WARNING: Subroutine does not return */
      fxp_error();
    }
  } while( true );
}



uint sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int iVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined4 *puVar10;
  uint uVar11;
  int iVar12;
  undefined *puVar13;
  undefined4 *puVar14;
  uint local_1080;
  undefined4 local_107c;
  undefined4 local_1078;
  undefined4 local_1074;
  undefined4 local_1070;
  uint local_106c [5];
  uint local_1058;
  uint local_104c;
  undefined4 local_1048;
  undefined4 local_1044;
  undefined1 auStack_102c [4096];
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;
  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {
    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);
    if (param_3 == 0) {
      uVar11 = 0;
      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);
    }
    else {
      local_106c[0] = 0;
      if (-1 < (int)local_1080) {
        local_1058 = local_1080;
        local_106c[0] = 4;
      }
      if (param_4 == 0) {
        uVar4 = fxp_open_send(param_2,0x1a,local_106c);
        uVar5 = sftp_wait_for_reply(uVar4);
        iVar3 = fxp_open_recv(uVar5,uVar4);
        if (iVar3 != 0) {
          uint64_make(&local_107c,0,0);
LAB_00029098:
          (*(code *)PTR___printf_chk_000b2de0)
                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);
          bVar1 = false;
          uVar11 = 0;
          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);
          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;
          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;
LAB_000290f0:
          do {
            if ((uVar11 == 0) && (!bVar1)) {
              iVar6 = xfer_upload_ready(uVar4);
              if (iVar6 != 0) goto LAB_0002913c;
              bVar1 = false;
              uVar11 = 0;
              goto LAB_00029178;
            }
LAB_00029104:
            iVar6 = xfer_done(uVar4);
            if (iVar6 != 0) {
              xfer_cleanup(uVar4);
              uVar4 = fxp_close_send(iVar3);
              uVar5 = sftp_wait_for_reply(uVar4);
              iVar3 = fxp_close_recv(uVar5,uVar4);
              if (iVar3 == 0) {
                if (uVar11 != 0) goto LAB_00029948;
                uVar4 = fxp_error();
                (*(code *)PTR___printf_chk_000b2de0)
                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);
                uVar11 = 0;
                goto LAB_000294a8;
              }
              uVar11 = uVar11 ^ 1;
              goto LAB_000294a8;
            }
            iVar6 = xfer_upload_ready(uVar4);
            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {
LAB_0002913c:
              do {
                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);
                if (iVar6 == -1) {
                  bVar1 = false;
                  uVar11 = 1;
                  (*(code *)PTR_puts_000b2e84)(puVar9);
                  xfer_upload_ready(uVar4);
                  goto LAB_00029178;
                }
                if (iVar6 == 0) {
                  bVar1 = true;
                  xfer_upload_ready(uVar4);
                  uVar11 = 0;
                  goto LAB_00029178;
                }
                xfer_upload_data(uVar4,auStack_102c,iVar6);
                iVar6 = xfer_upload_ready(uVar4);
              } while (iVar6 != 0);
              bVar1 = false;
              uVar11 = 0;
            }
LAB_00029178:
            iVar6 = xfer_done(uVar4);
          } while (iVar6 != 0);
          uVar5 = sftp_recv();
          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);
          if (0 < iVar6) goto LAB_000290f0;
          if (iVar6 == -0x80000000) {
            safefree(uVar5);
          }
          if (uVar11 == 0) {
            uVar11 = 1;
            uVar5 = fxp_error();
            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);
          }
          goto LAB_00029104;
        }
      }
      else {
        uVar4 = fxp_open_send(param_2,2,local_106c);
        uVar5 = sftp_wait_for_reply(uVar4);
        iVar3 = fxp_open_recv(uVar5,uVar4);
        if (iVar3 != 0) {
          uVar4 = fxp_fstat_send(iVar3);
          uVar5 = sftp_wait_for_reply(uVar4);
          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);
          if (iVar6 == 0) {
            uVar4 = fxp_error();
            (*(code *)PTR___printf_chk_000b2de0)
                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);
          }
          else {
            if ((local_104c & 1) != 0) {
              local_107c = local_1048;
              local_1078 = local_1044;
              uint64_decimal(local_1048,local_1044,auStack_102c);
              (*(code *)PTR___printf_chk_000b2de0)
                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);
              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);
              if (iVar6 != 0) {
                uint64_make(&local_1074,0,0);
                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);
              }
              goto LAB_00029098;
            }
            (*(code *)PTR___printf_chk_000b2de0)
                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);
          }
          uVar11 = 0;
          uVar4 = fxp_close_send(iVar3);
          uVar5 = sftp_wait_for_reply(uVar4);
          fxp_close_recv(uVar5,uVar4);
          goto LAB_000294a8;
        }
      }
      uVar11 = 0;
      (*(code *)PTR_close_rfile_000b2720)(param_3);
      uVar4 = fxp_error();
      (*(code *)PTR___printf_chk_000b2de0)
                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);
    }
    goto LAB_000294b8;
  }
  uVar4 = fxp_stat_send(param_2);
  uVar5 = sftp_wait_for_reply(uVar4);
  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);
  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {
    uVar4 = fxp_mkdir_send(param_2);
    uVar5 = sftp_wait_for_reply(uVar4);
    iVar3 = fxp_mkdir_recv(uVar5,uVar4);
    if (iVar3 == 0) {
      uVar4 = fxp_error();
      (*(code *)PTR___printf_chk_000b2de0)
                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);
      uVar11 = 0;
      goto LAB_000294b8;
    }
  }
  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);
  if (iVar3 == 0) {
    uVar11 = 0;
    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);
    goto LAB_000294b8;
  }
  puVar14 = (undefined4 *)0x0;
  iVar12 = 0;
  iVar6 = 0;
  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {
    if (iVar12 <= iVar6) {
      iVar12 = iVar12 + 0x80;
      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);
    }
    puVar14[iVar6] = iVar7;
    iVar6 = iVar6 + 1;
  }
  (*(code *)PTR_close_directory_000b2728)(iVar3);
  if (iVar6 != 0) {
    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);
    puVar9 = PTR_s_acket_from_server___s_000b23a8;
    if (param_4 == 0) {
      iVar12 = 0;
LAB_000296f0:
      puVar13 = PTR_sftp_put_file_000b272c;
      puVar10 = puVar14 + iVar12;
      do {
        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);
        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);
        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);
        safefree(uVar5);
        safefree(uVar4);
        if (iVar3 == 0) {
          iVar3 = 0;
          puVar10 = puVar14;
          do {
            iVar3 = iVar3 + 1;
            uVar4 = *puVar10;
            puVar10 = puVar10 + 1;
            safefree(uVar4);
          } while (iVar3 < iVar6);
          safefree(puVar14);
          uVar11 = 0;
          goto LAB_000294b8;
        }
        iVar12 = iVar12 + 1;
        puVar10 = puVar10 + 1;
        param_4 = 0;
      } while (iVar12 < iVar6);
    }
    else {
      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;
      iVar3 = 0;
      puVar10 = puVar14;
      do {
        iVar12 = iVar3;
        uVar4 = dupcat(param_2,puVar13,*puVar10,0);
        uVar5 = fxp_stat_send(uVar4);
        uVar8 = sftp_wait_for_reply(uVar5);
        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);
        safefree(uVar4);
        if (iVar3 == 0) {
          if (iVar12 == 0) goto LAB_000296f0;
          iVar12 = iVar12 + -1;
          break;
        }
        puVar10 = puVar10 + 1;
        iVar3 = iVar12 + 1;
      } while (iVar6 != iVar12 + 1);
      if (iVar12 < iVar6) goto LAB_000296f0;
    }
    iVar3 = 0;
    puVar10 = puVar14;
    do {
      iVar3 = iVar3 + 1;
      uVar4 = *puVar10;
      puVar10 = puVar10 + 1;
      safefree(uVar4);
    } while (iVar3 < iVar6);
  }
  uVar11 = 1;
  safefree(puVar14);
LAB_000294b8:
  while (local_2c != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_000b2ed8)();
LAB_00029948:
    uVar11 = 0;
LAB_000294a8:
    (*(code *)PTR_close_rfile_000b2720)(param_3);
  }
  return uVar11;
}


lui gp,0x9
addiu gp,gp,0x13f8
addu gp,gp,t9
lw v0,-0x746c(gp)
addiu sp,sp,-0x10b8
sw v0,0x20(sp)
sw gp,0x18(sp)
sw s5,0x10a4(sp)
or s5,a3,zero
sw s2,0x1098(sp)
or s2,a0,zero
sw s1,0x1094(sp)
or s1,a1,zero
sw ra,0x10b4(sp)
sw s8,0x10b0(sp)
sw s7,0x10ac(sp)
sw s6,0x10a8(sp)
sw s4,0x10a0(sp)
sw s3,0x109c(sp)
sw s0,0x1090(sp)
lw v0,0x0(v0)
sw v0,0x108c(sp)
beq a2,zero,0x00028ff4
_lw t9,-0x7c7c(gp)
lw t9,-0x7cc0(gp)
jalr t9
_or s6,a2,zero
li v1,0x2
beq v0,v1,0x00029338
_lw gp,0x18(sp)
lw t9,-0x7c7c(gp)
addiu v0,sp,0x38
or a3,zero,zero
or a2,zero,zero
sw v0,0x10(sp)
or a1,zero,zero
jalr t9
_or a0,s2,zero
lw gp,0x18(sp)
beq v0,zero,0x00029560
_or s6,v0,zero
lw v0,0x38(sp)
bltz v0,0x00029034
_sw zero,0x4c(sp)
sw v0,0x60(sp)
li v0,0x4
sw v0,0x4c(sp)
lw t9,-0x7cf8(gp)
bne s5,zero,0x000291f4
_addiu a2,sp,0x4c
lw s3,-0x7d08(gp)
li a1,0x1a
bal 0x00034838
_or a0,s1,zero
or a0,v0,zero
or t9,s3,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
or a1,s0,zero
lw t9,-0x7cf4(gp)
bal 0x000349bc
_or a0,v0,zero
lw gp,0x18(sp)
beq v0,zero,0x00029584
_or s5,v0,zero
lw t9,-0x7f64(gp)
or a2,zero,zero
or a1,zero,zero
bal 0x0001e310
_addiu a0,sp,0x3c
lw gp,0x18(sp)
lw a1,-0x7fc8(gp)
li a0,0x1
lw t9,-0x7590(gp)
or a2,s2,zero
or a3,s1,zero
addiu a1,a1,0x260
jalr t9
_addiu s8,sp,0x8c
or a0,s5,zero
lw gp,0x18(sp)
or s2,zero,zero
lw a1,0x3c(sp)
or s4,zero,zero
lw t9,-0x7c78(gp)
bal 0x00036854
_lw a2,0x40(sp)
lw gp,0x18(sp)
or s0,v0,zero
lw s1,-0x7fc8(gp)
lw s7,-0x7fc8(gp)
addiu s1,s1,0x278
addiu s7,s7,0x298
bne s4,zero,0x00029104
_lw t9,-0x7ce8(gp)
beq s2,zero,0x0002931c
_lw t9,-0x7c74(gp)
lw t9,-0x7ce8(gp)
bal 0x000362f8
_or a0,s0,zero
bne v0,zero,0x0002962c
_lw gp,0x18(sp)
lw t9,-0x7c74(gp)
bal 0x00036894
_or a0,s0,zero
beq v0,zero,0x00029174
_lw gp,0x18(sp)
bne s4,zero,0x00029178
_lw t9,-0x7ce8(gp)
bne s2,zero,0x00029174
_nop
li s2,-0x1
lw t9,-0x7c70(gp)
li a2,0x1000
or a1,s8,zero
jalr t9
_or a0,s6,zero
lw gp,0x18(sp)
beq v0,s2,0x00029534
_or s4,v0,zero
bne v0,zero,0x000294fc
_lw t9,-0x7c74(gp)
or a0,s0,zero
bal 0x00036894
_li s2,0x1
lw gp,0x18(sp)
lw t9,-0x7ce8(gp)
bal 0x000362f8
_or a0,s0,zero
bne v0,zero,0x000290f0
_lw gp,0x18(sp)
lw t9,-0x7d1c(gp)
bal 0x00034160
_nop
or a0,s0,zero
lw gp,0x18(sp)
or a1,v0,zero
lw t9,-0x7c6c(gp)
bal 0x00036a08
_sw v0,0x24(sp)
bgtz v0,0x000290f0
_lw gp,0x18(sp)
lui a0,0x8000
beq v0,a0,0x00029928
_lw a2,0x24(sp)
bne s4,zero,0x00029104
_lw t9,-0x7ce8(gp)
lw t9,-0x7d14(gp)
bal 0x000343e0
_li s4,0x1
li a0,0x1
lw gp,0x18(sp)
or a2,v0,zero
lw t9,-0x7590(gp)
jalr t9
_or a1,s7,zero
b 0x00029100
_lw gp,0x18(sp)
lw s3,-0x7d08(gp)
li a1,0x2
bal 0x00034838
_or a0,s1,zero
or a0,v0,zero
or t9,s3,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
or a1,s0,zero
lw t9,-0x7cf4(gp)
bal 0x000349bc
_or a0,v0,zero
lw gp,0x18(sp)
beq v0,zero,0x00029584
_or s5,v0,zero
lw t9,-0x7c68(gp)
bal 0x0003545c
_or a0,v0,zero
or t9,s3,zero
or a0,v0,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
addiu a2,sp,0x6c
or a1,s0,zero
lw t9,-0x7c64(gp)
bal 0x00035568
_or a0,v0,zero
beq v0,zero,0x000295f8
_lw gp,0x18(sp)
lw v0,0x6c(sp)
andi v0,v0,0x1
beq v0,zero,0x00029454
_lw v1,0x70(sp)
addiu s0,sp,0x8c
lw v0,0x74(sp)
lw t9,-0x7c94(gp)
or a2,s0,zero
or a0,v1,zero
sw v1,0x3c(sp)
or a1,v0,zero
bal 0x0001e114
_sw v0,0x40(sp)
li a0,0x1
lw gp,0x18(sp)
or a2,s0,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7590(gp)
jalr t9
_addiu a1,a1,0x238
or a3,zero,zero
lw gp,0x18(sp)
or a0,s6,zero
lw a1,0x3c(sp)
lw t9,-0x7c9c(gp)
jalr t9
_lw a2,0x40(sp)
beq v0,zero,0x00029098
_lw gp,0x18(sp)
lw t9,-0x7f64(gp)
or a2,zero,zero
or a1,zero,zero
bal 0x0001e310
_addiu a0,sp,0x44
li a3,0x2
lw gp,0x18(sp)
or a0,s6,zero
lw a1,0x44(sp)
lw t9,-0x7c9c(gp)
jalr t9
_lw a2,0x48(sp)
b 0x00029098
_lw gp,0x18(sp)
bal 0x00036894
_or a0,s0,zero
lw gp,0x18(sp)
bne v0,zero,0x00029138
_or s4,v0,zero
b 0x00029174
_or s2,zero,zero
lw t9,-0x7d00(gp)
addiu s4,sp,0x4c
lw s3,-0x7d08(gp)
or a0,s1,zero
bal 0x000352a4
_sw s4,0x2c(sp)
or a0,v0,zero
or t9,s3,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
or a2,s4,zero
or a1,s0,zero
lw t9,-0x7cfc(gp)
bal 0x00035350
_or a0,v0,zero
beq v0,zero,0x00029390
_lw gp,0x18(sp)
lw v0,0x4c(sp)
andi v0,v0,0x4
bne v0,zero,0x000296a8
_lw v0,0x60(sp)
lw t9,-0x7c60(gp)
bal 0x00034ec8
_or a0,s1,zero
or t9,s3,zero
or a0,v0,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
or a1,s0,zero
lw t9,-0x7c5c(gp)
bal 0x00034fc8
_or a0,v0,zero
lw gp,0x18(sp)
beq v0,zero,0x000298d0
_or s4,v0,zero
lw t9,-0x7c58(gp)
jalr t9
_or a0,s2,zero
lw gp,0x18(sp)
beq v0,zero,0x00029904
_or s8,v0,zero
or s0,zero,zero
or s7,zero,zero
b 0x00029404
_or s4,zero,zero
sll v0,s0,0x2
addiu s0,s0,0x1
addu v0,s7,v0
sw v1,0x0(v0)
lw t9,-0x7c54(gp)
jalr t9
_or a0,s8,zero
lw gp,0x18(sp)
beq v0,zero,0x000295cc
_or v1,v0,zero
slt v0,s0,s4
bne v0,zero,0x000293f8
_sll v0,s0,0x2
lw t9,-0x7fb4(gp)
addiu s4,s4,0x80
li a2,0x4
sw v1,0x24(sp)
or a0,s7,zero
bal 0x00020f4c
_or a1,s4,zero
lw gp,0x18(sp)
or s7,v0,zero
b 0x000293f4
_lw v1,0x24(sp)
lw a1,-0x7fc8(gp)
li a0,0x1
lw t9,-0x7590(gp)
or a2,s1,zero
jalr t9
_addiu a1,a1,0x210
lw gp,0x18(sp)
lw t9,-0x7cd0(gp)
or a0,s5,zero
bal 0x00034d28
_or s4,zero,zero
or t9,s3,zero
or a0,v0,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
or a1,s0,zero
lw t9,-0x7ccc(gp)
bal 0x00034e54
_or a0,v0,zero
lw gp,0x18(sp)
lw t9,-0x7c50(gp)
jalr t9
_or a0,s6,zero
lw gp,0x18(sp)
lw v1,0x20(sp)
or v0,s4,zero
lw a0,0x108c(sp)
lw v1,0x0(v1)
bne a0,v1,0x0002993c
_lw ra,0x10b4(sp)
lw s8,0x10b0(sp)
lw s7,0x10ac(sp)
lw s6,0x10a8(sp)
lw s5,0x10a4(sp)
lw s4,0x10a0(sp)
lw s3,0x109c(sp)
lw s2,0x1098(sp)
lw s1,0x1094(sp)
lw s0,0x1090(sp)
jr ra
_addiu sp,sp,0x10b8
lw t9,-0x7c4c(gp)
or a2,v0,zero
or a0,s0,zero
bal 0x000368c8
_or a1,s8,zero
lw gp,0x18(sp)
lw t9,-0x7c74(gp)
bal 0x00036894
_or a0,s0,zero
lw gp,0x18(sp)
bne v0,zero,0x0002913c
_or s4,v0,zero
b 0x00029174
_or s2,zero,zero
lw t9,-0x74ec(gp)
or a0,s1,zero
or s2,zero,zero
jalr t9
_li s4,0x1
lw gp,0x18(sp)
lw t9,-0x7c74(gp)
bal 0x00036894
_or a0,s0,zero
b 0x00029174
_lw gp,0x18(sp)
lw a1,-0x7fc8(gp)
li a0,0x1
lw t9,-0x7590(gp)
or a2,s2,zero
or s4,zero,zero
jalr t9
_addiu a1,a1,0xe0
b 0x000294b8
_lw gp,0x18(sp)
lw t9,-0x7c50(gp)
or a0,s6,zero
jalr t9
_or s4,zero,zero
lw gp,0x18(sp)
lw t9,-0x7d14(gp)
bal 0x000343e0
_nop
li a0,0x1
lw gp,0x18(sp)
or a3,v0,zero
or a2,s1,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7590(gp)
jalr t9
_addiu a1,a1,0x1e0
b 0x000294b8
_lw gp,0x18(sp)
lw t9,-0x7c48(gp)
jalr t9
_or a0,s8,zero
bne s0,zero,0x000296bc
_lw gp,0x18(sp)
lw t9,-0x7fa0(gp)
or a0,s7,zero
bal 0x00021634
_li s4,0x1
b 0x000294b8
_lw gp,0x18(sp)
lw t9,-0x7d14(gp)
bal 0x000343e0
_nop
li a0,0x1
lw gp,0x18(sp)
or a3,v0,zero
or a2,s1,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7590(gp)
jalr t9
_addiu a1,a1,0x1f8
b 0x00029470
_lw gp,0x18(sp)
lw t9,-0x7cc8(gp)
bal 0x00036afc
_or a0,s0,zero
lw gp,0x18(sp)
lw t9,-0x7cd0(gp)
bal 0x00034d28
_or a0,s5,zero
or t9,s3,zero
or a0,v0,zero
bal 0x000280ec
_or s0,v0,zero
lw gp,0x18(sp)
or a1,s0,zero
lw t9,-0x7ccc(gp)
bal 0x00034e54
_or a0,v0,zero
bne v0,zero,0x000297cc
_lw gp,0x18(sp)
bne s4,zero,0x00029948
_lw t9,-0x7d14(gp)
bal 0x000343e0
_nop
li a0,0x1
lw gp,0x18(sp)
or a2,v0,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7590(gp)
jalr t9
_addiu a1,a1,0x2b4
b 0x000294a8
_lw gp,0x18(sp)
andi v0,v0,0x4000
bne v0,zero,0x000293cc
_lw t9,-0x7c60(gp)
b 0x00029394
_nop
lw a3,-0x7fcc(gp)
li a2,0x4
lw t9,-0x75e8(gp)
or a1,s0,zero
or a0,s7,zero
jalr t9
_addiu a3,a3,0x68b4
lw gp,0x18(sp)
lw v0,-0x7fc8(gp)
bne s5,zero,0x000297d4
_sw v0,0x34(sp)
or t0,zero,zero
lw v0,-0x7c44(gp)
sll s3,t0,0x2
addu s3,s7,s3
sw v0,0x28(sp)
lw v0,0x34(sp)
addiu v0,v0,0x18
sw v0,0x2c(sp)
lw t9,-0x7c88(gp)
or a0,s2,zero
lw a1,0x0(s3)
jalr t9
_sw t0,0x24(sp)
or a3,zero,zero
lw gp,0x18(sp)
or a0,s1,zero
lw a2,0x0(s3)
or s8,v0,zero
lw t9,-0x7f5c(gp)
bal 0x00020abc
_lw a1,0x2c(sp)
or a3,s5,zero
lw t9,0x28(sp)
or a2,s6,zero
or a1,v0,zero
or a0,s8,zero
jalr t9
_or s4,v0,zero
lw gp,0x18(sp)
or a0,s4,zero
lw t9,-0x7fa0(gp)
bal 0x00021634
_or s4,v0,zero
lw gp,0x18(sp)
lw t9,-0x7fa0(gp)
bal 0x00021634
_or a0,s8,zero
lw gp,0x18(sp)
beq s4,zero,0x00029894
_lw t0,0x24(sp)
addiu t0,t0,0x1
addiu s3,s3,0x4
slt v0,t0,s0
bne v0,zero,0x00029708
_or s5,zero,zero
or s1,zero,zero
or s2,s7,zero
lw t9,-0x7fa0(gp)
addiu s1,s1,0x1
lw a0,0x0(s2)
bal 0x00021634
_addiu s2,s2,0x4
slt v0,s1,s0
bne v0,zero,0x000297a4
_lw gp,0x18(sp)
b 0x000295e4
_lw t9,-0x7fa0(gp)
b 0x000294a8
_xori s4,s4,0x1
addiu v0,v0,0x18
or s4,s7,zero
or t0,zero,zero
b 0x000297f8
_sw v0,0x30(sp)
addiu v0,t0,0x1
beq s0,v0,0x00029880
_addiu s4,s4,0x4
or t0,v0,zero
lw a2,0x0(s4)
or a3,zero,zero
lw t9,-0x7f5c(gp)
or a0,s1,zero
lw a1,0x30(sp)
bal 0x00020abc
_sw t0,0x28(sp)
lw gp,0x18(sp)
or a0,v0,zero
lw t9,-0x7d00(gp)
bal 0x000352a4
_or s8,v0,zero
or t9,s3,zero
or a0,v0,zero
bal 0x000280ec
_sw v0,0x24(sp)
lw gp,0x18(sp)
or a0,v0,zero
lw a2,0x2c(sp)
lw t9,-0x7cfc(gp)
bal 0x00035350
_lw a1,0x24(sp)
or a0,s8,zero
lw gp,0x18(sp)
lw t9,-0x7fa0(gp)
bal 0x00021634
_sw v0,0x24(sp)
lw v0,0x24(sp)
lw gp,0x18(sp)
bne v0,zero,0x000297e8
_lw t0,0x28(sp)
beq t0,zero,0x000296f0
_lw v0,-0x7c44(gp)
addiu t0,t0,-0x1
slt v0,t0,s0
bne v0,zero,0x000296f0
_lw v0,-0x7c44(gp)
b 0x000297a0
_or s1,zero,zero
or s2,zero,zero
or s1,s7,zero
lw t9,-0x7fa0(gp)
addiu s2,s2,0x1
lw a0,0x0(s1)
bal 0x00021634
_addiu s1,s1,0x4
slt v0,s2,s0
bne v0,zero,0x0002989c
_lw gp,0x18(sp)
lw t9,-0x7fa0(gp)
bal 0x00021634
_or a0,s7,zero
b 0x000294b8
_lw gp,0x18(sp)
lw t9,-0x7d14(gp)
bal 0x000343e0
_nop
li a0,0x1
lw gp,0x18(sp)
or a3,v0,zero
or a2,s1,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7590(gp)
jalr t9
_addiu a1,a1,0x1a4
b 0x000294b8
_lw gp,0x18(sp)
lw a1,-0x7fc8(gp)
li a0,0x1
lw t9,-0x7590(gp)
or a2,s2,zero
or s4,zero,zero
jalr t9
_addiu a1,a1,0x1c0
b 0x000294b8
_lw gp,0x18(sp)
lw t9,-0x7fa0(gp)
bal 0x00021634
_or a0,a2,zero
b 0x000291c0
_lw gp,0x18(sp)
lw t9,-0x7498(gp)
jalr t9
_nop
b 0x000294a8
_or s4,zero,zero
(translation_unit "uint sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}\n\n" (function_definition "uint sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}" type_identifier (function_declarator "sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "uint local_1080;" type_identifier identifier ;) (declaration "undefined4 local_107c;" type_identifier identifier ;) (declaration "undefined4 local_1078;" type_identifier identifier ;) (declaration "undefined4 local_1074;" type_identifier identifier ;) (declaration "undefined4 local_1070;" type_identifier identifier ;) (declaration "uint local_106c [5];" type_identifier (array_declarator "local_106c [5]" identifier [ number_literal ]) ;) (declaration "uint local_1058;" type_identifier identifier ;) (declaration "uint local_104c;" type_identifier identifier ;) (declaration "undefined4 local_1048;" type_identifier identifier ;) (declaration "undefined4 local_1044;" type_identifier identifier ;) (declaration "undefined1 auStack_102c [4096];" type_identifier (array_declarator "auStack_102c [4096]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }" if (parenthesized_expression "((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2))" ( (binary_expression "(param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)" ( (comma_expression "iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2" (assignment_expression "iVar3 = (*(code *)PTR_file_type_000b26b0)()" identifier = (call_expression "(*(code *)PTR_file_type_000b26b0)()" (parenthesized_expression "(*(code *)PTR_file_type_000b26b0)" ( (pointer_expression "*(code *)PTR_file_type_000b26b0" * (cast_expression "(code *)PTR_file_type_000b26b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar3 != 2" identifier != number_literal)) ))) )) (compound_statement "{\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }" { (expression_statement "param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);" (assignment_expression "param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080)" identifier = (call_expression "(*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080)" (parenthesized_expression "(*(code *)PTR_open_existing_file_000b26f4)" ( (pointer_expression "*(code *)PTR_open_existing_file_000b26f4" * (cast_expression "(code *)PTR_open_existing_file_000b26f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,0,0,&local_1080)" ( identifier , number_literal , number_literal , number_literal , (pointer_expression "&local_1080" & identifier) )))) ;) (if_statement "if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0xe0" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" else (compound_statement "{\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" { (expression_statement "local_106c[0] = 0;" (assignment_expression "local_106c[0] = 0" (subscript_expression "local_106c[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }" if (parenthesized_expression "(-1 < (int)local_1080)" ( (binary_expression "-1 < (int)local_1080" number_literal < (cast_expression "(int)local_1080" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }" { (expression_statement "local_1058 = local_1080;" (assignment_expression "local_1058 = local_1080" identifier = identifier) ;) (expression_statement "local_106c[0] = 4;" (assignment_expression "local_106c[0] = 4" (subscript_expression "local_106c[0]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }" { (expression_statement "uVar4 = fxp_open_send(param_2,0x1a,local_106c);" (assignment_expression "uVar4 = fxp_open_send(param_2,0x1a,local_106c)" identifier = (call_expression "fxp_open_send(param_2,0x1a,local_106c)" identifier (argument_list "(param_2,0x1a,local_106c)" ( identifier , number_literal , identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_open_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_open_recv(uVar5,uVar4)" identifier = (call_expression "fxp_open_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }" { (expression_statement "uint64_make(&local_107c,0,0);" (call_expression "uint64_make(&local_107c,0,0)" identifier (argument_list "(&local_107c,0,0)" ( (pointer_expression "&local_107c" & identifier) , number_literal , number_literal ))) ;) (labeled_statement "LAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);" statement_identifier : (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x260" identifier + number_literal) , identifier , identifier ))) ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);" (assignment_expression "uVar4 = xfer_upload_init(iVar3,local_107c,local_1078)" identifier = (call_expression "xfer_upload_init(iVar3,local_107c,local_1078)" identifier (argument_list "(iVar3,local_107c,local_1078)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;" (assignment_expression "puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x278" identifier + number_literal)) ;) (expression_statement "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;" (assignment_expression "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x298" identifier + number_literal)) ;) (labeled_statement "LAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);" statement_identifier : (do_statement "do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);" do (compound_statement "{\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          }" { (if_statement "if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }" if (parenthesized_expression "((uVar11 == 0) && (!bVar1))" ( (binary_expression "(uVar11 == 0) && (!bVar1)" (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) ))) )) (compound_statement "{\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }" { (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" identifier = (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (if_statement "if (iVar6 != 0) goto LAB_0002913c;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0002913c;" goto statement_identifier ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (labeled_statement "LAB_00029104:\n            iVar6 = xfer_done(uVar4);" statement_identifier : (expression_statement "iVar6 = xfer_done(uVar4);" (assignment_expression "iVar6 = xfer_done(uVar4)" identifier = (call_expression "xfer_done(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;)) (if_statement "if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }" { (expression_statement "xfer_cleanup(uVar4);" (call_expression "xfer_cleanup(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar4 = fxp_close_send(iVar3);" (assignment_expression "uVar4 = fxp_close_send(iVar3)" identifier = (call_expression "fxp_close_send(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_close_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_close_recv(uVar5,uVar4)" identifier = (call_expression "fxp_close_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }" { (if_statement "if (uVar11 != 0) goto LAB_00029948;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00029948;" goto statement_identifier ;)) (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x2b4" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000294a8;" goto statement_identifier ;) })) (expression_statement "uVar11 = uVar11 ^ 1;" (assignment_expression "uVar11 = uVar11 ^ 1" identifier = (binary_expression "uVar11 ^ 1" identifier ^ number_literal)) ;) (goto_statement "goto LAB_000294a8;" goto statement_identifier ;) })) (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" identifier = (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (if_statement "if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }" if (parenthesized_expression "(((iVar6 != 0) && (uVar11 == 0)) && (!bVar1))" ( (binary_expression "((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)" (parenthesized_expression "((iVar6 != 0) && (uVar11 == 0))" ( (binary_expression "(iVar6 != 0) && (uVar11 == 0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) ))) )) && (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) ))) )) (compound_statement "{\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }" { (labeled_statement "LAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);" statement_identifier : (do_statement "do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);" do (compound_statement "{\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              }" { (expression_statement "iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);" (assignment_expression "iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000)" identifier = (call_expression "(*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000)" (parenthesized_expression "(*(code *)PTR_read_from_file_000b2700)" ( (pointer_expression "*(code *)PTR_read_from_file_000b2700" * (cast_expression "(code *)PTR_read_from_file_000b2700" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,auStack_102c,0x1000)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_puts_000b2e84)(puVar9);" (call_expression "(*(code *)PTR_puts_000b2e84)(puVar9)" (parenthesized_expression "(*(code *)PTR_puts_000b2e84)" ( (pointer_expression "*(code *)PTR_puts_000b2e84" * (cast_expression "(code *)PTR_puts_000b2e84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier ))) ;) (expression_statement "xfer_upload_ready(uVar4);" (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (if_statement "if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "xfer_upload_ready(uVar4);" (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (expression_statement "xfer_upload_data(uVar4,auStack_102c,iVar6);" (call_expression "xfer_upload_data(uVar4,auStack_102c,iVar6)" identifier (argument_list "(uVar4,auStack_102c,iVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" identifier = (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_00029178:\n            iVar6 = xfer_done(uVar4);" statement_identifier : (expression_statement "iVar6 = xfer_done(uVar4);" (assignment_expression "iVar6 = xfer_done(uVar4)" identifier = (call_expression "xfer_done(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;)) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;)) (expression_statement "uVar5 = sftp_recv();" (assignment_expression "uVar5 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = xfer_upload_gotpkt(uVar4,uVar5);" (assignment_expression "iVar6 = xfer_upload_gotpkt(uVar4,uVar5)" identifier = (call_expression "xfer_upload_gotpkt(uVar4,uVar5)" identifier (argument_list "(uVar4,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (0 < iVar6) goto LAB_000290f0;" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (goto_statement "goto LAB_000290f0;" goto statement_identifier ;)) (if_statement "if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }" if (parenthesized_expression "(iVar6 == -0x80000000)" ( (binary_expression "iVar6 == -0x80000000" identifier == number_literal) )) (compound_statement "{\n            safefree(uVar5);\n          }" { (expression_statement "safefree(uVar5);" (call_expression "safefree(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (if_statement "if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "uVar5 = fxp_error();" (assignment_expression "uVar5 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar13,uVar5)" ( number_literal , identifier , identifier ))) ;) })) (goto_statement "goto LAB_00029104;" goto statement_identifier ;) })) }) (else_clause "else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" else (compound_statement "{\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" { (expression_statement "uVar4 = fxp_open_send(param_2,2,local_106c);" (assignment_expression "uVar4 = fxp_open_send(param_2,2,local_106c)" identifier = (call_expression "fxp_open_send(param_2,2,local_106c)" identifier (argument_list "(param_2,2,local_106c)" ( identifier , number_literal , identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_open_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_open_recv(uVar5,uVar4)" identifier = (call_expression "fxp_open_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }" { (expression_statement "uVar4 = fxp_fstat_send(iVar3);" (assignment_expression "uVar4 = fxp_fstat_send(iVar3)" identifier = (call_expression "fxp_fstat_send(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);" (assignment_expression "iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c)" identifier = (call_expression "fxp_fstat_recv(uVar5,uVar4,&local_104c)" identifier (argument_list "(uVar5,uVar4,&local_104c)" ( identifier , identifier , (pointer_expression "&local_104c" & identifier) )))) ;) (if_statement "if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }" { (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1f8" identifier + number_literal) , identifier , identifier ))) ;) }) (else_clause "else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" else (compound_statement "{\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" { (if_statement "if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }" if (parenthesized_expression "((local_104c & 1) != 0)" ( (binary_expression "(local_104c & 1) != 0" (parenthesized_expression "(local_104c & 1)" ( (binary_expression "local_104c & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }" { (expression_statement "local_107c = local_1048;" (assignment_expression "local_107c = local_1048" identifier = identifier) ;) (expression_statement "local_1078 = local_1044;" (assignment_expression "local_1078 = local_1044" identifier = identifier) ;) (expression_statement "uint64_decimal(local_1048,local_1044,auStack_102c);" (call_expression "uint64_decimal(local_1048,local_1044,auStack_102c)" identifier (argument_list "(local_1048,local_1044,auStack_102c)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x238" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);" (assignment_expression "iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0)" identifier = (call_expression "(*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" ( (pointer_expression "*(code *)PTR_seek_file_000b26d4" * (cast_expression "(code *)PTR_seek_file_000b26d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,local_107c,local_1078,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }" { (expression_statement "uint64_make(&local_1074,0,0);" (call_expression "uint64_make(&local_1074,0,0)" identifier (argument_list "(&local_1074,0,0)" ( (pointer_expression "&local_1074" & identifier) , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);" (call_expression "(*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" ( (pointer_expression "*(code *)PTR_seek_file_000b26d4" * (cast_expression "(code *)PTR_seek_file_000b26d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,local_1074,local_1070,2)" ( identifier , identifier , identifier , number_literal ))) ;) })) (goto_statement "goto LAB_00029098;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x210" identifier + number_literal) , identifier ))) ;) }))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = fxp_close_send(iVar3);" (assignment_expression "uVar4 = fxp_close_send(iVar3)" identifier = (call_expression "fxp_close_send(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "fxp_close_recv(uVar5,uVar4);" (call_expression "fxp_close_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_000294a8;" goto statement_identifier ;) })) }))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_close_rfile_000b2720)(param_3);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(param_3)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" ( (pointer_expression "*(code *)PTR_close_rfile_000b2720" * (cast_expression "(code *)PTR_close_rfile_000b2720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1e0" identifier + number_literal) , identifier , identifier ))) ;) }))) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "uVar4 = fxp_stat_send(param_2);" (assignment_expression "uVar4 = fxp_stat_send(param_2)" identifier = (call_expression "fxp_stat_send(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);" (assignment_expression "iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c)" identifier = (call_expression "fxp_stat_recv(uVar5,uVar4,local_106c)" identifier (argument_list "(uVar5,uVar4,local_106c)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }" if (parenthesized_expression "((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0))))" ( (binary_expression "(iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))" ( (parenthesized_expression "((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0))" ( (binary_expression "(local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)" (binary_expression "(local_106c[0] & 4) == 0" (parenthesized_expression "(local_106c[0] & 4)" ( (binary_expression "local_106c[0] & 4" (subscript_expression "local_106c[0]" identifier [ number_literal ]) & number_literal) )) == number_literal) || (parenthesized_expression "((local_1058 & 0x4000) == 0)" ( (binary_expression "(local_1058 & 0x4000) == 0" (parenthesized_expression "(local_1058 & 0x4000)" ( (binary_expression "local_1058 & 0x4000" identifier & number_literal) )) == number_literal) ))) )) ))) )) (compound_statement "{\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }" { (expression_statement "uVar4 = fxp_mkdir_send(param_2);" (assignment_expression "uVar4 = fxp_mkdir_send(param_2)" identifier = (call_expression "fxp_mkdir_send(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_mkdir_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_mkdir_recv(uVar5,uVar4)" identifier = (call_expression "fxp_mkdir_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }" { (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1a4" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) })) (expression_statement "iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1)" identifier = (call_expression "(*(code *)PTR_open_directory_000b2718)(param_1)" (parenthesized_expression "(*(code *)PTR_open_directory_000b2718)" ( (pointer_expression "*(code *)PTR_open_directory_000b2718" * (cast_expression "(code *)PTR_open_directory_000b2718" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1c0" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "puVar14 = (undefined4 *)0x0;" (assignment_expression "puVar14 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (while_statement "while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }" while (parenthesized_expression "(iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0)" ( (comma_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0" (assignment_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3)" identifier = (call_expression "(*(code *)PTR_read_filename_000b271c)(iVar3)" (parenthesized_expression "(*(code *)PTR_read_filename_000b271c)" ( (pointer_expression "*(code *)PTR_read_filename_000b271c" * (cast_expression "(code *)PTR_read_filename_000b271c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) , (binary_expression "iVar7 != 0" identifier != number_literal)) )) (compound_statement "{\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }" { (if_statement "if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }" if (parenthesized_expression "(iVar12 <= iVar6)" ( (binary_expression "iVar12 <= iVar6" identifier <= identifier) )) (compound_statement "{\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }" { (expression_statement "iVar12 = iVar12 + 0x80;" (assignment_expression "iVar12 = iVar12 + 0x80" identifier = (binary_expression "iVar12 + 0x80" identifier + number_literal)) ;) (expression_statement "puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);" (assignment_expression "puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4)" identifier = (cast_expression "(undefined4 *)saferealloc(puVar14,iVar12,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(puVar14,iVar12,4)" identifier (argument_list "(puVar14,iVar12,4)" ( identifier , identifier , number_literal ))))) ;) })) (expression_statement "puVar14[iVar6] = iVar7;" (assignment_expression "puVar14[iVar6] = iVar7" (subscript_expression "puVar14[iVar6]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "(*(code *)PTR_close_directory_000b2728)(iVar3);" (call_expression "(*(code *)PTR_close_directory_000b2728)(iVar3)" (parenthesized_expression "(*(code *)PTR_close_directory_000b2728)" ( (pointer_expression "*(code *)PTR_close_directory_000b2728" * (cast_expression "(code *)PTR_close_directory_000b2728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }" { (expression_statement "(*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);" (call_expression "(*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4)" (parenthesized_expression "(*(code *)PTR_qsort_000b2d88)" ( (pointer_expression "*(code *)PTR_qsort_000b2d88" * (cast_expression "(code *)PTR_qsort_000b2d88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4)" ( identifier , identifier , number_literal , (binary_expression "PTR_LAB_000b23a4 + 0x68b4" identifier + number_literal) ))) ;) (expression_statement "puVar9 = PTR_s_acket_from_server___s_000b23a8;" (assignment_expression "puVar9 = PTR_s_acket_from_server___s_000b23a8" identifier = identifier) ;) (if_statement "if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;" statement_identifier : (expression_statement "puVar13 = PTR_sftp_put_file_000b272c;" (assignment_expression "puVar13 = PTR_sftp_put_file_000b272c" identifier = identifier) ;)) (expression_statement "puVar10 = puVar14 + iVar12;" (assignment_expression "puVar10 = puVar14 + iVar12" identifier = (binary_expression "puVar14 + iVar12" identifier + identifier)) ;) (do_statement "do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);" do (compound_statement "{\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);" (assignment_expression "uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10)" identifier = (call_expression "(*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10)" (parenthesized_expression "(*(code *)PTR_dir_file_cat_000b26e8)" ( (pointer_expression "*(code *)PTR_dir_file_cat_000b26e8" * (cast_expression "(code *)PTR_dir_file_cat_000b26e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*puVar10)" ( identifier , (pointer_expression "*puVar10" * identifier) )))) ;) (expression_statement "uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);" (assignment_expression "uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0)" identifier = (call_expression "dupcat(param_2,puVar9 + 0x18,*puVar10,0)" identifier (argument_list "(param_2,puVar9 + 0x18,*puVar10,0)" ( identifier , (binary_expression "puVar9 + 0x18" identifier + number_literal) , (pointer_expression "*puVar10" * identifier) , number_literal )))) ;) (expression_statement "iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);" (assignment_expression "iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4)" identifier = (call_expression "(*(code *)puVar13)(uVar4,uVar5,param_3,param_4)" (parenthesized_expression "(*(code *)puVar13)" ( (pointer_expression "*(code *)puVar13" * (cast_expression "(code *)puVar13" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,uVar5,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "safefree(uVar5);" (call_expression "safefree(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (do_statement "do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);" do (compound_statement "{\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar3 < iVar6)" ( (binary_expression "iVar3 < iVar6" identifier < identifier) )) ;) (expression_statement "safefree(puVar14);" (call_expression "safefree(puVar14)" identifier (argument_list "(puVar14)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) }) while (parenthesized_expression "(iVar12 < iVar6)" ( (binary_expression "iVar12 < iVar6" identifier < identifier) )) ;) }) (else_clause "else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" else (compound_statement "{\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" { (expression_statement "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;" (assignment_expression "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (do_statement "do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);" do (compound_statement "{\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      }" { (expression_statement "iVar12 = iVar3;" (assignment_expression "iVar12 = iVar3" identifier = identifier) ;) (expression_statement "uVar4 = dupcat(param_2,puVar13,*puVar10,0);" (assignment_expression "uVar4 = dupcat(param_2,puVar13,*puVar10,0)" identifier = (call_expression "dupcat(param_2,puVar13,*puVar10,0)" identifier (argument_list "(param_2,puVar13,*puVar10,0)" ( identifier , identifier , (pointer_expression "*puVar10" * identifier) , number_literal )))) ;) (expression_statement "uVar5 = fxp_stat_send(uVar4);" (assignment_expression "uVar5 = fxp_stat_send(uVar4)" identifier = (call_expression "fxp_stat_send(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "uVar8 = sftp_wait_for_reply(uVar5);" (assignment_expression "uVar8 = sftp_wait_for_reply(uVar5)" identifier = (call_expression "sftp_wait_for_reply(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);" (assignment_expression "iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c)" identifier = (call_expression "fxp_stat_recv(uVar8,uVar5,local_106c)" identifier (argument_list "(uVar8,uVar5,local_106c)" ( identifier , identifier , identifier )))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }" { (if_statement "if (iVar12 == 0) goto LAB_000296f0;" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000296f0;" goto statement_identifier ;)) (expression_statement "iVar12 = iVar12 + -1;" (assignment_expression "iVar12 = iVar12 + -1" identifier = (binary_expression "iVar12 + -1" identifier + number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar12 + 1;" (assignment_expression "iVar3 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != iVar12 + 1)" ( (binary_expression "iVar6 != iVar12 + 1" identifier != (binary_expression "iVar12 + 1" identifier + number_literal)) )) ;) (if_statement "if (iVar12 < iVar6) goto LAB_000296f0;" if (parenthesized_expression "(iVar12 < iVar6)" ( (binary_expression "iVar12 < iVar6" identifier < identifier) )) (goto_statement "goto LAB_000296f0;" goto statement_identifier ;)) }))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (do_statement "do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);" do (compound_statement "{\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar3 < iVar6)" ( (binary_expression "iVar3 < iVar6" identifier < identifier) )) ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "safefree(puVar14);" (call_expression "safefree(puVar14)" identifier (argument_list "(puVar14)" ( identifier ))) ;) (labeled_statement "LAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" statement_identifier : (while_statement "while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" while (parenthesized_expression "(local_2c != *(int *)puVar2)" ( (binary_expression "local_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00029948:\n    uVar11 = 0;" statement_identifier : (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);" statement_identifier : (expression_statement "(*(code *)PTR_close_rfile_000b2720)(param_3);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(param_3)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" ( (pointer_expression "*(code *)PTR_close_rfile_000b2720" * (cast_expression "(code *)PTR_close_rfile_000b2720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;)) }))) (return_statement "return uVar11;" return identifier ;) })))
(translation_unit "int sftp_put_file(char *fname,char *outfname,int recurse,int restart)\n\n{\n  bool bVar1;\n  uint64 offset_00;\n  uint64 x;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  sftp_request *psVar5;\n  sftp_packet *psVar6;\n  fxp_handle *handle;\n  fxp_xfer *xfer;\n  int iVar7;\n  undefined *puVar8;\n  undefined4 uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  size_t n;\n  undefined4 *ptr;\n  long *plVar12;\n  ulong in_stack_ffffef5c;\n  long permissions;\n  uint64 offset;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  fxp_attrs attrs;\n  fxp_attrs attrs_1;\n  char decbuf [30];\n  \n  puVar11 = PTR___stack_chk_guard_000b2f04;\n  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)) {\n    psVar5 = fxp_stat_send(outfname);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);\n    if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }\n    iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);\n    if (iVar4 != 0) {\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);\n    goto LAB_000294b8;\n  }\n  plVar12 = &permissions;\n  recurse = (*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0);\n  if (recurse == 0) {\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);\n    goto LAB_000294b8;\n  }\n  attrs.flags = 0;\n  if (-1 < permissions) {\n    attrs.permissions = permissions;\n    attrs.flags = 4;\n  }\n  if (restart == 0) {\n    psVar5 = fxp_open_send(outfname,0x1a,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) {\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    uint64_make(0,0);\n  }\n  else {\n    psVar5 = fxp_open_send(outfname,2,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) goto LAB_00029584;\n    psVar5 = fxp_fstat_send(handle);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);\n    if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }\n    offset.hi = attrs_1.size.hi;\n    offset.lo = attrs_1.size.lo;\n    x.hi = (ulong)plVar12;\n    x.lo = in_stack_ffffef5c;\n    uint64_decimal(x,(char *)attrs_1.size.hi);\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);\n    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);\n    if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }\n  }\n  (*(code *)PTR___printf_chk_000b2de0)\n            (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname);\n  bVar1 = false;\n  bVar2 = false;\n  offset_00.hi = (ulong)plVar12;\n  offset_00.lo = in_stack_ffffef5c;\n  xfer = xfer_upload_init(handle,offset_00);\n  puVar11 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\nLAB_000290f0:\n  if ((!bVar2) && (!bVar1)) {\n    iVar3 = xfer_upload_ready(xfer);\n    if (iVar3 != 0) goto LAB_0002913c;\n    bVar1 = false;\n    bVar2 = false;\n    goto LAB_00029178;\n  }\n  do {\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }\n    iVar3 = xfer_upload_ready(xfer);\n    if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }\nLAB_00029178:\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) goto LAB_000290f0;\n    psVar6 = sftp_recv();\n    iVar3 = xfer_upload_gotpkt(xfer,psVar6);\n    if (0 < iVar3) goto LAB_000290f0;\n    if (iVar3 == -0x80000000) {\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }\n    if (!bVar2) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n  } while( true );\n}\n\n" (function_definition "int sftp_put_file(char *fname,char *outfname,int recurse,int restart)\n\n{\n  bool bVar1;\n  uint64 offset_00;\n  uint64 x;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  sftp_request *psVar5;\n  sftp_packet *psVar6;\n  fxp_handle *handle;\n  fxp_xfer *xfer;\n  int iVar7;\n  undefined *puVar8;\n  undefined4 uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  size_t n;\n  undefined4 *ptr;\n  long *plVar12;\n  ulong in_stack_ffffef5c;\n  long permissions;\n  uint64 offset;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  fxp_attrs attrs;\n  fxp_attrs attrs_1;\n  char decbuf [30];\n  \n  puVar11 = PTR___stack_chk_guard_000b2f04;\n  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)) {\n    psVar5 = fxp_stat_send(outfname);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);\n    if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }\n    iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);\n    if (iVar4 != 0) {\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);\n    goto LAB_000294b8;\n  }\n  plVar12 = &permissions;\n  recurse = (*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0);\n  if (recurse == 0) {\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);\n    goto LAB_000294b8;\n  }\n  attrs.flags = 0;\n  if (-1 < permissions) {\n    attrs.permissions = permissions;\n    attrs.flags = 4;\n  }\n  if (restart == 0) {\n    psVar5 = fxp_open_send(outfname,0x1a,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) {\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    uint64_make(0,0);\n  }\n  else {\n    psVar5 = fxp_open_send(outfname,2,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) goto LAB_00029584;\n    psVar5 = fxp_fstat_send(handle);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);\n    if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }\n    offset.hi = attrs_1.size.hi;\n    offset.lo = attrs_1.size.lo;\n    x.hi = (ulong)plVar12;\n    x.lo = in_stack_ffffef5c;\n    uint64_decimal(x,(char *)attrs_1.size.hi);\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);\n    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);\n    if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }\n  }\n  (*(code *)PTR___printf_chk_000b2de0)\n            (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname);\n  bVar1 = false;\n  bVar2 = false;\n  offset_00.hi = (ulong)plVar12;\n  offset_00.lo = in_stack_ffffef5c;\n  xfer = xfer_upload_init(handle,offset_00);\n  puVar11 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\nLAB_000290f0:\n  if ((!bVar2) && (!bVar1)) {\n    iVar3 = xfer_upload_ready(xfer);\n    if (iVar3 != 0) goto LAB_0002913c;\n    bVar1 = false;\n    bVar2 = false;\n    goto LAB_00029178;\n  }\n  do {\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }\n    iVar3 = xfer_upload_ready(xfer);\n    if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }\nLAB_00029178:\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) goto LAB_000290f0;\n    psVar6 = sftp_recv();\n    iVar3 = xfer_upload_gotpkt(xfer,psVar6);\n    if (0 < iVar3) goto LAB_000290f0;\n    if (iVar3 == -0x80000000) {\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }\n    if (!bVar2) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n  } while( true );\n}" primitive_type (function_declarator "sftp_put_file(char *fname,char *outfname,int recurse,int restart)" identifier (parameter_list "(char *fname,char *outfname,int recurse,int restart)" ( (parameter_declaration "char *fname" primitive_type (pointer_declarator "*fname" * identifier)) , (parameter_declaration "char *outfname" primitive_type (pointer_declarator "*outfname" * identifier)) , (parameter_declaration "int recurse" primitive_type identifier) , (parameter_declaration "int restart" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint64 offset_00;\n  uint64 x;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  sftp_request *psVar5;\n  sftp_packet *psVar6;\n  fxp_handle *handle;\n  fxp_xfer *xfer;\n  int iVar7;\n  undefined *puVar8;\n  undefined4 uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  size_t n;\n  undefined4 *ptr;\n  long *plVar12;\n  ulong in_stack_ffffef5c;\n  long permissions;\n  uint64 offset;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  fxp_attrs attrs;\n  fxp_attrs attrs_1;\n  char decbuf [30];\n  \n  puVar11 = PTR___stack_chk_guard_000b2f04;\n  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)) {\n    psVar5 = fxp_stat_send(outfname);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);\n    if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }\n    iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);\n    if (iVar4 != 0) {\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);\n    goto LAB_000294b8;\n  }\n  plVar12 = &permissions;\n  recurse = (*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0);\n  if (recurse == 0) {\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);\n    goto LAB_000294b8;\n  }\n  attrs.flags = 0;\n  if (-1 < permissions) {\n    attrs.permissions = permissions;\n    attrs.flags = 4;\n  }\n  if (restart == 0) {\n    psVar5 = fxp_open_send(outfname,0x1a,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) {\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    uint64_make(0,0);\n  }\n  else {\n    psVar5 = fxp_open_send(outfname,2,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) goto LAB_00029584;\n    psVar5 = fxp_fstat_send(handle);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);\n    if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }\n    offset.hi = attrs_1.size.hi;\n    offset.lo = attrs_1.size.lo;\n    x.hi = (ulong)plVar12;\n    x.lo = in_stack_ffffef5c;\n    uint64_decimal(x,(char *)attrs_1.size.hi);\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);\n    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);\n    if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }\n  }\n  (*(code *)PTR___printf_chk_000b2de0)\n            (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname);\n  bVar1 = false;\n  bVar2 = false;\n  offset_00.hi = (ulong)plVar12;\n  offset_00.lo = in_stack_ffffef5c;\n  xfer = xfer_upload_init(handle,offset_00);\n  puVar11 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\nLAB_000290f0:\n  if ((!bVar2) && (!bVar1)) {\n    iVar3 = xfer_upload_ready(xfer);\n    if (iVar3 != 0) goto LAB_0002913c;\n    bVar1 = false;\n    bVar2 = false;\n    goto LAB_00029178;\n  }\n  do {\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }\n    iVar3 = xfer_upload_ready(xfer);\n    if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }\nLAB_00029178:\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) goto LAB_000290f0;\n    psVar6 = sftp_recv();\n    iVar3 = xfer_upload_gotpkt(xfer,psVar6);\n    if (0 < iVar3) goto LAB_000290f0;\n    if (iVar3 == -0x80000000) {\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }\n    if (!bVar2) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n  } while( true );\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint64 offset_00;" type_identifier identifier ;) (declaration "uint64 x;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "sftp_request *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "sftp_packet *psVar6;" type_identifier (pointer_declarator "*psVar6" * identifier) ;) (declaration "fxp_handle *handle;" type_identifier (pointer_declarator "*handle" * identifier) ;) (declaration "fxp_xfer *xfer;" type_identifier (pointer_declarator "*xfer" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "undefined4 *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "long *plVar12;" (sized_type_specifier "long" long) (pointer_declarator "*plVar12" * identifier) ;) (declaration "ulong in_stack_ffffef5c;" type_identifier identifier ;) (declaration "long permissions;" (sized_type_specifier "long" long) identifier ;) (declaration "uint64 offset;" type_identifier identifier ;) (declaration "undefined4 local_1074;" type_identifier identifier ;) (declaration "undefined4 local_1070;" type_identifier identifier ;) (declaration "fxp_attrs attrs;" type_identifier identifier ;) (declaration "fxp_attrs attrs_1;" type_identifier identifier ;) (declaration "char decbuf [30];" primitive_type (array_declarator "decbuf [30]" identifier [ number_literal ]) ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)) {\n    psVar5 = fxp_stat_send(outfname);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);\n    if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }\n    iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);\n    if (iVar4 != 0) {\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);\n    goto LAB_000294b8;\n  }" if (parenthesized_expression "((recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2))" ( (binary_expression "(recurse != 0) && (iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)" (parenthesized_expression "(recurse != 0)" ( (binary_expression "recurse != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2)" ( (comma_expression "iVar4 = (*(code *)PTR_file_type_000b26b0)(), iVar4 == 2" (assignment_expression "iVar4 = (*(code *)PTR_file_type_000b26b0)()" identifier = (call_expression "(*(code *)PTR_file_type_000b26b0)()" (parenthesized_expression "(*(code *)PTR_file_type_000b26b0)" ( (pointer_expression "*(code *)PTR_file_type_000b26b0" * (cast_expression "(code *)PTR_file_type_000b26b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar4 == 2" identifier == number_literal)) ))) )) (compound_statement "{\n    psVar5 = fxp_stat_send(outfname);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);\n    if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }\n    iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);\n    if (iVar4 != 0) {\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);\n    goto LAB_000294b8;\n  }" { (expression_statement "psVar5 = fxp_stat_send(outfname);" (assignment_expression "psVar5 = fxp_stat_send(outfname)" identifier = (call_expression "fxp_stat_send(outfname)" identifier (argument_list "(outfname)" ( identifier )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs);" (assignment_expression "iVar4 = fxp_stat_recv(psVar6,psVar5,&attrs)" identifier = (call_expression "fxp_stat_recv(psVar6,psVar5,&attrs)" identifier (argument_list "(psVar6,psVar5,&attrs)" ( identifier , identifier , (pointer_expression "&attrs" & identifier) )))) ;) (if_statement "if ((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))) {\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }" if (parenthesized_expression "((iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0))))" ( (binary_expression "(iVar4 == 0) || (((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)))" ( (parenthesized_expression "((attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0))" ( (binary_expression "(attrs.flags & 4) == 0 || ((attrs.permissions & 0x4000) == 0)" (binary_expression "(attrs.flags & 4) == 0" (parenthesized_expression "(attrs.flags & 4)" ( (binary_expression "attrs.flags & 4" (field_expression "attrs.flags" identifier . field_identifier) & number_literal) )) == number_literal) || (parenthesized_expression "((attrs.permissions & 0x4000) == 0)" ( (binary_expression "(attrs.permissions & 0x4000) == 0" (parenthesized_expression "(attrs.permissions & 0x4000)" ( (binary_expression "attrs.permissions & 0x4000" (field_expression "attrs.permissions" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) ))) )) (compound_statement "{\n      psVar5 = fxp_mkdir_send(outfname);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      iVar4 = fxp_mkdir_recv(psVar6,psVar5);\n      if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }\n    }" { (expression_statement "psVar5 = fxp_mkdir_send(outfname);" (assignment_expression "psVar5 = fxp_mkdir_send(outfname)" identifier = (call_expression "fxp_mkdir_send(outfname)" identifier (argument_list "(outfname)" ( identifier )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "iVar4 = fxp_mkdir_recv(psVar6,psVar5);" (assignment_expression "iVar4 = fxp_mkdir_recv(psVar6,psVar5)" identifier = (call_expression "fxp_mkdir_recv(psVar6,psVar5)" identifier (argument_list "(psVar6,psVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        fxp_error();\n      }" { comment (expression_statement "fxp_error();" (call_expression "fxp_error()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "iVar4 = (*(code *)PTR_open_directory_000b2718)(fname);" (assignment_expression "iVar4 = (*(code *)PTR_open_directory_000b2718)(fname)" identifier = (call_expression "(*(code *)PTR_open_directory_000b2718)(fname)" (parenthesized_expression "(*(code *)PTR_open_directory_000b2718)" ( (pointer_expression "*(code *)PTR_open_directory_000b2718" * (cast_expression "(code *)PTR_open_directory_000b2718" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fname)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      ptr = (undefined4 *)0x0;\n      n = 0;\n      iVar3 = 0;\n      while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }\n      (*(code *)PTR_close_directory_000b2728)(iVar4);\n      if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }\n                    /* WARNING: Subroutine does not return */\n      safefree(ptr);\n    }" { (expression_statement "ptr = (undefined4 *)0x0;" (assignment_expression "ptr = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "n = 0;" (assignment_expression "n = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0) {\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }" while (parenthesized_expression "(iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0)" ( (comma_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4), iVar7 != 0" (assignment_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar4)" identifier = (call_expression "(*(code *)PTR_read_filename_000b271c)(iVar4)" (parenthesized_expression "(*(code *)PTR_read_filename_000b271c)" ( (pointer_expression "*(code *)PTR_read_filename_000b271c" * (cast_expression "(code *)PTR_read_filename_000b271c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) , (binary_expression "iVar7 != 0" identifier != number_literal)) )) (compound_statement "{\n        if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }\n        ptr[iVar3] = iVar7;\n        iVar3 = iVar3 + 1;\n      }" { (if_statement "if ((int)n <= iVar3) {\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }" if (parenthesized_expression "((int)n <= iVar3)" ( (binary_expression "(int)n <= iVar3" (cast_expression "(int)n" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n          n = n + 0x80;\n          ptr = (undefined4 *)saferealloc(ptr,n,4);\n        }" { (expression_statement "n = n + 0x80;" (assignment_expression "n = n + 0x80" identifier = (binary_expression "n + 0x80" identifier + number_literal)) ;) (expression_statement "ptr = (undefined4 *)saferealloc(ptr,n,4);" (assignment_expression "ptr = (undefined4 *)saferealloc(ptr,n,4)" identifier = (cast_expression "(undefined4 *)saferealloc(ptr,n,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(ptr,n,4)" identifier (argument_list "(ptr,n,4)" ( identifier , identifier , number_literal ))))) ;) })) (expression_statement "ptr[iVar3] = iVar7;" (assignment_expression "ptr[iVar3] = iVar7" (subscript_expression "ptr[iVar3]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "(*(code *)PTR_close_directory_000b2728)(iVar4);" (call_expression "(*(code *)PTR_close_directory_000b2728)(iVar4)" (parenthesized_expression "(*(code *)PTR_close_directory_000b2728)" ( (pointer_expression "*(code *)PTR_close_directory_000b2728" * (cast_expression "(code *)PTR_close_directory_000b2728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (iVar3 != 0) {\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);\n        puVar11 = PTR_sftp_put_file_000b272c;\n        if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }\n        puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n        uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);\n        pcVar10 = dupcat(outfname,puVar8,*ptr,0);\n        (*(code *)puVar11)(uVar9,pcVar10,recurse,0);\n                    /* WARNING: Subroutine does not return */\n        safefree(pcVar10);\n      }" { (expression_statement "(*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4);" (call_expression "(*(code *)PTR_qsort_000b2d88)(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4)" (parenthesized_expression "(*(code *)PTR_qsort_000b2d88)" ( (pointer_expression "*(code *)PTR_qsort_000b2d88" * (cast_expression "(code *)PTR_qsort_000b2d88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ptr,iVar3,4,PTR_LAB_000b23a4 + 0x68b4)" ( identifier , identifier , number_literal , (binary_expression "PTR_LAB_000b23a4 + 0x68b4" identifier + number_literal) ))) ;) (expression_statement "puVar11 = PTR_sftp_put_file_000b272c;" (assignment_expression "puVar11 = PTR_sftp_put_file_000b272c" identifier = identifier) ;) (if_statement "if (restart != 0) {\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }" if (parenthesized_expression "(restart != 0)" ( (binary_expression "restart != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);\n          psVar5 = fxp_stat_send(pcVar10);\n          psVar6 = sftp_wait_for_reply(psVar5);\n          fxp_stat_recv(psVar6,psVar5,&attrs);\n                    /* WARNING: Subroutine does not return */\n          safefree(pcVar10);\n        }" { (expression_statement "pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0);" (assignment_expression "pcVar10 = dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0)" identifier = (call_expression "dupcat(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0)" identifier (argument_list "(outfname,PTR_s_acket_from_server___s_000b23a8 + 0x18,*ptr,0)" ( identifier , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier + number_literal) , (pointer_expression "*ptr" * identifier) , number_literal )))) ;) (expression_statement "psVar5 = fxp_stat_send(pcVar10);" (assignment_expression "psVar5 = fxp_stat_send(pcVar10)" identifier = (call_expression "fxp_stat_send(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "fxp_stat_recv(psVar6,psVar5,&attrs);" (call_expression "fxp_stat_recv(psVar6,psVar5,&attrs)" identifier (argument_list "(psVar6,psVar5,&attrs)" ( identifier , identifier , (pointer_expression "&attrs" & identifier) ))) ;) comment (expression_statement "safefree(pcVar10);" (call_expression "safefree(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) })) (expression_statement "puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18;" (assignment_expression "puVar8 = PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier + number_literal)) ;) (expression_statement "uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr);" (assignment_expression "uVar9 = (*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr)" identifier = (call_expression "(*(code *)PTR_dir_file_cat_000b26e8)(fname,*ptr)" (parenthesized_expression "(*(code *)PTR_dir_file_cat_000b26e8)" ( (pointer_expression "*(code *)PTR_dir_file_cat_000b26e8" * (cast_expression "(code *)PTR_dir_file_cat_000b26e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fname,*ptr)" ( identifier , (pointer_expression "*ptr" * identifier) )))) ;) (expression_statement "pcVar10 = dupcat(outfname,puVar8,*ptr,0);" (assignment_expression "pcVar10 = dupcat(outfname,puVar8,*ptr,0)" identifier = (call_expression "dupcat(outfname,puVar8,*ptr,0)" identifier (argument_list "(outfname,puVar8,*ptr,0)" ( identifier , identifier , (pointer_expression "*ptr" * identifier) , number_literal )))) ;) (expression_statement "(*(code *)puVar11)(uVar9,pcVar10,recurse,0);" (call_expression "(*(code *)puVar11)(uVar9,pcVar10,recurse,0)" (parenthesized_expression "(*(code *)puVar11)" ( (pointer_expression "*(code *)puVar11" * (cast_expression "(code *)puVar11" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar9,pcVar10,recurse,0)" ( identifier , identifier , identifier , number_literal ))) ;) comment (expression_statement "safefree(pcVar10);" (call_expression "safefree(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) })) comment (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) })) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,fname)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1c0" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "plVar12 = &permissions;" (assignment_expression "plVar12 = &permissions" identifier = (pointer_expression "&permissions" & identifier)) ;) (expression_statement "recurse = (*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0);" (assignment_expression "recurse = (*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0)" identifier = (call_expression "(*(code *)PTR_open_existing_file_000b26f4)(fname,0,0,0)" (parenthesized_expression "(*(code *)PTR_open_existing_file_000b26f4)" ( (pointer_expression "*(code *)PTR_open_existing_file_000b26f4" * (cast_expression "(code *)PTR_open_existing_file_000b26f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fname,0,0,0)" ( identifier , number_literal , number_literal , number_literal )))) ;) (if_statement "if (recurse == 0) {\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);\n    goto LAB_000294b8;\n  }" if (parenthesized_expression "(recurse == 0)" ( (binary_expression "recurse == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);\n    goto LAB_000294b8;\n  }" { (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,fname)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0xe0" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "attrs.flags = 0;" (assignment_expression "attrs.flags = 0" (field_expression "attrs.flags" identifier . field_identifier) = number_literal) ;) (if_statement "if (-1 < permissions) {\n    attrs.permissions = permissions;\n    attrs.flags = 4;\n  }" if (parenthesized_expression "(-1 < permissions)" ( (binary_expression "-1 < permissions" number_literal < identifier) )) (compound_statement "{\n    attrs.permissions = permissions;\n    attrs.flags = 4;\n  }" { (expression_statement "attrs.permissions = permissions;" (assignment_expression "attrs.permissions = permissions" (field_expression "attrs.permissions" identifier . field_identifier) = identifier) ;) (expression_statement "attrs.flags = 4;" (assignment_expression "attrs.flags = 4" (field_expression "attrs.flags" identifier . field_identifier) = number_literal) ;) })) (if_statement "if (restart == 0) {\n    psVar5 = fxp_open_send(outfname,0x1a,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) {\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    uint64_make(0,0);\n  }\n  else {\n    psVar5 = fxp_open_send(outfname,2,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) goto LAB_00029584;\n    psVar5 = fxp_fstat_send(handle);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);\n    if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }\n    offset.hi = attrs_1.size.hi;\n    offset.lo = attrs_1.size.lo;\n    x.hi = (ulong)plVar12;\n    x.lo = in_stack_ffffef5c;\n    uint64_decimal(x,(char *)attrs_1.size.hi);\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);\n    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);\n    if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }\n  }" if (parenthesized_expression "(restart == 0)" ( (binary_expression "restart == 0" identifier == number_literal) )) (compound_statement "{\n    psVar5 = fxp_open_send(outfname,0x1a,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) {\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    uint64_make(0,0);\n  }" { (expression_statement "psVar5 = fxp_open_send(outfname,0x1a,&attrs);" (assignment_expression "psVar5 = fxp_open_send(outfname,0x1a,&attrs)" identifier = (call_expression "fxp_open_send(outfname,0x1a,&attrs)" identifier (argument_list "(outfname,0x1a,&attrs)" ( identifier , number_literal , (pointer_expression "&attrs" & identifier) )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "handle = fxp_open_recv(psVar6,psVar5);" (assignment_expression "handle = fxp_open_recv(psVar6,psVar5)" identifier = (call_expression "fxp_open_recv(psVar6,psVar5)" identifier (argument_list "(psVar6,psVar5)" ( identifier , identifier )))) ;) (if_statement "if (handle == (fxp_handle *)0x0) {\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }" if (parenthesized_expression "(handle == (fxp_handle *)0x0)" ( (binary_expression "handle == (fxp_handle *)0x0" identifier == (cast_expression "(fxp_handle *)0x0" ( (type_descriptor "fxp_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }" { (labeled_statement "LAB_00029584:\n      (*(code *)PTR_close_rfile_000b2720)(recurse);" statement_identifier : (expression_statement "(*(code *)PTR_close_rfile_000b2720)(recurse);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(recurse)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" ( (pointer_expression "*(code *)PTR_close_rfile_000b2720" * (cast_expression "(code *)PTR_close_rfile_000b2720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(recurse)" ( identifier ))) ;)) comment (expression_statement "fxp_error();" (call_expression "fxp_error()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uint64_make(0,0);" (call_expression "uint64_make(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) }) (else_clause "else {\n    psVar5 = fxp_open_send(outfname,2,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) goto LAB_00029584;\n    psVar5 = fxp_fstat_send(handle);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);\n    if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }\n    offset.hi = attrs_1.size.hi;\n    offset.lo = attrs_1.size.lo;\n    x.hi = (ulong)plVar12;\n    x.lo = in_stack_ffffef5c;\n    uint64_decimal(x,(char *)attrs_1.size.hi);\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);\n    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);\n    if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }\n  }" else (compound_statement "{\n    psVar5 = fxp_open_send(outfname,2,&attrs);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    handle = fxp_open_recv(psVar6,psVar5);\n    if (handle == (fxp_handle *)0x0) goto LAB_00029584;\n    psVar5 = fxp_fstat_send(handle);\n    psVar6 = sftp_wait_for_reply(psVar5);\n    iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);\n    if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n    if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }\n    offset.hi = attrs_1.size.hi;\n    offset.lo = attrs_1.size.lo;\n    x.hi = (ulong)plVar12;\n    x.lo = in_stack_ffffef5c;\n    uint64_decimal(x,(char *)attrs_1.size.hi);\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);\n    iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);\n    if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }\n  }" { (expression_statement "psVar5 = fxp_open_send(outfname,2,&attrs);" (assignment_expression "psVar5 = fxp_open_send(outfname,2,&attrs)" identifier = (call_expression "fxp_open_send(outfname,2,&attrs)" identifier (argument_list "(outfname,2,&attrs)" ( identifier , number_literal , (pointer_expression "&attrs" & identifier) )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "handle = fxp_open_recv(psVar6,psVar5);" (assignment_expression "handle = fxp_open_recv(psVar6,psVar5)" identifier = (call_expression "fxp_open_recv(psVar6,psVar5)" identifier (argument_list "(psVar6,psVar5)" ( identifier , identifier )))) ;) (if_statement "if (handle == (fxp_handle *)0x0) goto LAB_00029584;" if (parenthesized_expression "(handle == (fxp_handle *)0x0)" ( (binary_expression "handle == (fxp_handle *)0x0" identifier == (cast_expression "(fxp_handle *)0x0" ( (type_descriptor "fxp_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00029584;" goto statement_identifier ;)) (expression_statement "psVar5 = fxp_fstat_send(handle);" (assignment_expression "psVar5 = fxp_fstat_send(handle)" identifier = (call_expression "fxp_fstat_send(handle)" identifier (argument_list "(handle)" ( identifier )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1);" (assignment_expression "iVar4 = fxp_fstat_recv(psVar6,psVar5,&attrs_1)" identifier = (call_expression "fxp_fstat_recv(psVar6,psVar5,&attrs_1)" identifier (argument_list "(psVar6,psVar5,&attrs_1)" ( identifier , identifier , (pointer_expression "&attrs_1" & identifier) )))) ;) (if_statement "if (iVar4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }" { comment (expression_statement "fxp_error();" (call_expression "fxp_error()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((attrs_1.flags & 1) == 0) {\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }" if (parenthesized_expression "((attrs_1.flags & 1) == 0)" ( (binary_expression "(attrs_1.flags & 1) == 0" (parenthesized_expression "(attrs_1.flags & 1)" ( (binary_expression "attrs_1.flags & 1" (field_expression "attrs_1.flags" identifier . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);\n      psVar5 = fxp_close_send(handle);\n      psVar6 = sftp_wait_for_reply(psVar5);\n      fxp_close_recv(psVar6,psVar5);\n      while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }\n      return 0;\n    }" { (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,outfname)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x210" identifier + number_literal) , identifier ))) ;) (expression_statement "psVar5 = fxp_close_send(handle);" (assignment_expression "psVar5 = fxp_close_send(handle)" identifier = (call_expression "fxp_close_send(handle)" identifier (argument_list "(handle)" ( identifier )))) ;) (expression_statement "psVar6 = sftp_wait_for_reply(psVar5);" (assignment_expression "psVar6 = sftp_wait_for_reply(psVar5)" identifier = (call_expression "sftp_wait_for_reply(psVar5)" identifier (argument_list "(psVar5)" ( identifier )))) ;) (expression_statement "fxp_close_recv(psVar6,psVar5);" (call_expression "fxp_close_recv(psVar6,psVar5)" identifier (argument_list "(psVar6,psVar5)" ( identifier , identifier ))) ;) (while_statement "while( true ) {\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        (*(code *)PTR_close_rfile_000b2720)(recurse);\nLAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;\n        (*(code *)PTR___stack_chk_fail_000b2ed8)();\n      }" { (expression_statement "(*(code *)PTR_close_rfile_000b2720)(recurse);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(recurse)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" ( (pointer_expression "*(code *)PTR_close_rfile_000b2720" * (cast_expression "(code *)PTR_close_rfile_000b2720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(recurse)" ( identifier ))) ;) (labeled_statement "LAB_000294b8:\n        if (iVar3 == *(int *)puVar11) break;" statement_identifier : (if_statement "if (iVar3 == *(int *)puVar11) break;" if (parenthesized_expression "(iVar3 == *(int *)puVar11)" ( (binary_expression "iVar3 == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (break_statement "break;" break ;))) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "offset.hi = attrs_1.size.hi;" (assignment_expression "offset.hi = attrs_1.size.hi" (field_expression "offset.hi" identifier . field_identifier) = (field_expression "attrs_1.size.hi" (field_expression "attrs_1.size" identifier . field_identifier) . field_identifier)) ;) (expression_statement "offset.lo = attrs_1.size.lo;" (assignment_expression "offset.lo = attrs_1.size.lo" (field_expression "offset.lo" identifier . field_identifier) = (field_expression "attrs_1.size.lo" (field_expression "attrs_1.size" identifier . field_identifier) . field_identifier)) ;) (expression_statement "x.hi = (ulong)plVar12;" (assignment_expression "x.hi = (ulong)plVar12" (field_expression "x.hi" identifier . field_identifier) = (cast_expression "(ulong)plVar12" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "x.lo = in_stack_ffffef5c;" (assignment_expression "x.lo = in_stack_ffffef5c" (field_expression "x.lo" identifier . field_identifier) = identifier) ;) (expression_statement "uint64_decimal(x,(char *)attrs_1.size.hi);" (call_expression "uint64_decimal(x,(char *)attrs_1.size.hi)" identifier (argument_list "(x,(char *)attrs_1.size.hi)" ( identifier , (cast_expression "(char *)attrs_1.size.hi" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "attrs_1.size.hi" (field_expression "attrs_1.size" identifier . field_identifier) . field_identifier)) ))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,decbuf)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x238" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0);" (assignment_expression "iVar3 = (*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0)" identifier = (call_expression "(*(code *)PTR_seek_file_000b26d4)(recurse,offset.hi,offset.lo,0)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" ( (pointer_expression "*(code *)PTR_seek_file_000b26d4" * (cast_expression "(code *)PTR_seek_file_000b26d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(recurse,offset.hi,offset.lo,0)" ( identifier , (field_expression "offset.hi" identifier . field_identifier) , (field_expression "offset.lo" identifier . field_identifier) , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uint64_make(0,0);\n      (*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);\n    }" { (expression_statement "uint64_make(0,0);" (call_expression "uint64_make(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2);" (call_expression "(*(code *)PTR_seek_file_000b26d4)(recurse,local_1074,local_1070,2)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" ( (pointer_expression "*(code *)PTR_seek_file_000b26d4" * (cast_expression "(code *)PTR_seek_file_000b26d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(recurse,local_1074,local_1070,2)" ( identifier , identifier , identifier , number_literal ))) ;) })) }))) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n            (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n            (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x260,fname,outfname)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x260" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "offset_00.hi = (ulong)plVar12;" (assignment_expression "offset_00.hi = (ulong)plVar12" (field_expression "offset_00.hi" identifier . field_identifier) = (cast_expression "(ulong)plVar12" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "offset_00.lo = in_stack_ffffef5c;" (assignment_expression "offset_00.lo = in_stack_ffffef5c" (field_expression "offset_00.lo" identifier . field_identifier) = identifier) ;) (expression_statement "xfer = xfer_upload_init(handle,offset_00);" (assignment_expression "xfer = xfer_upload_init(handle,offset_00)" identifier = (call_expression "xfer_upload_init(handle,offset_00)" identifier (argument_list "(handle,offset_00)" ( identifier , identifier )))) ;) (expression_statement "puVar11 = PTR_s_acket_from_server___s_000b23a8 + 0x278;" (assignment_expression "puVar11 = PTR_s_acket_from_server___s_000b23a8 + 0x278" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x278" identifier + number_literal)) ;) (labeled_statement "LAB_000290f0:\n  if ((!bVar2) && (!bVar1)) {\n    iVar3 = xfer_upload_ready(xfer);\n    if (iVar3 != 0) goto LAB_0002913c;\n    bVar1 = false;\n    bVar2 = false;\n    goto LAB_00029178;\n  }" statement_identifier : (if_statement "if ((!bVar2) && (!bVar1)) {\n    iVar3 = xfer_upload_ready(xfer);\n    if (iVar3 != 0) goto LAB_0002913c;\n    bVar1 = false;\n    bVar2 = false;\n    goto LAB_00029178;\n  }" if (parenthesized_expression "((!bVar2) && (!bVar1))" ( (binary_expression "(!bVar2) && (!bVar1)" (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) && (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) ))) )) (compound_statement "{\n    iVar3 = xfer_upload_ready(xfer);\n    if (iVar3 != 0) goto LAB_0002913c;\n    bVar1 = false;\n    bVar2 = false;\n    goto LAB_00029178;\n  }" { (expression_statement "iVar3 = xfer_upload_ready(xfer);" (assignment_expression "iVar3 = xfer_upload_ready(xfer)" identifier = (call_expression "xfer_upload_ready(xfer)" identifier (argument_list "(xfer)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0002913c;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0002913c;" goto statement_identifier ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) }))) (do_statement "do {\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }\n    iVar3 = xfer_upload_ready(xfer);\n    if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }\nLAB_00029178:\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) goto LAB_000290f0;\n    psVar6 = sftp_recv();\n    iVar3 = xfer_upload_gotpkt(xfer,psVar6);\n    if (0 < iVar3) goto LAB_000290f0;\n    if (iVar3 == -0x80000000) {\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }\n    if (!bVar2) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n  } while( true );" do (compound_statement "{\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }\n    iVar3 = xfer_upload_ready(xfer);\n    if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }\nLAB_00029178:\n    iVar3 = xfer_done(xfer);\n    if (iVar3 != 0) goto LAB_000290f0;\n    psVar6 = sftp_recv();\n    iVar3 = xfer_upload_gotpkt(xfer,psVar6);\n    if (0 < iVar3) goto LAB_000290f0;\n    if (iVar3 == -0x80000000) {\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }\n    if (!bVar2) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }\n  }" { (expression_statement "iVar3 = xfer_done(xfer);" (assignment_expression "iVar3 = xfer_done(xfer)" identifier = (call_expression "xfer_done(xfer)" identifier (argument_list "(xfer)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      xfer_cleanup(xfer);\n    }" { comment (expression_statement "xfer_cleanup(xfer);" (call_expression "xfer_cleanup(xfer)" identifier (argument_list "(xfer)" ( identifier ))) ;) })) (expression_statement "iVar3 = xfer_upload_ready(xfer);" (assignment_expression "iVar3 = xfer_upload_ready(xfer)" identifier = (call_expression "xfer_upload_ready(xfer)" identifier (argument_list "(xfer)" ( identifier )))) ;) (if_statement "if (((iVar3 != 0) && (!bVar2)) && (!bVar1)) {\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }" if (parenthesized_expression "(((iVar3 != 0) && (!bVar2)) && (!bVar1))" ( (binary_expression "((iVar3 != 0) && (!bVar2)) && (!bVar1)" (parenthesized_expression "((iVar3 != 0) && (!bVar2))" ( (binary_expression "(iVar3 != 0) && (!bVar2)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) ))) )) && (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) ))) )) (compound_statement "{\nLAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);\n      bVar1 = false;\n      bVar2 = false;\n    }" { (labeled_statement "LAB_0002913c:\n      do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);" statement_identifier : (do_statement "do {\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      } while (iVar3 != 0);" do (compound_statement "{\n        iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);\n        if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }\n        if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }\n        xfer_upload_data(xfer,decbuf,iVar3);\n        iVar3 = xfer_upload_ready(xfer);\n      }" { (expression_statement "iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000);" (assignment_expression "iVar3 = (*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000)" identifier = (call_expression "(*(code *)PTR_read_from_file_000b2700)(recurse,decbuf,0x1000)" (parenthesized_expression "(*(code *)PTR_read_from_file_000b2700)" ( (pointer_expression "*(code *)PTR_read_from_file_000b2700" * (cast_expression "(code *)PTR_read_from_file_000b2700" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(recurse,decbuf,0x1000)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar3 == -1) {\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n          bVar1 = false;\n          bVar2 = true;\n          (*(code *)PTR_puts_000b2e84)(puVar11);\n          xfer_upload_ready(xfer);\n          goto LAB_00029178;\n        }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "(*(code *)PTR_puts_000b2e84)(puVar11);" (call_expression "(*(code *)PTR_puts_000b2e84)(puVar11)" (parenthesized_expression "(*(code *)PTR_puts_000b2e84)" ( (pointer_expression "*(code *)PTR_puts_000b2e84" * (cast_expression "(code *)PTR_puts_000b2e84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11)" ( identifier ))) ;) (expression_statement "xfer_upload_ready(xfer);" (call_expression "xfer_upload_ready(xfer)" identifier (argument_list "(xfer)" ( identifier ))) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 0) {\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar1 = true;\n          xfer_upload_ready(xfer);\n          bVar2 = false;\n          goto LAB_00029178;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "xfer_upload_ready(xfer);" (call_expression "xfer_upload_ready(xfer)" identifier (argument_list "(xfer)" ( identifier ))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (expression_statement "xfer_upload_data(xfer,decbuf,iVar3);" (call_expression "xfer_upload_data(xfer,decbuf,iVar3)" identifier (argument_list "(xfer,decbuf,iVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = xfer_upload_ready(xfer);" (assignment_expression "iVar3 = xfer_upload_ready(xfer)" identifier = (call_expression "xfer_upload_ready(xfer)" identifier (argument_list "(xfer)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) })) (labeled_statement "LAB_00029178:\n    iVar3 = xfer_done(xfer);" statement_identifier : (expression_statement "iVar3 = xfer_done(xfer);" (assignment_expression "iVar3 = xfer_done(xfer)" identifier = (call_expression "xfer_done(xfer)" identifier (argument_list "(xfer)" ( identifier )))) ;)) (if_statement "if (iVar3 != 0) goto LAB_000290f0;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000290f0;" goto statement_identifier ;)) (expression_statement "psVar6 = sftp_recv();" (assignment_expression "psVar6 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = xfer_upload_gotpkt(xfer,psVar6);" (assignment_expression "iVar3 = xfer_upload_gotpkt(xfer,psVar6)" identifier = (call_expression "xfer_upload_gotpkt(xfer,psVar6)" identifier (argument_list "(xfer,psVar6)" ( identifier , identifier )))) ;) (if_statement "if (0 < iVar3) goto LAB_000290f0;" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (goto_statement "goto LAB_000290f0;" goto statement_identifier ;)) (if_statement "if (iVar3 == -0x80000000) {\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }" if (parenthesized_expression "(iVar3 == -0x80000000)" ( (binary_expression "iVar3 == -0x80000000" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      safefree(psVar6);\n    }" { comment (expression_statement "safefree(psVar6);" (call_expression "safefree(psVar6)" identifier (argument_list "(psVar6)" ( identifier ))) ;) })) (if_statement "if (!bVar2) {\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      fxp_error();\n    }" { comment (expression_statement "fxp_error();" (call_expression "fxp_error()" identifier (argument_list "()" ( ))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}\n\n" (function_definition "uint sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}" type_identifier (function_declarator "sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "uint local_1080;" type_identifier identifier ;) (declaration "undefined4 local_107c;" type_identifier identifier ;) (declaration "undefined4 local_1078;" type_identifier identifier ;) (declaration "undefined4 local_1074;" type_identifier identifier ;) (declaration "undefined4 local_1070;" type_identifier identifier ;) (declaration "uint local_106c [5];" type_identifier (array_declarator "local_106c [5]" identifier [ number_literal ]) ;) (declaration "uint local_1058;" type_identifier identifier ;) (declaration "uint local_104c;" type_identifier identifier ;) (declaration "undefined4 local_1048;" type_identifier identifier ;) (declaration "undefined4 local_1044;" type_identifier identifier ;) (declaration "undefined1 auStack_102c [4096];" type_identifier (array_declarator "auStack_102c [4096]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }" if (parenthesized_expression "((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2))" ( (binary_expression "(param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)" ( (comma_expression "iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2" (assignment_expression "iVar3 = (*(code *)PTR_file_type_000b26b0)()" identifier = (call_expression "(*(code *)PTR_file_type_000b26b0)()" (parenthesized_expression "(*(code *)PTR_file_type_000b26b0)" ( (pointer_expression "*(code *)PTR_file_type_000b26b0" * (cast_expression "(code *)PTR_file_type_000b26b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) , (binary_expression "iVar3 != 2" identifier != number_literal)) ))) )) (compound_statement "{\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }" { (expression_statement "param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);" (assignment_expression "param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080)" identifier = (call_expression "(*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080)" (parenthesized_expression "(*(code *)PTR_open_existing_file_000b26f4)" ( (pointer_expression "*(code *)PTR_open_existing_file_000b26f4" * (cast_expression "(code *)PTR_open_existing_file_000b26f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,0,0,&local_1080)" ( identifier , number_literal , number_literal , number_literal , (pointer_expression "&local_1080" & identifier) )))) ;) (if_statement "if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0xe0" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" else (compound_statement "{\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" { (expression_statement "local_106c[0] = 0;" (assignment_expression "local_106c[0] = 0" (subscript_expression "local_106c[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }" if (parenthesized_expression "(-1 < (int)local_1080)" ( (binary_expression "-1 < (int)local_1080" number_literal < (cast_expression "(int)local_1080" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }" { (expression_statement "local_1058 = local_1080;" (assignment_expression "local_1058 = local_1080" identifier = identifier) ;) (expression_statement "local_106c[0] = 4;" (assignment_expression "local_106c[0] = 4" (subscript_expression "local_106c[0]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }" { (expression_statement "uVar4 = fxp_open_send(param_2,0x1a,local_106c);" (assignment_expression "uVar4 = fxp_open_send(param_2,0x1a,local_106c)" identifier = (call_expression "fxp_open_send(param_2,0x1a,local_106c)" identifier (argument_list "(param_2,0x1a,local_106c)" ( identifier , number_literal , identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_open_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_open_recv(uVar5,uVar4)" identifier = (call_expression "fxp_open_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }" { (expression_statement "uint64_make(&local_107c,0,0);" (call_expression "uint64_make(&local_107c,0,0)" identifier (argument_list "(&local_107c,0,0)" ( (pointer_expression "&local_107c" & identifier) , number_literal , number_literal ))) ;) (labeled_statement "LAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);" statement_identifier : (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x260" identifier + number_literal) , identifier , identifier ))) ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);" (assignment_expression "uVar4 = xfer_upload_init(iVar3,local_107c,local_1078)" identifier = (call_expression "xfer_upload_init(iVar3,local_107c,local_1078)" identifier (argument_list "(iVar3,local_107c,local_1078)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;" (assignment_expression "puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x278" identifier + number_literal)) ;) (expression_statement "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;" (assignment_expression "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x298" identifier + number_literal)) ;) (labeled_statement "LAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);" statement_identifier : (do_statement "do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);" do (compound_statement "{\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          }" { (if_statement "if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }" if (parenthesized_expression "((uVar11 == 0) && (!bVar1))" ( (binary_expression "(uVar11 == 0) && (!bVar1)" (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) ))) )) (compound_statement "{\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }" { (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" identifier = (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (if_statement "if (iVar6 != 0) goto LAB_0002913c;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0002913c;" goto statement_identifier ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (labeled_statement "LAB_00029104:\n            iVar6 = xfer_done(uVar4);" statement_identifier : (expression_statement "iVar6 = xfer_done(uVar4);" (assignment_expression "iVar6 = xfer_done(uVar4)" identifier = (call_expression "xfer_done(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;)) (if_statement "if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }" { (expression_statement "xfer_cleanup(uVar4);" (call_expression "xfer_cleanup(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar4 = fxp_close_send(iVar3);" (assignment_expression "uVar4 = fxp_close_send(iVar3)" identifier = (call_expression "fxp_close_send(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_close_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_close_recv(uVar5,uVar4)" identifier = (call_expression "fxp_close_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }" { (if_statement "if (uVar11 != 0) goto LAB_00029948;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00029948;" goto statement_identifier ;)) (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x2b4" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000294a8;" goto statement_identifier ;) })) (expression_statement "uVar11 = uVar11 ^ 1;" (assignment_expression "uVar11 = uVar11 ^ 1" identifier = (binary_expression "uVar11 ^ 1" identifier ^ number_literal)) ;) (goto_statement "goto LAB_000294a8;" goto statement_identifier ;) })) (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" identifier = (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (if_statement "if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }" if (parenthesized_expression "(((iVar6 != 0) && (uVar11 == 0)) && (!bVar1))" ( (binary_expression "((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)" (parenthesized_expression "((iVar6 != 0) && (uVar11 == 0))" ( (binary_expression "(iVar6 != 0) && (uVar11 == 0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) ))) )) && (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) ))) )) (compound_statement "{\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }" { (labeled_statement "LAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);" statement_identifier : (do_statement "do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);" do (compound_statement "{\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              }" { (expression_statement "iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);" (assignment_expression "iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000)" identifier = (call_expression "(*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000)" (parenthesized_expression "(*(code *)PTR_read_from_file_000b2700)" ( (pointer_expression "*(code *)PTR_read_from_file_000b2700" * (cast_expression "(code *)PTR_read_from_file_000b2700" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,auStack_102c,0x1000)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_puts_000b2e84)(puVar9);" (call_expression "(*(code *)PTR_puts_000b2e84)(puVar9)" (parenthesized_expression "(*(code *)PTR_puts_000b2e84)" ( (pointer_expression "*(code *)PTR_puts_000b2e84" * (cast_expression "(code *)PTR_puts_000b2e84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier ))) ;) (expression_statement "xfer_upload_ready(uVar4);" (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (if_statement "if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "xfer_upload_ready(uVar4);" (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00029178;" goto statement_identifier ;) })) (expression_statement "xfer_upload_data(uVar4,auStack_102c,iVar6);" (call_expression "xfer_upload_data(uVar4,auStack_102c,iVar6)" identifier (argument_list "(uVar4,auStack_102c,iVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" identifier = (call_expression "xfer_upload_ready(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;)) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_00029178:\n            iVar6 = xfer_done(uVar4);" statement_identifier : (expression_statement "iVar6 = xfer_done(uVar4);" (assignment_expression "iVar6 = xfer_done(uVar4)" identifier = (call_expression "xfer_done(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;)) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;)) (expression_statement "uVar5 = sftp_recv();" (assignment_expression "uVar5 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = xfer_upload_gotpkt(uVar4,uVar5);" (assignment_expression "iVar6 = xfer_upload_gotpkt(uVar4,uVar5)" identifier = (call_expression "xfer_upload_gotpkt(uVar4,uVar5)" identifier (argument_list "(uVar4,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (0 < iVar6) goto LAB_000290f0;" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (goto_statement "goto LAB_000290f0;" goto statement_identifier ;)) (if_statement "if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }" if (parenthesized_expression "(iVar6 == -0x80000000)" ( (binary_expression "iVar6 == -0x80000000" identifier == number_literal) )) (compound_statement "{\n            safefree(uVar5);\n          }" { (expression_statement "safefree(uVar5);" (call_expression "safefree(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (if_statement "if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "uVar5 = fxp_error();" (assignment_expression "uVar5 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar13,uVar5)" ( number_literal , identifier , identifier ))) ;) })) (goto_statement "goto LAB_00029104;" goto statement_identifier ;) })) }) (else_clause "else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" else (compound_statement "{\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" { (expression_statement "uVar4 = fxp_open_send(param_2,2,local_106c);" (assignment_expression "uVar4 = fxp_open_send(param_2,2,local_106c)" identifier = (call_expression "fxp_open_send(param_2,2,local_106c)" identifier (argument_list "(param_2,2,local_106c)" ( identifier , number_literal , identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_open_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_open_recv(uVar5,uVar4)" identifier = (call_expression "fxp_open_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }" { (expression_statement "uVar4 = fxp_fstat_send(iVar3);" (assignment_expression "uVar4 = fxp_fstat_send(iVar3)" identifier = (call_expression "fxp_fstat_send(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);" (assignment_expression "iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c)" identifier = (call_expression "fxp_fstat_recv(uVar5,uVar4,&local_104c)" identifier (argument_list "(uVar5,uVar4,&local_104c)" ( identifier , identifier , (pointer_expression "&local_104c" & identifier) )))) ;) (if_statement "if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }" { (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1f8" identifier + number_literal) , identifier , identifier ))) ;) }) (else_clause "else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" else (compound_statement "{\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" { (if_statement "if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }" if (parenthesized_expression "((local_104c & 1) != 0)" ( (binary_expression "(local_104c & 1) != 0" (parenthesized_expression "(local_104c & 1)" ( (binary_expression "local_104c & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }" { (expression_statement "local_107c = local_1048;" (assignment_expression "local_107c = local_1048" identifier = identifier) ;) (expression_statement "local_1078 = local_1044;" (assignment_expression "local_1078 = local_1044" identifier = identifier) ;) (expression_statement "uint64_decimal(local_1048,local_1044,auStack_102c);" (call_expression "uint64_decimal(local_1048,local_1044,auStack_102c)" identifier (argument_list "(local_1048,local_1044,auStack_102c)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x238" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);" (assignment_expression "iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0)" identifier = (call_expression "(*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" ( (pointer_expression "*(code *)PTR_seek_file_000b26d4" * (cast_expression "(code *)PTR_seek_file_000b26d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,local_107c,local_1078,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }" { (expression_statement "uint64_make(&local_1074,0,0);" (call_expression "uint64_make(&local_1074,0,0)" identifier (argument_list "(&local_1074,0,0)" ( (pointer_expression "&local_1074" & identifier) , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);" (call_expression "(*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" ( (pointer_expression "*(code *)PTR_seek_file_000b26d4" * (cast_expression "(code *)PTR_seek_file_000b26d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,local_1074,local_1070,2)" ( identifier , identifier , identifier , number_literal ))) ;) })) (goto_statement "goto LAB_00029098;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x210" identifier + number_literal) , identifier ))) ;) }))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = fxp_close_send(iVar3);" (assignment_expression "uVar4 = fxp_close_send(iVar3)" identifier = (call_expression "fxp_close_send(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "fxp_close_recv(uVar5,uVar4);" (call_expression "fxp_close_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_000294a8;" goto statement_identifier ;) })) }))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_close_rfile_000b2720)(param_3);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(param_3)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" ( (pointer_expression "*(code *)PTR_close_rfile_000b2720" * (cast_expression "(code *)PTR_close_rfile_000b2720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1e0" identifier + number_literal) , identifier , identifier ))) ;) }))) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "uVar4 = fxp_stat_send(param_2);" (assignment_expression "uVar4 = fxp_stat_send(param_2)" identifier = (call_expression "fxp_stat_send(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);" (assignment_expression "iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c)" identifier = (call_expression "fxp_stat_recv(uVar5,uVar4,local_106c)" identifier (argument_list "(uVar5,uVar4,local_106c)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }" if (parenthesized_expression "((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0))))" ( (binary_expression "(iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))" ( (parenthesized_expression "((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0))" ( (binary_expression "(local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)" (binary_expression "(local_106c[0] & 4) == 0" (parenthesized_expression "(local_106c[0] & 4)" ( (binary_expression "local_106c[0] & 4" (subscript_expression "local_106c[0]" identifier [ number_literal ]) & number_literal) )) == number_literal) || (parenthesized_expression "((local_1058 & 0x4000) == 0)" ( (binary_expression "(local_1058 & 0x4000) == 0" (parenthesized_expression "(local_1058 & 0x4000)" ( (binary_expression "local_1058 & 0x4000" identifier & number_literal) )) == number_literal) ))) )) ))) )) (compound_statement "{\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }" { (expression_statement "uVar4 = fxp_mkdir_send(param_2);" (assignment_expression "uVar4 = fxp_mkdir_send(param_2)" identifier = (call_expression "fxp_mkdir_send(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" identifier = (call_expression "sftp_wait_for_reply(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_mkdir_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_mkdir_recv(uVar5,uVar4)" identifier = (call_expression "fxp_mkdir_recv(uVar5,uVar4)" identifier (argument_list "(uVar5,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }" { (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1a4" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) })) (expression_statement "iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1)" identifier = (call_expression "(*(code *)PTR_open_directory_000b2718)(param_1)" (parenthesized_expression "(*(code *)PTR_open_directory_000b2718)" ( (pointer_expression "*(code *)PTR_open_directory_000b2718" * (cast_expression "(code *)PTR_open_directory_000b2718" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" ( (pointer_expression "*(code *)PTR___printf_chk_000b2de0" * (cast_expression "(code *)PTR___printf_chk_000b2de0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1)" ( number_literal , (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1c0" identifier + number_literal) , identifier ))) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "puVar14 = (undefined4 *)0x0;" (assignment_expression "puVar14 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (while_statement "while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }" while (parenthesized_expression "(iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0)" ( (comma_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0" (assignment_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3)" identifier = (call_expression "(*(code *)PTR_read_filename_000b271c)(iVar3)" (parenthesized_expression "(*(code *)PTR_read_filename_000b271c)" ( (pointer_expression "*(code *)PTR_read_filename_000b271c" * (cast_expression "(code *)PTR_read_filename_000b271c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) , (binary_expression "iVar7 != 0" identifier != number_literal)) )) (compound_statement "{\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }" { (if_statement "if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }" if (parenthesized_expression "(iVar12 <= iVar6)" ( (binary_expression "iVar12 <= iVar6" identifier <= identifier) )) (compound_statement "{\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }" { (expression_statement "iVar12 = iVar12 + 0x80;" (assignment_expression "iVar12 = iVar12 + 0x80" identifier = (binary_expression "iVar12 + 0x80" identifier + number_literal)) ;) (expression_statement "puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);" (assignment_expression "puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4)" identifier = (cast_expression "(undefined4 *)saferealloc(puVar14,iVar12,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(puVar14,iVar12,4)" identifier (argument_list "(puVar14,iVar12,4)" ( identifier , identifier , number_literal ))))) ;) })) (expression_statement "puVar14[iVar6] = iVar7;" (assignment_expression "puVar14[iVar6] = iVar7" (subscript_expression "puVar14[iVar6]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "(*(code *)PTR_close_directory_000b2728)(iVar3);" (call_expression "(*(code *)PTR_close_directory_000b2728)(iVar3)" (parenthesized_expression "(*(code *)PTR_close_directory_000b2728)" ( (pointer_expression "*(code *)PTR_close_directory_000b2728" * (cast_expression "(code *)PTR_close_directory_000b2728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }" { (expression_statement "(*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);" (call_expression "(*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4)" (parenthesized_expression "(*(code *)PTR_qsort_000b2d88)" ( (pointer_expression "*(code *)PTR_qsort_000b2d88" * (cast_expression "(code *)PTR_qsort_000b2d88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4)" ( identifier , identifier , number_literal , (binary_expression "PTR_LAB_000b23a4 + 0x68b4" identifier + number_literal) ))) ;) (expression_statement "puVar9 = PTR_s_acket_from_server___s_000b23a8;" (assignment_expression "puVar9 = PTR_s_acket_from_server___s_000b23a8" identifier = identifier) ;) (if_statement "if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;" statement_identifier : (expression_statement "puVar13 = PTR_sftp_put_file_000b272c;" (assignment_expression "puVar13 = PTR_sftp_put_file_000b272c" identifier = identifier) ;)) (expression_statement "puVar10 = puVar14 + iVar12;" (assignment_expression "puVar10 = puVar14 + iVar12" identifier = (binary_expression "puVar14 + iVar12" identifier + identifier)) ;) (do_statement "do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);" do (compound_statement "{\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);" (assignment_expression "uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10)" identifier = (call_expression "(*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10)" (parenthesized_expression "(*(code *)PTR_dir_file_cat_000b26e8)" ( (pointer_expression "*(code *)PTR_dir_file_cat_000b26e8" * (cast_expression "(code *)PTR_dir_file_cat_000b26e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*puVar10)" ( identifier , (pointer_expression "*puVar10" * identifier) )))) ;) (expression_statement "uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);" (assignment_expression "uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0)" identifier = (call_expression "dupcat(param_2,puVar9 + 0x18,*puVar10,0)" identifier (argument_list "(param_2,puVar9 + 0x18,*puVar10,0)" ( identifier , (binary_expression "puVar9 + 0x18" identifier + number_literal) , (pointer_expression "*puVar10" * identifier) , number_literal )))) ;) (expression_statement "iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);" (assignment_expression "iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4)" identifier = (call_expression "(*(code *)puVar13)(uVar4,uVar5,param_3,param_4)" (parenthesized_expression "(*(code *)puVar13)" ( (pointer_expression "*(code *)puVar13" * (cast_expression "(code *)puVar13" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,uVar5,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "safefree(uVar5);" (call_expression "safefree(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (do_statement "do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);" do (compound_statement "{\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar3 < iVar6)" ( (binary_expression "iVar3 < iVar6" identifier < identifier) )) ;) (expression_statement "safefree(puVar14);" (call_expression "safefree(puVar14)" identifier (argument_list "(puVar14)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000294b8;" goto statement_identifier ;) })) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) }) while (parenthesized_expression "(iVar12 < iVar6)" ( (binary_expression "iVar12 < iVar6" identifier < identifier) )) ;) }) (else_clause "else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" else (compound_statement "{\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" { (expression_statement "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;" (assignment_expression "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier = (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x18" identifier + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (do_statement "do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);" do (compound_statement "{\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      }" { (expression_statement "iVar12 = iVar3;" (assignment_expression "iVar12 = iVar3" identifier = identifier) ;) (expression_statement "uVar4 = dupcat(param_2,puVar13,*puVar10,0);" (assignment_expression "uVar4 = dupcat(param_2,puVar13,*puVar10,0)" identifier = (call_expression "dupcat(param_2,puVar13,*puVar10,0)" identifier (argument_list "(param_2,puVar13,*puVar10,0)" ( identifier , identifier , (pointer_expression "*puVar10" * identifier) , number_literal )))) ;) (expression_statement "uVar5 = fxp_stat_send(uVar4);" (assignment_expression "uVar5 = fxp_stat_send(uVar4)" identifier = (call_expression "fxp_stat_send(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "uVar8 = sftp_wait_for_reply(uVar5);" (assignment_expression "uVar8 = sftp_wait_for_reply(uVar5)" identifier = (call_expression "sftp_wait_for_reply(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);" (assignment_expression "iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c)" identifier = (call_expression "fxp_stat_recv(uVar8,uVar5,local_106c)" identifier (argument_list "(uVar8,uVar5,local_106c)" ( identifier , identifier , identifier )))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (if_statement "if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }" { (if_statement "if (iVar12 == 0) goto LAB_000296f0;" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000296f0;" goto statement_identifier ;)) (expression_statement "iVar12 = iVar12 + -1;" (assignment_expression "iVar12 = iVar12 + -1" identifier = (binary_expression "iVar12 + -1" identifier + number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = iVar12 + 1;" (assignment_expression "iVar3 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != iVar12 + 1)" ( (binary_expression "iVar6 != iVar12 + 1" identifier != (binary_expression "iVar12 + 1" identifier + number_literal)) )) ;) (if_statement "if (iVar12 < iVar6) goto LAB_000296f0;" if (parenthesized_expression "(iVar12 < iVar6)" ( (binary_expression "iVar12 < iVar6" identifier < identifier) )) (goto_statement "goto LAB_000296f0;" goto statement_identifier ;)) }))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (do_statement "do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);" do (compound_statement "{\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar3 < iVar6)" ( (binary_expression "iVar3 < iVar6" identifier < identifier) )) ;) })) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) (expression_statement "safefree(puVar14);" (call_expression "safefree(puVar14)" identifier (argument_list "(puVar14)" ( identifier ))) ;) (labeled_statement "LAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" statement_identifier : (while_statement "while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" while (parenthesized_expression "(local_2c != *(int *)puVar2)" ( (binary_expression "local_2c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00029948:\n    uVar11 = 0;" statement_identifier : (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);" statement_identifier : (expression_statement "(*(code *)PTR_close_rfile_000b2720)(param_3);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(param_3)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" ( (pointer_expression "*(code *)PTR_close_rfile_000b2720" * (cast_expression "(code *)PTR_close_rfile_000b2720" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;)) }))) (return_statement "return uVar11;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (unary_expression ! IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) && (parenthesized_expression ( (unary_expression ! IDENT) ))) )) (compound_statement { (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) }))) (return_statement return IDENT ;) })))
(function_definition "uint sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}" (type_identifier "uint") (function_declarator "sftp_put_file(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" (identifier "sftp_put_file") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  undefined *puVar13;\n  undefined4 *puVar14;\n  uint local_1080;\n  undefined4 local_107c;\n  undefined4 local_1078;\n  undefined4 local_1074;\n  undefined4 local_1070;\n  uint local_106c [5];\n  uint local_1058;\n  uint local_104c;\n  undefined4 local_1048;\n  undefined4 local_1044;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }\n  uVar4 = fxp_stat_send(param_2);\n  uVar5 = sftp_wait_for_reply(uVar4);\n  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);\n  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }\n  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);\n  if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }\n  puVar14 = (undefined4 *)0x0;\n  iVar12 = 0;\n  iVar6 = 0;\n  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }\n  (*(code *)PTR_close_directory_000b2728)(iVar3);\n  if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }\n  uVar11 = 1;\n  safefree(puVar14);\nLAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }\n  return uVar11;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined *puVar13;" (type_identifier "undefined") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "undefined4 *puVar14;" (type_identifier "undefined4") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "uint local_1080;" (type_identifier "uint") (identifier "local_1080") (; ";")) (declaration "undefined4 local_107c;" (type_identifier "undefined4") (identifier "local_107c") (; ";")) (declaration "undefined4 local_1078;" (type_identifier "undefined4") (identifier "local_1078") (; ";")) (declaration "undefined4 local_1074;" (type_identifier "undefined4") (identifier "local_1074") (; ";")) (declaration "undefined4 local_1070;" (type_identifier "undefined4") (identifier "local_1070") (; ";")) (declaration "uint local_106c [5];" (type_identifier "uint") (array_declarator "local_106c [5]" (identifier "local_106c") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "uint local_1058;" (type_identifier "uint") (identifier "local_1058") (; ";")) (declaration "uint local_104c;" (type_identifier "uint") (identifier "local_104c") (; ";")) (declaration "undefined4 local_1048;" (type_identifier "undefined4") (identifier "local_1048") (; ";")) (declaration "undefined4 local_1044;" (type_identifier "undefined4") (identifier "local_1044") (; ";")) (declaration "undefined1 auStack_102c [4096];" (type_identifier "undefined1") (array_declarator "auStack_102c [4096]" (identifier "auStack_102c") ([ "[") (number_literal "4096") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_000b2f04")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b2f04" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b2f04")))) (; ";")) (if_statement "if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }" (if "if") (parenthesized_expression "((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2))" (( "(") (binary_expression "(param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)" (( "(") (comma_expression "iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2" (assignment_expression "iVar3 = (*(code *)PTR_file_type_000b26b0)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_file_type_000b26b0)()" (parenthesized_expression "(*(code *)PTR_file_type_000b26b0)" (( "(") (pointer_expression "*(code *)PTR_file_type_000b26b0" (* "*") (cast_expression "(code *)PTR_file_type_000b26b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_file_type_000b26b0"))) () ")")) (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar3 != 2" (identifier "iVar3") (!= "!=") (number_literal "2"))) () ")"))) () ")")) (compound_statement "{\n    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);\n    if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }\n    goto LAB_000294b8;\n  }" ({ "{") (expression_statement "param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);" (assignment_expression "param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080)" (identifier "param_3") (= "=") (call_expression "(*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080)" (parenthesized_expression "(*(code *)PTR_open_existing_file_000b26f4)" (( "(") (pointer_expression "*(code *)PTR_open_existing_file_000b26f4" (* "*") (cast_expression "(code *)PTR_open_existing_file_000b26f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open_existing_file_000b26f4"))) () ")")) (argument_list "(param_1,0,0,0,&local_1080)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_1080" (& "&") (identifier "local_1080")) () ")")))) (; ";")) (if_statement "if (param_3 == 0) {\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }\n    else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar11 = 0;\n      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);\n    }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0xe0" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0xe0")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" (else "else") (compound_statement "{\n      local_106c[0] = 0;\n      if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }\n      if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }\n      uVar11 = 0;\n      (*(code *)PTR_close_rfile_000b2720)(param_3);\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);\n    }" ({ "{") (expression_statement "local_106c[0] = 0;" (assignment_expression "local_106c[0] = 0" (subscript_expression "local_106c[0]" (identifier "local_106c") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < (int)local_1080) {\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }" (if "if") (parenthesized_expression "(-1 < (int)local_1080)" (( "(") (binary_expression "-1 < (int)local_1080" (number_literal "-1") (< "<") (cast_expression "(int)local_1080" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_1080"))) () ")")) (compound_statement "{\n        local_1058 = local_1080;\n        local_106c[0] = 4;\n      }" ({ "{") (expression_statement "local_1058 = local_1080;" (assignment_expression "local_1058 = local_1080" (identifier "local_1058") (= "=") (identifier "local_1080")) (; ";")) (expression_statement "local_106c[0] = 4;" (assignment_expression "local_106c[0] = 4" (subscript_expression "local_106c[0]" (identifier "local_106c") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "4")) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }\n      else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = fxp_open_send(param_2,0x1a,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }\n      }" ({ "{") (expression_statement "uVar4 = fxp_open_send(param_2,0x1a,local_106c);" (assignment_expression "uVar4 = fxp_open_send(param_2,0x1a,local_106c)" (identifier "uVar4") (= "=") (call_expression "fxp_open_send(param_2,0x1a,local_106c)" (identifier "fxp_open_send") (argument_list "(param_2,0x1a,local_106c)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1a") (, ",") (identifier "local_106c") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar3 = fxp_open_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_open_recv(uVar5,uVar4)" (identifier "iVar3") (= "=") (call_expression "fxp_open_recv(uVar5,uVar4)" (identifier "fxp_open_recv") (argument_list "(uVar5,uVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uint64_make(&local_107c,0,0);\nLAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);\n          bVar1 = false;\n          uVar11 = 0;\n          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);\n          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;\n          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;\nLAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);\n          uVar5 = sftp_recv();\n          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);\n          if (0 < iVar6) goto LAB_000290f0;\n          if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }\n          if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }\n          goto LAB_00029104;\n        }" ({ "{") (expression_statement "uint64_make(&local_107c,0,0);" (call_expression "uint64_make(&local_107c,0,0)" (identifier "uint64_make") (argument_list "(&local_107c,0,0)" (( "(") (pointer_expression "&local_107c" (& "&") (identifier "local_107c")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (labeled_statement "LAB_00029098:\n          (*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);" (statement_identifier "LAB_00029098") (: ":") (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x260" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x260")) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";"))) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);" (assignment_expression "uVar4 = xfer_upload_init(iVar3,local_107c,local_1078)" (identifier "uVar4") (= "=") (call_expression "xfer_upload_init(iVar3,local_107c,local_1078)" (identifier "xfer_upload_init") (argument_list "(iVar3,local_107c,local_1078)" (( "(") (identifier "iVar3") (, ",") (identifier "local_107c") (, ",") (identifier "local_1078") () ")")))) (; ";")) (expression_statement "puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;" (assignment_expression "puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278" (identifier "puVar9") (= "=") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x278" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x278"))) (; ";")) (expression_statement "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;" (assignment_expression "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298" (identifier "puVar13") (= "=") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x298" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x298"))) (; ";")) (labeled_statement "LAB_000290f0:\n          do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);" (statement_identifier "LAB_000290f0") (: ":") (do_statement "do {\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          } while (iVar6 != 0);" (do "do") (compound_statement "{\n            if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }\nLAB_00029104:\n            iVar6 = xfer_done(uVar4);\n            if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }\n            iVar6 = xfer_upload_ready(uVar4);\n            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }\nLAB_00029178:\n            iVar6 = xfer_done(uVar4);\n          }" ({ "{") (if_statement "if ((uVar11 == 0) && (!bVar1)) {\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }" (if "if") (parenthesized_expression "((uVar11 == 0) && (!bVar1))" (( "(") (binary_expression "(uVar11 == 0) && (!bVar1)" (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")"))) () ")")) (compound_statement "{\n              iVar6 = xfer_upload_ready(uVar4);\n              if (iVar6 != 0) goto LAB_0002913c;\n              bVar1 = false;\n              uVar11 = 0;\n              goto LAB_00029178;\n            }" ({ "{") (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" (identifier "iVar6") (= "=") (call_expression "xfer_upload_ready(uVar4)" (identifier "xfer_upload_ready") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) goto LAB_0002913c;" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0002913c;" (goto "goto") (statement_identifier "LAB_0002913c") (; ";"))) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00029178;" (goto "goto") (statement_identifier "LAB_00029178") (; ";")) (} "}"))) (labeled_statement "LAB_00029104:\n            iVar6 = xfer_done(uVar4);" (statement_identifier "LAB_00029104") (: ":") (expression_statement "iVar6 = xfer_done(uVar4);" (assignment_expression "iVar6 = xfer_done(uVar4)" (identifier "iVar6") (= "=") (call_expression "xfer_done(uVar4)" (identifier "xfer_done") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";"))) (if_statement "if (iVar6 != 0) {\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              xfer_cleanup(uVar4);\n              uVar4 = fxp_close_send(iVar3);\n              uVar5 = sftp_wait_for_reply(uVar4);\n              iVar3 = fxp_close_recv(uVar5,uVar4);\n              if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }\n              uVar11 = uVar11 ^ 1;\n              goto LAB_000294a8;\n            }" ({ "{") (expression_statement "xfer_cleanup(uVar4);" (call_expression "xfer_cleanup(uVar4)" (identifier "xfer_cleanup") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar4 = fxp_close_send(iVar3);" (assignment_expression "uVar4 = fxp_close_send(iVar3)" (identifier "uVar4") (= "=") (call_expression "fxp_close_send(iVar3)" (identifier "fxp_close_send") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar3 = fxp_close_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_close_recv(uVar5,uVar4)" (identifier "iVar3") (= "=") (call_expression "fxp_close_recv(uVar5,uVar4)" (identifier "fxp_close_recv") (argument_list "(uVar5,uVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                if (uVar11 != 0) goto LAB_00029948;\n                uVar4 = fxp_error();\n                (*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);\n                uVar11 = 0;\n                goto LAB_000294a8;\n              }" ({ "{") (if_statement "if (uVar11 != 0) goto LAB_00029948;" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00029948;" (goto "goto") (statement_identifier "LAB_00029948") (; ";"))) (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" (identifier "uVar4") (= "=") (call_expression "fxp_error()" (identifier "fxp_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x2b4" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x2b4")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000294a8;" (goto "goto") (statement_identifier "LAB_000294a8") (; ";")) (} "}"))) (expression_statement "uVar11 = uVar11 ^ 1;" (assignment_expression "uVar11 = uVar11 ^ 1" (identifier "uVar11") (= "=") (binary_expression "uVar11 ^ 1" (identifier "uVar11") (^ "^") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_000294a8;" (goto "goto") (statement_identifier "LAB_000294a8") (; ";")) (} "}"))) (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" (identifier "iVar6") (= "=") (call_expression "xfer_upload_ready(uVar4)" (identifier "xfer_upload_ready") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }" (if "if") (parenthesized_expression "(((iVar6 != 0) && (uVar11 == 0)) && (!bVar1))" (( "(") (binary_expression "((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)" (parenthesized_expression "((iVar6 != 0) && (uVar11 == 0))" (( "(") (binary_expression "(iVar6 != 0) && (uVar11 == 0)" (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")"))) () ")")) (compound_statement "{\nLAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);\n              bVar1 = false;\n              uVar11 = 0;\n            }" ({ "{") (labeled_statement "LAB_0002913c:\n              do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);" (statement_identifier "LAB_0002913c") (: ":") (do_statement "do {\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              } while (iVar6 != 0);" (do "do") (compound_statement "{\n                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);\n                if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }\n                if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }\n                xfer_upload_data(uVar4,auStack_102c,iVar6);\n                iVar6 = xfer_upload_ready(uVar4);\n              }" ({ "{") (expression_statement "iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);" (assignment_expression "iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000)" (parenthesized_expression "(*(code *)PTR_read_from_file_000b2700)" (( "(") (pointer_expression "*(code *)PTR_read_from_file_000b2700" (* "*") (cast_expression "(code *)PTR_read_from_file_000b2700" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_read_from_file_000b2700"))) () ")")) (argument_list "(param_3,auStack_102c,0x1000)" (( "(") (identifier "param_3") (, ",") (identifier "auStack_102c") (, ",") (number_literal "0x1000") () ")")))) (; ";")) (if_statement "if (iVar6 == -1) {\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }" (if "if") (parenthesized_expression "(iVar6 == -1)" (( "(") (binary_expression "iVar6 == -1" (identifier "iVar6") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n                  bVar1 = false;\n                  uVar11 = 1;\n                  (*(code *)PTR_puts_000b2e84)(puVar9);\n                  xfer_upload_ready(uVar4);\n                  goto LAB_00029178;\n                }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_puts_000b2e84)(puVar9);" (call_expression "(*(code *)PTR_puts_000b2e84)(puVar9)" (parenthesized_expression "(*(code *)PTR_puts_000b2e84)" (( "(") (pointer_expression "*(code *)PTR_puts_000b2e84" (* "*") (cast_expression "(code *)PTR_puts_000b2e84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_puts_000b2e84"))) () ")")) (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")"))) (; ";")) (expression_statement "xfer_upload_ready(uVar4);" (call_expression "xfer_upload_ready(uVar4)" (identifier "xfer_upload_ready") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (goto_statement "goto LAB_00029178;" (goto "goto") (statement_identifier "LAB_00029178") (; ";")) (} "}"))) (if_statement "if (iVar6 == 0) {\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                  bVar1 = true;\n                  xfer_upload_ready(uVar4);\n                  uVar11 = 0;\n                  goto LAB_00029178;\n                }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "xfer_upload_ready(uVar4);" (call_expression "xfer_upload_ready(uVar4)" (identifier "xfer_upload_ready") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00029178;" (goto "goto") (statement_identifier "LAB_00029178") (; ";")) (} "}"))) (expression_statement "xfer_upload_data(uVar4,auStack_102c,iVar6);" (call_expression "xfer_upload_data(uVar4,auStack_102c,iVar6)" (identifier "xfer_upload_data") (argument_list "(uVar4,auStack_102c,iVar6)" (( "(") (identifier "uVar4") (, ",") (identifier "auStack_102c") (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "iVar6 = xfer_upload_ready(uVar4);" (assignment_expression "iVar6 = xfer_upload_ready(uVar4)" (identifier "iVar6") (= "=") (call_expression "xfer_upload_ready(uVar4)" (identifier "xfer_upload_ready") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";"))) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_00029178:\n            iVar6 = xfer_done(uVar4);" (statement_identifier "LAB_00029178") (: ":") (expression_statement "iVar6 = xfer_done(uVar4);" (assignment_expression "iVar6 = xfer_done(uVar4)" (identifier "iVar6") (= "=") (call_expression "xfer_done(uVar4)" (identifier "xfer_done") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";"))) (expression_statement "uVar5 = sftp_recv();" (assignment_expression "uVar5 = sftp_recv()" (identifier "uVar5") (= "=") (call_expression "sftp_recv()" (identifier "sftp_recv") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = xfer_upload_gotpkt(uVar4,uVar5);" (assignment_expression "iVar6 = xfer_upload_gotpkt(uVar4,uVar5)" (identifier "iVar6") (= "=") (call_expression "xfer_upload_gotpkt(uVar4,uVar5)" (identifier "xfer_upload_gotpkt") (argument_list "(uVar4,uVar5)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (0 < iVar6) goto LAB_000290f0;" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (goto_statement "goto LAB_000290f0;" (goto "goto") (statement_identifier "LAB_000290f0") (; ";"))) (if_statement "if (iVar6 == -0x80000000) {\n            safefree(uVar5);\n          }" (if "if") (parenthesized_expression "(iVar6 == -0x80000000)" (( "(") (binary_expression "iVar6 == -0x80000000" (identifier "iVar6") (== "==") (number_literal "-0x80000000")) () ")")) (compound_statement "{\n            safefree(uVar5);\n          }" ({ "{") (expression_statement "safefree(uVar5);" (call_expression "safefree(uVar5)" (identifier "safefree") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (if_statement "if (uVar11 == 0) {\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }" (if "if") (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar11 = 1;\n            uVar5 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);\n          }" ({ "{") (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar5 = fxp_error();" (assignment_expression "uVar5 = fxp_error()" (identifier "uVar5") (= "=") (call_expression "fxp_error()" (identifier "fxp_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,puVar13,uVar5)" (( "(") (number_literal "1") (, ",") (identifier "puVar13") (, ",") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00029104;" (goto "goto") (statement_identifier "LAB_00029104") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" (else "else") (compound_statement "{\n        uVar4 = fxp_open_send(param_2,2,local_106c);\n        uVar5 = sftp_wait_for_reply(uVar4);\n        iVar3 = fxp_open_recv(uVar5,uVar4);\n        if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }\n      }" ({ "{") (expression_statement "uVar4 = fxp_open_send(param_2,2,local_106c);" (assignment_expression "uVar4 = fxp_open_send(param_2,2,local_106c)" (identifier "uVar4") (= "=") (call_expression "fxp_open_send(param_2,2,local_106c)" (identifier "fxp_open_send") (argument_list "(param_2,2,local_106c)" (( "(") (identifier "param_2") (, ",") (number_literal "2") (, ",") (identifier "local_106c") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar3 = fxp_open_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_open_recv(uVar5,uVar4)" (identifier "iVar3") (= "=") (call_expression "fxp_open_recv(uVar5,uVar4)" (identifier "fxp_open_recv") (argument_list "(uVar5,uVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar4 = fxp_fstat_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);\n          if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }\n          uVar11 = 0;\n          uVar4 = fxp_close_send(iVar3);\n          uVar5 = sftp_wait_for_reply(uVar4);\n          fxp_close_recv(uVar5,uVar4);\n          goto LAB_000294a8;\n        }" ({ "{") (expression_statement "uVar4 = fxp_fstat_send(iVar3);" (assignment_expression "uVar4 = fxp_fstat_send(iVar3)" (identifier "uVar4") (= "=") (call_expression "fxp_fstat_send(iVar3)" (identifier "fxp_fstat_send") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);" (assignment_expression "iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c)" (identifier "iVar6") (= "=") (call_expression "fxp_fstat_recv(uVar5,uVar4,&local_104c)" (identifier "fxp_fstat_recv") (argument_list "(uVar5,uVar4,&local_104c)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (pointer_expression "&local_104c" (& "&") (identifier "local_104c")) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }\n          else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar4 = fxp_error();\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);\n          }" ({ "{") (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" (identifier "uVar4") (= "=") (call_expression "fxp_error()" (identifier "fxp_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1f8" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x1f8")) (, ",") (identifier "param_2") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" (else "else") (compound_statement "{\n            if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }\n            (*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);\n          }" ({ "{") (if_statement "if ((local_104c & 1) != 0) {\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }" (if "if") (parenthesized_expression "((local_104c & 1) != 0)" (( "(") (binary_expression "(local_104c & 1) != 0" (parenthesized_expression "(local_104c & 1)" (( "(") (binary_expression "local_104c & 1" (identifier "local_104c") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              local_107c = local_1048;\n              local_1078 = local_1044;\n              uint64_decimal(local_1048,local_1044,auStack_102c);\n              (*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);\n              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);\n              if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }\n              goto LAB_00029098;\n            }" ({ "{") (expression_statement "local_107c = local_1048;" (assignment_expression "local_107c = local_1048" (identifier "local_107c") (= "=") (identifier "local_1048")) (; ";")) (expression_statement "local_1078 = local_1044;" (assignment_expression "local_1078 = local_1044" (identifier "local_1078") (= "=") (identifier "local_1044")) (; ";")) (expression_statement "uint64_decimal(local_1048,local_1044,auStack_102c);" (call_expression "uint64_decimal(local_1048,local_1044,auStack_102c)" (identifier "uint64_decimal") (argument_list "(local_1048,local_1044,auStack_102c)" (( "(") (identifier "local_1048") (, ",") (identifier "local_1044") (, ",") (identifier "auStack_102c") () ")"))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x238" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x238")) (, ",") (identifier "auStack_102c") () ")"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);" (assignment_expression "iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" (( "(") (pointer_expression "*(code *)PTR_seek_file_000b26d4" (* "*") (cast_expression "(code *)PTR_seek_file_000b26d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_seek_file_000b26d4"))) () ")")) (argument_list "(param_3,local_107c,local_1078,0)" (( "(") (identifier "param_3") (, ",") (identifier "local_107c") (, ",") (identifier "local_1078") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                uint64_make(&local_1074,0,0);\n                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);\n              }" ({ "{") (expression_statement "uint64_make(&local_1074,0,0);" (call_expression "uint64_make(&local_1074,0,0)" (identifier "uint64_make") (argument_list "(&local_1074,0,0)" (( "(") (pointer_expression "&local_1074" (& "&") (identifier "local_1074")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);" (call_expression "(*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2)" (parenthesized_expression "(*(code *)PTR_seek_file_000b26d4)" (( "(") (pointer_expression "*(code *)PTR_seek_file_000b26d4" (* "*") (cast_expression "(code *)PTR_seek_file_000b26d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_seek_file_000b26d4"))) () ")")) (argument_list "(param_3,local_1074,local_1070,2)" (( "(") (identifier "param_3") (, ",") (identifier "local_1074") (, ",") (identifier "local_1070") (, ",") (number_literal "2") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00029098;" (goto "goto") (statement_identifier "LAB_00029098") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x210" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x210")) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = fxp_close_send(iVar3);" (assignment_expression "uVar4 = fxp_close_send(iVar3)" (identifier "uVar4") (= "=") (call_expression "fxp_close_send(iVar3)" (identifier "fxp_close_send") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "fxp_close_recv(uVar5,uVar4);" (call_expression "fxp_close_recv(uVar5,uVar4)" (identifier "fxp_close_recv") (argument_list "(uVar5,uVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") () ")"))) (; ";")) (goto_statement "goto LAB_000294a8;" (goto "goto") (statement_identifier "LAB_000294a8") (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_close_rfile_000b2720)(param_3);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(param_3)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" (( "(") (pointer_expression "*(code *)PTR_close_rfile_000b2720" (* "*") (cast_expression "(code *)PTR_close_rfile_000b2720" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_rfile_000b2720"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" (identifier "uVar4") (= "=") (call_expression "fxp_error()" (identifier "fxp_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1e0" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x1e0")) (, ",") (identifier "param_2") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_000294b8;" (goto "goto") (statement_identifier "LAB_000294b8") (; ";")) (} "}"))) (expression_statement "uVar4 = fxp_stat_send(param_2);" (assignment_expression "uVar4 = fxp_stat_send(param_2)" (identifier "uVar4") (= "=") (call_expression "fxp_stat_send(param_2)" (identifier "fxp_stat_send") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);" (assignment_expression "iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c)" (identifier "iVar3") (= "=") (call_expression "fxp_stat_recv(uVar5,uVar4,local_106c)" (identifier "fxp_stat_recv") (argument_list "(uVar5,uVar4,local_106c)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (identifier "local_106c") () ")")))) (; ";")) (if_statement "if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }" (if "if") (parenthesized_expression "((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0))))" (( "(") (binary_expression "(iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))" (( "(") (parenthesized_expression "((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0))" (( "(") (binary_expression "(local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)" (binary_expression "(local_106c[0] & 4) == 0" (parenthesized_expression "(local_106c[0] & 4)" (( "(") (binary_expression "local_106c[0] & 4" (subscript_expression "local_106c[0]" (identifier "local_106c") ([ "[") (number_literal "0") (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((local_1058 & 0x4000) == 0)" (( "(") (binary_expression "(local_1058 & 0x4000) == 0" (parenthesized_expression "(local_1058 & 0x4000)" (( "(") (binary_expression "local_1058 & 0x4000" (identifier "local_1058") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar4 = fxp_mkdir_send(param_2);\n    uVar5 = sftp_wait_for_reply(uVar4);\n    iVar3 = fxp_mkdir_recv(uVar5,uVar4);\n    if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }\n  }" ({ "{") (expression_statement "uVar4 = fxp_mkdir_send(param_2);" (assignment_expression "uVar4 = fxp_mkdir_send(param_2)" (identifier "uVar4") (= "=") (call_expression "fxp_mkdir_send(param_2)" (identifier "fxp_mkdir_send") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar5 = sftp_wait_for_reply(uVar4);" (assignment_expression "uVar5 = sftp_wait_for_reply(uVar4)" (identifier "uVar5") (= "=") (call_expression "sftp_wait_for_reply(uVar4)" (identifier "sftp_wait_for_reply") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar3 = fxp_mkdir_recv(uVar5,uVar4);" (assignment_expression "iVar3 = fxp_mkdir_recv(uVar5,uVar4)" (identifier "iVar3") (= "=") (call_expression "fxp_mkdir_recv(uVar5,uVar4)" (identifier "fxp_mkdir_recv") (argument_list "(uVar5,uVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = fxp_error();\n      (*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);\n      uVar11 = 0;\n      goto LAB_000294b8;\n    }" ({ "{") (expression_statement "uVar4 = fxp_error();" (assignment_expression "uVar4 = fxp_error()" (identifier "uVar4") (= "=") (call_expression "fxp_error()" (identifier "fxp_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)\n                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1a4" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x1a4")) (, ",") (identifier "param_2") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000294b8;" (goto "goto") (statement_identifier "LAB_000294b8") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_open_directory_000b2718)(param_1)" (parenthesized_expression "(*(code *)PTR_open_directory_000b2718)" (( "(") (pointer_expression "*(code *)PTR_open_directory_000b2718" (* "*") (cast_expression "(code *)PTR_open_directory_000b2718" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open_directory_000b2718"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar11 = 0;\n    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);\n    goto LAB_000294b8;\n  }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);" (call_expression "(*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000b2de0)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000b2de0" (* "*") (cast_expression "(code *)PTR___printf_chk_000b2de0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000b2de0"))) () ")")) (argument_list "(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x1c0" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x1c0")) (, ",") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000294b8;" (goto "goto") (statement_identifier "LAB_000294b8") (; ";")) (} "}"))) (expression_statement "puVar14 = (undefined4 *)0x0;" (assignment_expression "puVar14 = (undefined4 *)0x0" (identifier "puVar14") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (while_statement "while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }" (while "while") (parenthesized_expression "(iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0)" (( "(") (comma_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0" (assignment_expression "iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_read_filename_000b271c)(iVar3)" (parenthesized_expression "(*(code *)PTR_read_filename_000b271c)" (( "(") (pointer_expression "*(code *)PTR_read_filename_000b271c" (* "*") (cast_expression "(code *)PTR_read_filename_000b271c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_read_filename_000b271c"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (, ",") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }\n    puVar14[iVar6] = iVar7;\n    iVar6 = iVar6 + 1;\n  }" ({ "{") (if_statement "if (iVar12 <= iVar6) {\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }" (if "if") (parenthesized_expression "(iVar12 <= iVar6)" (( "(") (binary_expression "iVar12 <= iVar6" (identifier "iVar12") (<= "<=") (identifier "iVar6")) () ")")) (compound_statement "{\n      iVar12 = iVar12 + 0x80;\n      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);\n    }" ({ "{") (expression_statement "iVar12 = iVar12 + 0x80;" (assignment_expression "iVar12 = iVar12 + 0x80" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 0x80" (identifier "iVar12") (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);" (assignment_expression "puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4)" (identifier "puVar14") (= "=") (cast_expression "(undefined4 *)saferealloc(puVar14,iVar12,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "saferealloc(puVar14,iVar12,4)" (identifier "saferealloc") (argument_list "(puVar14,iVar12,4)" (( "(") (identifier "puVar14") (, ",") (identifier "iVar12") (, ",") (number_literal "4") () ")"))))) (; ";")) (} "}"))) (expression_statement "puVar14[iVar6] = iVar7;" (assignment_expression "puVar14[iVar6] = iVar7" (subscript_expression "puVar14[iVar6]" (identifier "puVar14") ([ "[") (identifier "iVar6") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_close_directory_000b2728)(iVar3);" (call_expression "(*(code *)PTR_close_directory_000b2728)(iVar3)" (parenthesized_expression "(*(code *)PTR_close_directory_000b2728)" (( "(") (pointer_expression "*(code *)PTR_close_directory_000b2728" (* "*") (cast_expression "(code *)PTR_close_directory_000b2728" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_directory_000b2728"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (iVar6 != 0) {\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);\n    puVar9 = PTR_s_acket_from_server___s_000b23a8;\n    if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }\n    iVar3 = 0;\n    puVar10 = puVar14;\n    do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);\n  }" ({ "{") (expression_statement "(*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);" (call_expression "(*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4)" (parenthesized_expression "(*(code *)PTR_qsort_000b2d88)" (( "(") (pointer_expression "*(code *)PTR_qsort_000b2d88" (* "*") (cast_expression "(code *)PTR_qsort_000b2d88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_qsort_000b2d88"))) () ")")) (argument_list "(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4)" (( "(") (identifier "puVar14") (, ",") (identifier "iVar6") (, ",") (number_literal "4") (, ",") (binary_expression "PTR_LAB_000b23a4 + 0x68b4" (identifier "PTR_LAB_000b23a4") (+ "+") (number_literal "0x68b4")) () ")"))) (; ";")) (expression_statement "puVar9 = PTR_s_acket_from_server___s_000b23a8;" (assignment_expression "puVar9 = PTR_s_acket_from_server___s_000b23a8" (identifier "puVar9") (= "=") (identifier "PTR_s_acket_from_server___s_000b23a8")) (; ";")) (if_statement "if (param_4 == 0) {\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }\n    else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar12 = 0;\nLAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;\n      puVar10 = puVar14 + iVar12;\n      do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);\n    }" ({ "{") (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000296f0:\n      puVar13 = PTR_sftp_put_file_000b272c;" (statement_identifier "LAB_000296f0") (: ":") (expression_statement "puVar13 = PTR_sftp_put_file_000b272c;" (assignment_expression "puVar13 = PTR_sftp_put_file_000b272c" (identifier "puVar13") (= "=") (identifier "PTR_sftp_put_file_000b272c")) (; ";"))) (expression_statement "puVar10 = puVar14 + iVar12;" (assignment_expression "puVar10 = puVar14 + iVar12" (identifier "puVar10") (= "=") (binary_expression "puVar14 + iVar12" (identifier "puVar14") (+ "+") (identifier "iVar12"))) (; ";")) (do_statement "do {\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      } while (iVar12 < iVar6);" (do "do") (compound_statement "{\n        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);\n        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);\n        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);\n        safefree(uVar5);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }\n        iVar12 = iVar12 + 1;\n        puVar10 = puVar10 + 1;\n        param_4 = 0;\n      }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);" (assignment_expression "uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10)" (parenthesized_expression "(*(code *)PTR_dir_file_cat_000b26e8)" (( "(") (pointer_expression "*(code *)PTR_dir_file_cat_000b26e8" (* "*") (cast_expression "(code *)PTR_dir_file_cat_000b26e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dir_file_cat_000b26e8"))) () ")")) (argument_list "(param_1,*puVar10)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) () ")")))) (; ";")) (expression_statement "uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);" (assignment_expression "uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0)" (identifier "uVar5") (= "=") (call_expression "dupcat(param_2,puVar9 + 0x18,*puVar10,0)" (identifier "dupcat") (argument_list "(param_2,puVar9 + 0x18,*puVar10,0)" (( "(") (identifier "param_2") (, ",") (binary_expression "puVar9 + 0x18" (identifier "puVar9") (+ "+") (number_literal "0x18")) (, ",") (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);" (assignment_expression "iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)puVar13)(uVar4,uVar5,param_3,param_4)" (parenthesized_expression "(*(code *)puVar13)" (( "(") (pointer_expression "*(code *)puVar13" (* "*") (cast_expression "(code *)puVar13" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar13"))) () ")")) (argument_list "(uVar4,uVar5,param_3,param_4)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar5") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "safefree(uVar5);" (call_expression "safefree(uVar5)" (identifier "safefree") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (if_statement "if (iVar3 == 0) {\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar3 = 0;\n          puVar10 = puVar14;\n          do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);\n          safefree(puVar14);\n          uVar11 = 0;\n          goto LAB_000294b8;\n        }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" (identifier "puVar10") (= "=") (identifier "puVar14")) (; ";")) (do_statement "do {\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          } while (iVar3 < iVar6);" (do "do") (compound_statement "{\n            iVar3 = iVar3 + 1;\n            uVar4 = *puVar10;\n            puVar10 = puVar10 + 1;\n            safefree(uVar4);\n          }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" (identifier "uVar4") (= "=") (pointer_expression "*puVar10" (* "*") (identifier "puVar10"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < iVar6)" (( "(") (binary_expression "iVar3 < iVar6" (identifier "iVar3") (< "<") (identifier "iVar6")) () ")")) (; ";")) (expression_statement "safefree(puVar14);" (call_expression "safefree(puVar14)" (identifier "safefree") (argument_list "(puVar14)" (( "(") (identifier "puVar14") () ")"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000294b8;" (goto "goto") (statement_identifier "LAB_000294b8") (; ";")) (} "}"))) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" (identifier "param_4") (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar12 < iVar6)" (( "(") (binary_expression "iVar12 < iVar6" (identifier "iVar12") (< "<") (identifier "iVar6")) () ")")) (; ";")) (} "}")) (else_clause "else {\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" (else "else") (compound_statement "{\n      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;\n      iVar3 = 0;\n      puVar10 = puVar14;\n      do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);\n      if (iVar12 < iVar6) goto LAB_000296f0;\n    }" ({ "{") (expression_statement "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;" (assignment_expression "puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18" (identifier "puVar13") (= "=") (binary_expression "PTR_s_acket_from_server___s_000b23a8 + 0x18" (identifier "PTR_s_acket_from_server___s_000b23a8") (+ "+") (number_literal "0x18"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" (identifier "puVar10") (= "=") (identifier "puVar14")) (; ";")) (do_statement "do {\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      } while (iVar6 != iVar12 + 1);" (do "do") (compound_statement "{\n        iVar12 = iVar3;\n        uVar4 = dupcat(param_2,puVar13,*puVar10,0);\n        uVar5 = fxp_stat_send(uVar4);\n        uVar8 = sftp_wait_for_reply(uVar5);\n        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);\n        safefree(uVar4);\n        if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }\n        puVar10 = puVar10 + 1;\n        iVar3 = iVar12 + 1;\n      }" ({ "{") (expression_statement "iVar12 = iVar3;" (assignment_expression "iVar12 = iVar3" (identifier "iVar12") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "uVar4 = dupcat(param_2,puVar13,*puVar10,0);" (assignment_expression "uVar4 = dupcat(param_2,puVar13,*puVar10,0)" (identifier "uVar4") (= "=") (call_expression "dupcat(param_2,puVar13,*puVar10,0)" (identifier "dupcat") (argument_list "(param_2,puVar13,*puVar10,0)" (( "(") (identifier "param_2") (, ",") (identifier "puVar13") (, ",") (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar5 = fxp_stat_send(uVar4);" (assignment_expression "uVar5 = fxp_stat_send(uVar4)" (identifier "uVar5") (= "=") (call_expression "fxp_stat_send(uVar4)" (identifier "fxp_stat_send") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "uVar8 = sftp_wait_for_reply(uVar5);" (assignment_expression "uVar8 = sftp_wait_for_reply(uVar5)" (identifier "uVar8") (= "=") (call_expression "sftp_wait_for_reply(uVar5)" (identifier "sftp_wait_for_reply") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);" (assignment_expression "iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c)" (identifier "iVar3") (= "=") (call_expression "fxp_stat_recv(uVar8,uVar5,local_106c)" (identifier "fxp_stat_recv") (argument_list "(uVar8,uVar5,local_106c)" (( "(") (identifier "uVar8") (, ",") (identifier "uVar5") (, ",") (identifier "local_106c") () ")")))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (if_statement "if (iVar3 == 0) {\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (iVar12 == 0) goto LAB_000296f0;\n          iVar12 = iVar12 + -1;\n          break;\n        }" ({ "{") (if_statement "if (iVar12 == 0) goto LAB_000296f0;" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000296f0;" (goto "goto") (statement_identifier "LAB_000296f0") (; ";"))) (expression_statement "iVar12 = iVar12 + -1;" (assignment_expression "iVar12 = iVar12 + -1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + -1" (identifier "iVar12") (+ "+") (number_literal "-1"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar12 + 1;" (assignment_expression "iVar3 = iVar12 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != iVar12 + 1)" (( "(") (binary_expression "iVar6 != iVar12 + 1" (identifier "iVar6") (!= "!=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) () ")")) (; ";")) (if_statement "if (iVar12 < iVar6) goto LAB_000296f0;" (if "if") (parenthesized_expression "(iVar12 < iVar6)" (( "(") (binary_expression "iVar12 < iVar6" (identifier "iVar12") (< "<") (identifier "iVar6")) () ")")) (goto_statement "goto LAB_000296f0;" (goto "goto") (statement_identifier "LAB_000296f0") (; ";"))) (} "}")))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" (identifier "puVar10") (= "=") (identifier "puVar14")) (; ";")) (do_statement "do {\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    } while (iVar3 < iVar6);" (do "do") (compound_statement "{\n      iVar3 = iVar3 + 1;\n      uVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      safefree(uVar4);\n    }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = *puVar10;" (assignment_expression "uVar4 = *puVar10" (identifier "uVar4") (= "=") (pointer_expression "*puVar10" (* "*") (identifier "puVar10"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < iVar6)" (( "(") (binary_expression "iVar3 < iVar6" (identifier "iVar3") (< "<") (identifier "iVar6")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (expression_statement "safefree(puVar14);" (call_expression "safefree(puVar14)" (identifier "safefree") (argument_list "(puVar14)" (( "(") (identifier "puVar14") () ")"))) (; ";")) (labeled_statement "LAB_000294b8:\n  while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" (statement_identifier "LAB_000294b8") (: ":") (while_statement "while (local_2c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" (while "while") (parenthesized_expression "(local_2c != *(int *)puVar2)" (( "(") (binary_expression "local_2c != *(int *)puVar2" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_00029948:\n    uVar11 = 0;\nLAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b2ed8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00029948:\n    uVar11 = 0;" (statement_identifier "LAB_00029948") (: ":") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_000294a8:\n    (*(code *)PTR_close_rfile_000b2720)(param_3);" (statement_identifier "LAB_000294a8") (: ":") (expression_statement "(*(code *)PTR_close_rfile_000b2720)(param_3);" (call_expression "(*(code *)PTR_close_rfile_000b2720)(param_3)" (parenthesized_expression "(*(code *)PTR_close_rfile_000b2720)" (( "(") (pointer_expression "*(code *)PTR_close_rfile_000b2720" (* "*") (cast_expression "(code *)PTR_close_rfile_000b2720" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_rfile_000b2720"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";"))) (} "}")))) (return_statement "return uVar11;" (return "return") (identifier "uVar11") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (unary_expression argument: (identifier))))) consequence: (compound_statement (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: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (call_expression function: (identifier) arguments: (argument_list)))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (unary_expression argument: (identifier))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_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: (true))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (number_literal) (identifier) (identifier)))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (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))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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: (binary_expression left: (identifier) right: (number_literal)))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (labeled_statement label: (statement_identifier) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))))) (return_statement (identifier)))))

uint MASKED(undefined4 param_1,undefined4 param_2,int param_3,int param_4)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  int iVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined4 *puVar10;
  uint uVar11;
  int iVar12;
  undefined *puVar13;
  undefined4 *puVar14;
  uint local_1080;
  undefined4 local_107c;
  undefined4 local_1078;
  undefined4 local_1074;
  undefined4 local_1070;
  uint local_106c [5];
  uint local_1058;
  uint local_104c;
  undefined4 local_1048;
  undefined4 local_1044;
  undefined1 auStack_102c [4096];
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;
  if ((param_3 == 0) || (iVar3 = (*(code *)PTR_file_type_000b26b0)(), iVar3 != 2)) {
    param_3 = (*(code *)PTR_open_existing_file_000b26f4)(param_1,0,0,0,&local_1080);
    if (param_3 == 0) {
      uVar11 = 0;
      (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0xe0,param_1);
    }
    else {
      local_106c[0] = 0;
      if (-1 < (int)local_1080) {
        local_1058 = local_1080;
        local_106c[0] = 4;
      }
      if (param_4 == 0) {
        uVar4 = fxp_open_send(param_2,0x1a,local_106c);
        uVar5 = sftp_wait_for_reply(uVar4);
        iVar3 = fxp_open_recv(uVar5,uVar4);
        if (iVar3 != 0) {
          uint64_make(&local_107c,0,0);
LAB_00029098:
          (*(code *)PTR___printf_chk_000b2de0)
                    (1,PTR_s_acket_from_server___s_000b23a8 + 0x260,param_1,param_2);
          bVar1 = false;
          uVar11 = 0;
          uVar4 = xfer_upload_init(iVar3,local_107c,local_1078);
          puVar9 = PTR_s_acket_from_server___s_000b23a8 + 0x278;
          puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x298;
LAB_000290f0:
          do {
            if ((uVar11 == 0) && (!bVar1)) {
              iVar6 = xfer_upload_ready(uVar4);
              if (iVar6 != 0) goto LAB_0002913c;
              bVar1 = false;
              uVar11 = 0;
              goto LAB_00029178;
            }
LAB_00029104:
            iVar6 = xfer_done(uVar4);
            if (iVar6 != 0) {
              xfer_cleanup(uVar4);
              uVar4 = fxp_close_send(iVar3);
              uVar5 = sftp_wait_for_reply(uVar4);
              iVar3 = fxp_close_recv(uVar5,uVar4);
              if (iVar3 == 0) {
                if (uVar11 != 0) goto LAB_00029948;
                uVar4 = fxp_error();
                (*(code *)PTR___printf_chk_000b2de0)
                          (1,PTR_s_acket_from_server___s_000b23a8 + 0x2b4,uVar4);
                uVar11 = 0;
                goto LAB_000294a8;
              }
              uVar11 = uVar11 ^ 1;
              goto LAB_000294a8;
            }
            iVar6 = xfer_upload_ready(uVar4);
            if (((iVar6 != 0) && (uVar11 == 0)) && (!bVar1)) {
LAB_0002913c:
              do {
                iVar6 = (*(code *)PTR_read_from_file_000b2700)(param_3,auStack_102c,0x1000);
                if (iVar6 == -1) {
                  bVar1 = false;
                  uVar11 = 1;
                  (*(code *)PTR_puts_000b2e84)(puVar9);
                  xfer_upload_ready(uVar4);
                  goto LAB_00029178;
                }
                if (iVar6 == 0) {
                  bVar1 = true;
                  xfer_upload_ready(uVar4);
                  uVar11 = 0;
                  goto LAB_00029178;
                }
                xfer_upload_data(uVar4,auStack_102c,iVar6);
                iVar6 = xfer_upload_ready(uVar4);
              } while (iVar6 != 0);
              bVar1 = false;
              uVar11 = 0;
            }
LAB_00029178:
            iVar6 = xfer_done(uVar4);
          } while (iVar6 != 0);
          uVar5 = sftp_recv();
          iVar6 = xfer_upload_gotpkt(uVar4,uVar5);
          if (0 < iVar6) goto LAB_000290f0;
          if (iVar6 == -0x80000000) {
            safefree(uVar5);
          }
          if (uVar11 == 0) {
            uVar11 = 1;
            uVar5 = fxp_error();
            (*(code *)PTR___printf_chk_000b2de0)(1,puVar13,uVar5);
          }
          goto LAB_00029104;
        }
      }
      else {
        uVar4 = fxp_open_send(param_2,2,local_106c);
        uVar5 = sftp_wait_for_reply(uVar4);
        iVar3 = fxp_open_recv(uVar5,uVar4);
        if (iVar3 != 0) {
          uVar4 = fxp_fstat_send(iVar3);
          uVar5 = sftp_wait_for_reply(uVar4);
          iVar6 = fxp_fstat_recv(uVar5,uVar4,&local_104c);
          if (iVar6 == 0) {
            uVar4 = fxp_error();
            (*(code *)PTR___printf_chk_000b2de0)
                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x1f8,param_2,uVar4);
          }
          else {
            if ((local_104c & 1) != 0) {
              local_107c = local_1048;
              local_1078 = local_1044;
              uint64_decimal(local_1048,local_1044,auStack_102c);
              (*(code *)PTR___printf_chk_000b2de0)
                        (1,PTR_s_acket_from_server___s_000b23a8 + 0x238,auStack_102c);
              iVar6 = (*(code *)PTR_seek_file_000b26d4)(param_3,local_107c,local_1078,0);
              if (iVar6 != 0) {
                uint64_make(&local_1074,0,0);
                (*(code *)PTR_seek_file_000b26d4)(param_3,local_1074,local_1070,2);
              }
              goto LAB_00029098;
            }
            (*(code *)PTR___printf_chk_000b2de0)
                      (1,PTR_s_acket_from_server___s_000b23a8 + 0x210,param_2);
          }
          uVar11 = 0;
          uVar4 = fxp_close_send(iVar3);
          uVar5 = sftp_wait_for_reply(uVar4);
          fxp_close_recv(uVar5,uVar4);
          goto LAB_000294a8;
        }
      }
      uVar11 = 0;
      (*(code *)PTR_close_rfile_000b2720)(param_3);
      uVar4 = fxp_error();
      (*(code *)PTR___printf_chk_000b2de0)
                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1e0,param_2,uVar4);
    }
    goto LAB_000294b8;
  }
  uVar4 = fxp_stat_send(param_2);
  uVar5 = sftp_wait_for_reply(uVar4);
  iVar3 = fxp_stat_recv(uVar5,uVar4,local_106c);
  if ((iVar3 == 0) || (((local_106c[0] & 4) == 0 || ((local_1058 & 0x4000) == 0)))) {
    uVar4 = fxp_mkdir_send(param_2);
    uVar5 = sftp_wait_for_reply(uVar4);
    iVar3 = fxp_mkdir_recv(uVar5,uVar4);
    if (iVar3 == 0) {
      uVar4 = fxp_error();
      (*(code *)PTR___printf_chk_000b2de0)
                (1,PTR_s_acket_from_server___s_000b23a8 + 0x1a4,param_2,uVar4);
      uVar11 = 0;
      goto LAB_000294b8;
    }
  }
  iVar3 = (*(code *)PTR_open_directory_000b2718)(param_1);
  if (iVar3 == 0) {
    uVar11 = 0;
    (*(code *)PTR___printf_chk_000b2de0)(1,PTR_s_acket_from_server___s_000b23a8 + 0x1c0,param_1);
    goto LAB_000294b8;
  }
  puVar14 = (undefined4 *)0x0;
  iVar12 = 0;
  iVar6 = 0;
  while (iVar7 = (*(code *)PTR_read_filename_000b271c)(iVar3), iVar7 != 0) {
    if (iVar12 <= iVar6) {
      iVar12 = iVar12 + 0x80;
      puVar14 = (undefined4 *)saferealloc(puVar14,iVar12,4);
    }
    puVar14[iVar6] = iVar7;
    iVar6 = iVar6 + 1;
  }
  (*(code *)PTR_close_directory_000b2728)(iVar3);
  if (iVar6 != 0) {
    (*(code *)PTR_qsort_000b2d88)(puVar14,iVar6,4,PTR_LAB_000b23a4 + 0x68b4);
    puVar9 = PTR_s_acket_from_server___s_000b23a8;
    if (param_4 == 0) {
      iVar12 = 0;
LAB_000296f0:
      puVar13 = PTR_MASKED_000b272c;
      puVar10 = puVar14 + iVar12;
      do {
        uVar4 = (*(code *)PTR_dir_file_cat_000b26e8)(param_1,*puVar10);
        uVar5 = dupcat(param_2,puVar9 + 0x18,*puVar10,0);
        iVar3 = (*(code *)puVar13)(uVar4,uVar5,param_3,param_4);
        safefree(uVar5);
        safefree(uVar4);
        if (iVar3 == 0) {
          iVar3 = 0;
          puVar10 = puVar14;
          do {
            iVar3 = iVar3 + 1;
            uVar4 = *puVar10;
            puVar10 = puVar10 + 1;
            safefree(uVar4);
          } while (iVar3 < iVar6);
          safefree(puVar14);
          uVar11 = 0;
          goto LAB_000294b8;
        }
        iVar12 = iVar12 + 1;
        puVar10 = puVar10 + 1;
        param_4 = 0;
      } while (iVar12 < iVar6);
    }
    else {
      puVar13 = PTR_s_acket_from_server___s_000b23a8 + 0x18;
      iVar3 = 0;
      puVar10 = puVar14;
      do {
        iVar12 = iVar3;
        uVar4 = dupcat(param_2,puVar13,*puVar10,0);
        uVar5 = fxp_stat_send(uVar4);
        uVar8 = sftp_wait_for_reply(uVar5);
        iVar3 = fxp_stat_recv(uVar8,uVar5,local_106c);
        safefree(uVar4);
        if (iVar3 == 0) {
          if (iVar12 == 0) goto LAB_000296f0;
          iVar12 = iVar12 + -1;
          break;
        }
        puVar10 = puVar10 + 1;
        iVar3 = iVar12 + 1;
      } while (iVar6 != iVar12 + 1);
      if (iVar12 < iVar6) goto LAB_000296f0;
    }
    iVar3 = 0;
    puVar10 = puVar14;
    do {
      iVar3 = iVar3 + 1;
      uVar4 = *puVar10;
      puVar10 = puVar10 + 1;
      safefree(uVar4);
    } while (iVar3 < iVar6);
  }
  uVar11 = 1;
  safefree(puVar14);
LAB_000294b8:
  while (local_2c != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_000b2ed8)();
LAB_00029948:
    uVar11 = 0;
LAB_000294a8:
    (*(code *)PTR_close_rfile_000b2720)(param_3);
  }
  return uVar11;
}

