
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode smb_send_and_recv(connectdata *conn,void **msg)

{
  anon_union_208_10_26c073a1_for_proto *paVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined2 extraout_var;
  undefined2 extraout_var_00;
  uint uVar4;
  CURLcode CVar5;
  _func_CURLcode_connectdata_ptr *p_Var6;
  ushort uVar8;
  size_t sVar7;
  Curl_easy *pCVar9;
  size_t sVar10;
  int iVar11;
  uint uVar12;
  curl_slist *pcVar13;
  connectdata *pcVar14;
  size_t nread;
  void *local_24;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar2 = PTR_Curl_fillreadbuffer_000a617c;
  iVar11 = (conn->proto).ftpc.pp.response_time;
  local_24 = *(void **)PTR___stack_chk_guard_000a6fe0;
  pcVar14 = (connectdata *)&nread;
  if (iVar11 == 0) {
    uVar4 = (conn->proto).smbc.upload_size;
    if (uVar4 == 0) {
      do {
        sVar10 = (conn->proto).smbc.got;
        pcVar13 = (conn->proto).sshc.quote_item;
        CVar5 = (*(code *)PTR_Curl_read_000a6534)
                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);
        if (((CVar5 == CURLE_OK) && (nread != 0)) &&
           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,
           (conn->proto).ftpc.pp.statemach_act = p_Var6,
           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {
          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));
          paVar1 = &conn->proto;
          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);
          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {
            if ((connectdata *)0x24 < conn) {
              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;
              pcVar14 = (connectdata *)(iVar11 + 0x27);
              if (pcVar14 <= conn) {
                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));
                conn = (connectdata *)
                       (uint)(conn < (connectdata *)
                                     ((pcVar14->chunk).hexbuffer +
                                     CONCAT22(extraout_var_00,uVar8) + -0x10));
                if (conn != (connectdata *)0x0) {
                  CVar5 = CURLE_READ_ERROR;
                  goto LAB_0006ba0c;
                }
              }
            }
            *msg = pcVar13;
          }
        }
LAB_0006ba0c:
        while( true ) {
          if (local_24 == *(void **)puVar3) {
            return CVar5;
          }
          (*(code *)PTR___stack_chk_fail_000a6c54)();
LAB_0006bb34:
          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;
LAB_0006bb18:
          if (iVar11 == 0) break;
          CVar5 = CURLE_AGAIN;
        }
      } while( true );
    }
    pCVar9 = conn->data;
    uVar12 = (pCVar9->set).upload_buffer_size;
    nread = uVar4;
    if (uVar12 <= uVar4) {
      nread = uVar12;
    }
    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;
    CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);
    if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;
    sVar7 = 0;
    CVar5 = nread;
    if (nread == 0) goto LAB_0006ba0c;
    iVar11 = (conn->proto).ftpc.pp.response.tv_usec;
    (conn->proto).smbc.send_size = nread;
    (conn->proto).ftpc.pp.conn = (connectdata *)0x0;
    (conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;
    sVar10 = nread;
  }
  else {
    sVar7 = (conn->proto).smbc.sent;
    sVar10 = iVar11 - sVar7;
  }
  CVar5 = (*(code *)PTR_Curl_write_000a62e8)
                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14);
  if (CVar5 != CURLE_OK) goto LAB_0006ba0c;
  if (sVar10 != nread) {
    iVar11 = (conn->proto).ftpc.pp.response_time;
    (conn->proto).ftpc.pp.conn =
         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));
    if (iVar11 == 0) goto LAB_0006bb34;
    CVar5 = CURLE_AGAIN;
    goto LAB_0006ba0c;
  }
  iVar11 = (conn->proto).ftpc.pp.response.tv_usec;
  (conn->proto).ftpc.pp.response_time = 0;
  goto LAB_0006bb18;
}



uint FUN_0006b8f8(uint *param_1,uint *param_2)

{
  uint *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  uint *puVar8;
  uint local_28;
  int local_24;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar2 = PTR_FUN_000a617c;
  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;
  puVar8 = &local_28;
  if (param_1[0x136] == 0) {
    uVar4 = param_1[0x135];
    if (uVar4 == 0) {
      do {
        uVar4 = param_1[0x134];
        uVar5 = (*(code *)PTR_FUN_000a6534)
                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);
        if (((uVar5 == 0) && (local_28 != 0)) &&
           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {
          iVar6 = FUN_0006d1d8(uVar4 + 2);
          puVar1 = param_1 + 0x138;
          param_1 = (uint *)(iVar6 + 4);
          if (param_1 <= (uint *)*puVar1) {
            if ((uint *)0x24 < param_1) {
              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;
              puVar8 = (uint *)(iVar6 + 0x27);
              if (puVar8 <= param_1) {
                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);
                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));
                if (param_1 != (uint *)0x0) {
                  uVar5 = 0x1a;
                  goto LAB_0006ba0c;
                }
              }
            }
            *param_2 = uVar4;
          }
        }
LAB_0006ba0c:
        while( true ) {
          if (local_24 == *(int *)puVar3) {
            return uVar5;
          }
          (*(code *)PTR___stack_chk_fail_000a6c54)();
LAB_0006bb34:
          uVar4 = param_1[0x135];
LAB_0006bb18:
          if (uVar4 == 0) break;
          uVar5 = 0x51;
        }
      } while( true );
    }
    uVar7 = *param_1;
    local_28 = uVar4;
    if (*(uint *)(uVar7 + 0x914) <= uVar4) {
      local_28 = *(uint *)(uVar7 + 0x914);
    }
    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);
    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);
    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;
    uVar7 = 0;
    uVar5 = local_28;
    if (local_28 == 0) goto LAB_0006ba0c;
    param_1[0x136] = local_28;
    param_1[0x137] = 0;
    param_1[0x135] = param_1[0x135] - local_28;
    uVar4 = local_28;
  }
  else {
    uVar7 = param_1[0x137];
    uVar4 = param_1[0x136] - uVar7;
  }
  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);
  if (uVar5 != 0) goto LAB_0006ba0c;
  if (uVar4 != local_28) {
    param_1[0x137] = param_1[0x137] + local_28;
    if (param_1[0x136] == 0) goto LAB_0006bb34;
    uVar5 = 0x51;
    goto LAB_0006ba0c;
  }
  uVar4 = param_1[0x135];
  param_1[0x136] = 0;
  goto LAB_0006bb18;
}


lui gp,0x4
addiu gp,gp,0x2818
addu gp,gp,t9
addiu sp,sp,-0x48
lw a3,0x4d8(a0)
sw s3,0x38(sp)
lw s3,-0x7130(gp)
sw gp,0x18(sp)
sw s5,0x40(sp)
or s5,a1,zero
sw s0,0x2c(sp)
or s0,a0,zero
sw ra,0x44(sp)
sw s4,0x3c(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
lw v0,0x0(s3)
sw v0,0x24(sp)
bne a3,zero,0x0006ba40
_addiu s4,sp,0x20
lw v0,0x4d4(a0)
bne v0,zero,0x0006baa0
_lw t9,-0x7f94(gp)
lw a2,0x4e0(s0)
ori a3,zero,0x9000
lw s2,0x4d0(s0)
or a1,zero,zero
lw t9,-0x7bdc(gp)
or a0,s0,zero
subu a3,a3,a2
sw s4,0x10(sp)
jalr t9
_addu a2,s2,a2
lw gp,0x18(sp)
bne v0,zero,0x0006ba0c
_or s1,v0,zero
lw v0,0x20(sp)
beq v0,zero,0x0006ba0c
_nop
lw v1,0x4e0(s0)
addu v0,v0,v1
sltiu v1,v0,0x4
bne v1,zero,0x0006ba0c
_sw v0,0x4e0(s0)
lw t9,-0x78e4(gp)
bal 0x0006d1d8
_addiu a0,s2,0x2
lw v1,0x4e0(s0)
addiu s0,v0,0x4
sltu v1,v1,s0
bne v1,zero,0x0006ba0c
_lw gp,0x18(sp)
sltiu v0,s0,0x25
bne v0,zero,0x0006bb08
_nop
lbu v0,0x24(s2)
sll v0,v0,0x1
addiu s4,v0,0x27
sltu v1,s0,s4
bne v1,zero,0x0006bb08
_addiu v0,v0,0x25
lw t9,-0x78e0(gp)
bal 0x0006d1b0
_addu a0,s2,v0
addu v0,v0,s4
sltu s0,s0,v0
beq s0,zero,0x0006bb08
_lw gp,0x18(sp)
li s1,0x1a
lw a0,0x24(sp)
or v0,s1,zero
lw v1,0x0(s3)
bne a0,v1,0x0006bb28
_lw ra,0x44(sp)
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x48
lw v0,0x4dc(a0)
subu s2,a3,v0
lw v1,0x0(s0)
or a1,zero,zero
lw t9,-0x7e28(gp)
or a3,s2,zero
or a0,s0,zero
lw a2,0xc98(v1)
sw s4,0x10(sp)
jalr t9
_addu a2,a2,v0
lw gp,0x18(sp)
bne v0,zero,0x0006ba0c
_or s1,v0,zero
lw v1,0x20(sp)
beq s2,v1,0x0006bb10
_nop
lw v0,0x4dc(s0)
lw a0,0x4d8(s0)
addu v0,v0,v1
beq a0,zero,0x0006bb34
_sw v0,0x4dc(s0)
b 0x0006ba0c
_li s1,0x51
lw v1,0x0(a0)
or a2,s4,zero
lw a3,0x914(v1)
lw t0,0xc98(v1)
sltu a1,v0,a3
movz v0,a3,a1
sw v0,0x20(sp)
or a1,v0,zero
jalr t9
_sw t0,0x14c(v1)
lw gp,0x18(sp)
beq v0,zero,0x0006bae0
_or s1,v0,zero
li v0,0x51
bne s1,v0,0x0006ba0c
_nop
lw s1,0x20(sp)
beq s1,zero,0x0006ba0c
_or v0,zero,zero
lw v1,0x4d4(s0)
or s2,s1,zero
sw s1,0x4d8(s0)
sw zero,0x4dc(s0)
subu s1,v1,s1
b 0x0006ba48
_sw s1,0x4d4(s0)
b 0x0006ba0c
_sw s2,0x0(s5)
lw v0,0x4d4(s0)
sw zero,0x4d8(s0)
beq v0,zero,0x0006b954
_nop
b 0x0006ba0c
_li s1,0x51
lw t9,-0x74bc(gp)
jalr t9
_nop
b 0x0006bb18
_lw v0,0x4d4(s0)
(translation_unit "uint FUN_0006b8f8(uint *param_1,uint *param_2)\n\n{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}\n\n" (function_definition "uint FUN_0006b8f8(uint *param_1,uint *param_2)\n\n{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}" type_identifier (function_declarator "FUN_0006b8f8(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_FUN_000a617c;" (assignment_expression "puVar2 = PTR_FUN_000a617c" identifier = identifier) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar8 = &local_28;" (assignment_expression "puVar8 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (if_statement "if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" if (parenthesized_expression "(param_1[0x136] == 0)" ( (binary_expression "param_1[0x136] == 0" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }" { (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" identifier = (subscript_expression "param_1[0x135]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }" { (do_statement "do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );" do (compound_statement "{\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      }" { (expression_statement "uVar4 = param_1[0x134];" (assignment_expression "uVar4 = param_1[0x134]" identifier = (subscript_expression "param_1[0x134]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" identifier = (call_expression "(*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" (parenthesized_expression "(*(code *)PTR_FUN_000a6534)" ( (pointer_expression "*(code *)PTR_FUN_000a6534" * (cast_expression "(code *)PTR_FUN_000a6534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" ( identifier , number_literal , (binary_expression "uVar4 + param_1[0x138]" identifier + (subscript_expression "param_1[0x138]" identifier [ number_literal ])) , (binary_expression "0x9000 - param_1[0x138]" number_literal - (subscript_expression "param_1[0x138]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }" if (parenthesized_expression "(((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7))" ( (binary_expression "((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)" (parenthesized_expression "((uVar5 == 0) && (local_28 != 0))" ( (binary_expression "(uVar5 == 0) && (local_28 != 0)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)" ( (comma_expression "uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7" (assignment_expression "uVar7 = param_1[0x138]" identifier = (subscript_expression "param_1[0x138]" identifier [ number_literal ])) , (comma_expression "param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7" (assignment_expression "param_1[0x138] = local_28 + uVar7" (subscript_expression "param_1[0x138]" identifier [ number_literal ]) = (binary_expression "local_28 + uVar7" identifier + identifier)) , (binary_expression "3 < local_28 + uVar7" number_literal < (binary_expression "local_28 + uVar7" identifier + identifier)))) ))) )) (compound_statement "{\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }" { (expression_statement "iVar6 = FUN_0006d1d8(uVar4 + 2);" (assignment_expression "iVar6 = FUN_0006d1d8(uVar4 + 2)" identifier = (call_expression "FUN_0006d1d8(uVar4 + 2)" identifier (argument_list "(uVar4 + 2)" ( (binary_expression "uVar4 + 2" identifier + number_literal) )))) ;) (expression_statement "puVar1 = param_1 + 0x138;" (assignment_expression "puVar1 = param_1 + 0x138" identifier = (binary_expression "param_1 + 0x138" identifier + number_literal)) ;) (expression_statement "param_1 = (uint *)(iVar6 + 4);" (assignment_expression "param_1 = (uint *)(iVar6 + 4)" identifier = (cast_expression "(uint *)(iVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) ;) (if_statement "if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }" if (parenthesized_expression "(param_1 <= (uint *)*puVar1)" ( (binary_expression "param_1 <= (uint *)*puVar1" identifier <= (cast_expression "(uint *)*puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) )) (compound_statement "{\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }" { (if_statement "if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" if (parenthesized_expression "((uint *)0x24 < param_1)" ( (binary_expression "(uint *)0x24 < param_1" (cast_expression "(uint *)0x24" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) (compound_statement "{\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" { (expression_statement "iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;" (assignment_expression "iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2" identifier = (binary_expression "(uint)*(byte *)(uVar4 + 0x24) * 2" (binary_expression "(uint)*(byte *)(uVar4 + 0x24)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(uVar4 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x24)" ( (binary_expression "uVar4 + 0x24" identifier + number_literal) )))) * number_literal)) ;) (expression_statement "puVar8 = (uint *)(iVar6 + 0x27);" (assignment_expression "puVar8 = (uint *)(iVar6 + 0x27)" identifier = (cast_expression "(uint *)(iVar6 + 0x27)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x27)" ( (binary_expression "iVar6 + 0x27" identifier + number_literal) )))) ;) (if_statement "if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }" if (parenthesized_expression "(puVar8 <= param_1)" ( (binary_expression "puVar8 <= param_1" identifier <= identifier) )) (compound_statement "{\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }" { (expression_statement "iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);" (assignment_expression "iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25)" identifier = (call_expression "FUN_0006d1b0(uVar4 + iVar6 + 0x25)" identifier (argument_list "(uVar4 + iVar6 + 0x25)" ( (binary_expression "uVar4 + iVar6 + 0x25" (binary_expression "uVar4 + iVar6" identifier + identifier) + number_literal) )))) ;) (expression_statement "param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));" (assignment_expression "param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" identifier = (cast_expression "(uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 < (uint *)(iVar6 + (int)puVar8))" ( (binary_expression "param_1 < (uint *)(iVar6 + (int)puVar8)" identifier < (cast_expression "(uint *)(iVar6 + (int)puVar8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (int)puVar8)" ( (binary_expression "iVar6 + (int)puVar8" identifier + (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ))))) ;) (if_statement "if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }" if (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }" { (expression_statement "uVar5 = 0x1a;" (assignment_expression "uVar5 = 0x1a" identifier = number_literal) ;) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;) })) })) })) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) })) })) (labeled_statement "LAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" statement_identifier : (while_statement "while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" { (if_statement "if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }" if (parenthesized_expression "(local_24 == *(int *)puVar3)" ( (binary_expression "local_24 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n            return uVar5;\n          }" { (return_statement "return uVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006bb34:\n          uVar4 = param_1[0x135];" statement_identifier : (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" identifier = (subscript_expression "param_1[0x135]" identifier [ number_literal ])) ;)) (labeled_statement "LAB_0006bb18:\n          if (uVar4 == 0) break;" statement_identifier : (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) (expression_statement "uVar5 = 0x51;" (assignment_expression "uVar5 = 0x51" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "local_28 = uVar4;" (assignment_expression "local_28 = uVar4" identifier = identifier) ;) (if_statement "if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }" if (parenthesized_expression "(*(uint *)(uVar7 + 0x914) <= uVar4)" ( (binary_expression "*(uint *)(uVar7 + 0x914) <= uVar4" (pointer_expression "*(uint *)(uVar7 + 0x914)" * (cast_expression "(uint *)(uVar7 + 0x914)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x914)" ( (binary_expression "uVar7 + 0x914" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }" { (expression_statement "local_28 = *(uint *)(uVar7 + 0x914);" (assignment_expression "local_28 = *(uint *)(uVar7 + 0x914)" identifier = (pointer_expression "*(uint *)(uVar7 + 0x914)" * (cast_expression "(uint *)(uVar7 + 0x914)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x914)" ( (binary_expression "uVar7 + 0x914" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);" (assignment_expression "*(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98)" (pointer_expression "*(undefined4 *)(uVar7 + 0x14c)" * (cast_expression "(undefined4 *)(uVar7 + 0x14c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x14c)" ( (binary_expression "uVar7 + 0x14c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(uVar7 + 0xc98)" * (cast_expression "(undefined4 *)(uVar7 + 0xc98)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0xc98)" ( (binary_expression "uVar7 + 0xc98" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);" (assignment_expression "uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8)" identifier = (call_expression "(*(code *)puVar2)(param_1,local_28,puVar8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,local_28,puVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;" if (parenthesized_expression "((uVar5 != 0) && (uVar5 != 0x51))" ( (binary_expression "(uVar5 != 0) && (uVar5 != 0x51)" (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar5 != 0x51)" ( (binary_expression "uVar5 != 0x51" identifier != number_literal) ))) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = local_28;" (assignment_expression "uVar5 = local_28" identifier = identifier) ;) (if_statement "if (local_28 == 0) goto LAB_0006ba0c;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (expression_statement "param_1[0x136] = local_28;" (assignment_expression "param_1[0x136] = local_28" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x137] = 0;" (assignment_expression "param_1[0x137] = 0" (subscript_expression "param_1[0x137]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x135] = param_1[0x135] - local_28;" (assignment_expression "param_1[0x135] = param_1[0x135] - local_28" (subscript_expression "param_1[0x135]" identifier [ number_literal ]) = (binary_expression "param_1[0x135] - local_28" (subscript_expression "param_1[0x135]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "uVar4 = local_28;" (assignment_expression "uVar4 = local_28" identifier = identifier) ;) }) (else_clause "else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" else (compound_statement "{\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" { (expression_statement "uVar7 = param_1[0x137];" (assignment_expression "uVar7 = param_1[0x137]" identifier = (subscript_expression "param_1[0x137]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_1[0x136] - uVar7;" (assignment_expression "uVar4 = param_1[0x136] - uVar7" identifier = (binary_expression "param_1[0x136] - uVar7" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) - identifier)) ;) }))) (expression_statement "uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" identifier = (call_expression "(*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" (parenthesized_expression "(*(code *)PTR_FUN_000a62e8)" ( (pointer_expression "*(code *)PTR_FUN_000a62e8" * (cast_expression "(code *)PTR_FUN_000a62e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" ( identifier , number_literal , (binary_expression "*(int *)(*param_1 + 0xc98) + uVar7" (pointer_expression "*(int *)(*param_1 + 0xc98)" * (cast_expression "(int *)(*param_1 + 0xc98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc98)" ( (binary_expression "*param_1 + 0xc98" (pointer_expression "*param_1" * identifier) + number_literal) )))) + identifier) , identifier , identifier )))) ;) (if_statement "if (uVar5 != 0) goto LAB_0006ba0c;" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (if_statement "if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }" if (parenthesized_expression "(uVar4 != local_28)" ( (binary_expression "uVar4 != local_28" identifier != identifier) )) (compound_statement "{\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }" { (expression_statement "param_1[0x137] = param_1[0x137] + local_28;" (assignment_expression "param_1[0x137] = param_1[0x137] + local_28" (subscript_expression "param_1[0x137]" identifier [ number_literal ]) = (binary_expression "param_1[0x137] + local_28" (subscript_expression "param_1[0x137]" identifier [ number_literal ]) + identifier)) ;) (if_statement "if (param_1[0x136] == 0) goto LAB_0006bb34;" if (parenthesized_expression "(param_1[0x136] == 0)" ( (binary_expression "param_1[0x136] == 0" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_0006bb34;" goto statement_identifier ;)) (expression_statement "uVar5 = 0x51;" (assignment_expression "uVar5 = 0x51" identifier = number_literal) ;) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;) })) (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" identifier = (subscript_expression "param_1[0x135]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x136] = 0;" (assignment_expression "param_1[0x136] = 0" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0006bb18;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode smb_send_and_recv(connectdata *conn,void **msg)\n\n{\n  anon_union_208_10_26c073a1_for_proto *paVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined2 extraout_var;\n  undefined2 extraout_var_00;\n  uint uVar4;\n  CURLcode CVar5;\n  _func_CURLcode_connectdata_ptr *p_Var6;\n  ushort uVar8;\n  size_t sVar7;\n  Curl_easy *pCVar9;\n  size_t sVar10;\n  int iVar11;\n  uint uVar12;\n  curl_slist *pcVar13;\n  connectdata *pcVar14;\n  size_t nread;\n  void *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_Curl_fillreadbuffer_000a617c;\n  iVar11 = (conn->proto).ftpc.pp.response_time;\n  local_24 = *(void **)PTR___stack_chk_guard_000a6fe0;\n  pcVar14 = (connectdata *)&nread;\n  if (iVar11 == 0) {\n    uVar4 = (conn->proto).smbc.upload_size;\n    if (uVar4 == 0) {\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }\n    pCVar9 = conn->data;\n    uVar12 = (pCVar9->set).upload_buffer_size;\n    nread = uVar4;\n    if (uVar12 <= uVar4) {\n      nread = uVar12;\n    }\n    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;\n    CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);\n    if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;\n    sVar7 = 0;\n    CVar5 = nread;\n    if (nread == 0) goto LAB_0006ba0c;\n    iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n    (conn->proto).smbc.send_size = nread;\n    (conn->proto).ftpc.pp.conn = (connectdata *)0x0;\n    (conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;\n    sVar10 = nread;\n  }\n  else {\n    sVar7 = (conn->proto).smbc.sent;\n    sVar10 = iVar11 - sVar7;\n  }\n  CVar5 = (*(code *)PTR_Curl_write_000a62e8)\n                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14);\n  if (CVar5 != CURLE_OK) goto LAB_0006ba0c;\n  if (sVar10 != nread) {\n    iVar11 = (conn->proto).ftpc.pp.response_time;\n    (conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));\n    if (iVar11 == 0) goto LAB_0006bb34;\n    CVar5 = CURLE_AGAIN;\n    goto LAB_0006ba0c;\n  }\n  iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n  (conn->proto).ftpc.pp.response_time = 0;\n  goto LAB_0006bb18;\n}\n\n" comment (function_definition "CURLcode smb_send_and_recv(connectdata *conn,void **msg)\n\n{\n  anon_union_208_10_26c073a1_for_proto *paVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined2 extraout_var;\n  undefined2 extraout_var_00;\n  uint uVar4;\n  CURLcode CVar5;\n  _func_CURLcode_connectdata_ptr *p_Var6;\n  ushort uVar8;\n  size_t sVar7;\n  Curl_easy *pCVar9;\n  size_t sVar10;\n  int iVar11;\n  uint uVar12;\n  curl_slist *pcVar13;\n  connectdata *pcVar14;\n  size_t nread;\n  void *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_Curl_fillreadbuffer_000a617c;\n  iVar11 = (conn->proto).ftpc.pp.response_time;\n  local_24 = *(void **)PTR___stack_chk_guard_000a6fe0;\n  pcVar14 = (connectdata *)&nread;\n  if (iVar11 == 0) {\n    uVar4 = (conn->proto).smbc.upload_size;\n    if (uVar4 == 0) {\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }\n    pCVar9 = conn->data;\n    uVar12 = (pCVar9->set).upload_buffer_size;\n    nread = uVar4;\n    if (uVar12 <= uVar4) {\n      nread = uVar12;\n    }\n    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;\n    CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);\n    if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;\n    sVar7 = 0;\n    CVar5 = nread;\n    if (nread == 0) goto LAB_0006ba0c;\n    iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n    (conn->proto).smbc.send_size = nread;\n    (conn->proto).ftpc.pp.conn = (connectdata *)0x0;\n    (conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;\n    sVar10 = nread;\n  }\n  else {\n    sVar7 = (conn->proto).smbc.sent;\n    sVar10 = iVar11 - sVar7;\n  }\n  CVar5 = (*(code *)PTR_Curl_write_000a62e8)\n                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14);\n  if (CVar5 != CURLE_OK) goto LAB_0006ba0c;\n  if (sVar10 != nread) {\n    iVar11 = (conn->proto).ftpc.pp.response_time;\n    (conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));\n    if (iVar11 == 0) goto LAB_0006bb34;\n    CVar5 = CURLE_AGAIN;\n    goto LAB_0006ba0c;\n  }\n  iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n  (conn->proto).ftpc.pp.response_time = 0;\n  goto LAB_0006bb18;\n}" type_identifier (function_declarator "smb_send_and_recv(connectdata *conn,void **msg)" identifier (parameter_list "(connectdata *conn,void **msg)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "void **msg" primitive_type (pointer_declarator "**msg" * (pointer_declarator "*msg" * identifier))) ))) (compound_statement "{\n  anon_union_208_10_26c073a1_for_proto *paVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined2 extraout_var;\n  undefined2 extraout_var_00;\n  uint uVar4;\n  CURLcode CVar5;\n  _func_CURLcode_connectdata_ptr *p_Var6;\n  ushort uVar8;\n  size_t sVar7;\n  Curl_easy *pCVar9;\n  size_t sVar10;\n  int iVar11;\n  uint uVar12;\n  curl_slist *pcVar13;\n  connectdata *pcVar14;\n  size_t nread;\n  void *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_Curl_fillreadbuffer_000a617c;\n  iVar11 = (conn->proto).ftpc.pp.response_time;\n  local_24 = *(void **)PTR___stack_chk_guard_000a6fe0;\n  pcVar14 = (connectdata *)&nread;\n  if (iVar11 == 0) {\n    uVar4 = (conn->proto).smbc.upload_size;\n    if (uVar4 == 0) {\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }\n    pCVar9 = conn->data;\n    uVar12 = (pCVar9->set).upload_buffer_size;\n    nread = uVar4;\n    if (uVar12 <= uVar4) {\n      nread = uVar12;\n    }\n    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;\n    CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);\n    if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;\n    sVar7 = 0;\n    CVar5 = nread;\n    if (nread == 0) goto LAB_0006ba0c;\n    iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n    (conn->proto).smbc.send_size = nread;\n    (conn->proto).ftpc.pp.conn = (connectdata *)0x0;\n    (conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;\n    sVar10 = nread;\n  }\n  else {\n    sVar7 = (conn->proto).smbc.sent;\n    sVar10 = iVar11 - sVar7;\n  }\n  CVar5 = (*(code *)PTR_Curl_write_000a62e8)\n                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14);\n  if (CVar5 != CURLE_OK) goto LAB_0006ba0c;\n  if (sVar10 != nread) {\n    iVar11 = (conn->proto).ftpc.pp.response_time;\n    (conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));\n    if (iVar11 == 0) goto LAB_0006bb34;\n    CVar5 = CURLE_AGAIN;\n    goto LAB_0006ba0c;\n  }\n  iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n  (conn->proto).ftpc.pp.response_time = 0;\n  goto LAB_0006bb18;\n}" { (declaration "anon_union_208_10_26c073a1_for_proto *paVar1;" type_identifier (pointer_declarator "*paVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined2 extraout_var;" type_identifier identifier ;) (declaration "undefined2 extraout_var_00;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "CURLcode CVar5;" type_identifier identifier ;) (declaration "_func_CURLcode_connectdata_ptr *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (declaration "ushort uVar8;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "Curl_easy *pCVar9;" type_identifier (pointer_declarator "*pCVar9" * identifier) ;) (declaration "size_t sVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "curl_slist *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "connectdata *pcVar14;" type_identifier (pointer_declarator "*pcVar14" * identifier) ;) (declaration "size_t nread;" primitive_type identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_Curl_fillreadbuffer_000a617c;" (assignment_expression "puVar2 = PTR_Curl_fillreadbuffer_000a617c" identifier = identifier) ;) (expression_statement "iVar11 = (conn->proto).ftpc.pp.response_time;" (assignment_expression "iVar11 = (conn->proto).ftpc.pp.response_time" identifier = (field_expression "(conn->proto).ftpc.pp.response_time" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "local_24 = *(void **)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(void **)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(void **)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(void **)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar14 = (connectdata *)&nread;" (assignment_expression "pcVar14 = (connectdata *)&nread" identifier = (cast_expression "(connectdata *)&nread" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&nread" & identifier))) ;) (if_statement "if (iVar11 == 0) {\n    uVar4 = (conn->proto).smbc.upload_size;\n    if (uVar4 == 0) {\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }\n    pCVar9 = conn->data;\n    uVar12 = (pCVar9->set).upload_buffer_size;\n    nread = uVar4;\n    if (uVar12 <= uVar4) {\n      nread = uVar12;\n    }\n    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;\n    CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);\n    if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;\n    sVar7 = 0;\n    CVar5 = nread;\n    if (nread == 0) goto LAB_0006ba0c;\n    iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n    (conn->proto).smbc.send_size = nread;\n    (conn->proto).ftpc.pp.conn = (connectdata *)0x0;\n    (conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;\n    sVar10 = nread;\n  }\n  else {\n    sVar7 = (conn->proto).smbc.sent;\n    sVar10 = iVar11 - sVar7;\n  }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = (conn->proto).smbc.upload_size;\n    if (uVar4 == 0) {\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }\n    pCVar9 = conn->data;\n    uVar12 = (pCVar9->set).upload_buffer_size;\n    nread = uVar4;\n    if (uVar12 <= uVar4) {\n      nread = uVar12;\n    }\n    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;\n    CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);\n    if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;\n    sVar7 = 0;\n    CVar5 = nread;\n    if (nread == 0) goto LAB_0006ba0c;\n    iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\n    (conn->proto).smbc.send_size = nread;\n    (conn->proto).ftpc.pp.conn = (connectdata *)0x0;\n    (conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;\n    sVar10 = nread;\n  }" { (expression_statement "uVar4 = (conn->proto).smbc.upload_size;" (assignment_expression "uVar4 = (conn->proto).smbc.upload_size" identifier = (field_expression "(conn->proto).smbc.upload_size" (field_expression "(conn->proto).smbc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (uVar4 == 0) {\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );\n    }" { (do_statement "do {\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      } while( true );" do (compound_statement "{\n        sVar10 = (conn->proto).smbc.got;\n        pcVar13 = (conn->proto).sshc.quote_item;\n        CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);\n        if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }\n      }" { (expression_statement "sVar10 = (conn->proto).smbc.got;" (assignment_expression "sVar10 = (conn->proto).smbc.got" identifier = (field_expression "(conn->proto).smbc.got" (field_expression "(conn->proto).smbc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pcVar13 = (conn->proto).sshc.quote_item;" (assignment_expression "pcVar13 = (conn->proto).sshc.quote_item" identifier = (field_expression "(conn->proto).sshc.quote_item" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14);" (assignment_expression "CVar5 = (*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14)" identifier = (call_expression "(*(code *)PTR_Curl_read_000a6534)\n                          (conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14)" (parenthesized_expression "(*(code *)PTR_Curl_read_000a6534)" ( (pointer_expression "*(code *)PTR_Curl_read_000a6534" * (cast_expression "(code *)PTR_Curl_read_000a6534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(conn,0,(int)&pcVar13->data + sVar10,0x9000 - sVar10,pcVar14)" ( identifier , number_literal , (binary_expression "(int)&pcVar13->data + sVar10" (cast_expression "(int)&pcVar13->data" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pcVar13->data" & (field_expression "pcVar13->data" identifier -> field_identifier))) + identifier) , (binary_expression "0x9000 - sVar10" number_literal - identifier) , identifier )))) ;) (if_statement "if (((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)) {\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }" if (parenthesized_expression "(((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6))" ( (binary_expression "((CVar5 == CURLE_OK) && (nread != 0)) &&\n           (p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)" (parenthesized_expression "((CVar5 == CURLE_OK) && (nread != 0))" ( (binary_expression "(CVar5 == CURLE_OK) && (nread != 0)" (parenthesized_expression "(CVar5 == CURLE_OK)" ( (binary_expression "CVar5 == CURLE_OK" identifier == identifier) )) && (parenthesized_expression "(nread != 0)" ( (binary_expression "nread != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6)" ( (comma_expression "p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread,\n           (conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6" (assignment_expression "p_Var6 = (conn->proto).ftpc.pp.statemach_act + nread" identifier = (binary_expression "(conn->proto).ftpc.pp.statemach_act + nread" (field_expression "(conn->proto).ftpc.pp.statemach_act" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) + identifier)) , (comma_expression "(conn->proto).ftpc.pp.statemach_act = p_Var6,\n           (_func_CURLcode_connectdata_ptr *)0x3 < p_Var6" (assignment_expression "(conn->proto).ftpc.pp.statemach_act = p_Var6" (field_expression "(conn->proto).ftpc.pp.statemach_act" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) , (binary_expression "(_func_CURLcode_connectdata_ptr *)0x3 < p_Var6" (cast_expression "(_func_CURLcode_connectdata_ptr *)0x3" ( (type_descriptor "_func_CURLcode_connectdata_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier))) ))) )) (compound_statement "{\n          uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));\n          paVar1 = &conn->proto;\n          conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);\n          if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }\n        }" { (expression_statement "uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2));" (assignment_expression "uVar8 = Curl_read16_be((uchar *)((int)&pcVar13->data + 2))" identifier = (call_expression "Curl_read16_be((uchar *)((int)&pcVar13->data + 2))" identifier (argument_list "((uchar *)((int)&pcVar13->data + 2))" ( (cast_expression "(uchar *)((int)&pcVar13->data + 2)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pcVar13->data + 2)" ( (binary_expression "(int)&pcVar13->data + 2" (cast_expression "(int)&pcVar13->data" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pcVar13->data" & (field_expression "pcVar13->data" identifier -> field_identifier))) + number_literal) ))) )))) ;) (expression_statement "paVar1 = &conn->proto;" (assignment_expression "paVar1 = &conn->proto" identifier = (pointer_expression "&conn->proto" & (field_expression "conn->proto" identifier -> field_identifier))) ;) (expression_statement "conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4);" (assignment_expression "conn = (connectdata *)(CONCAT22(extraout_var,uVar8) + 4)" identifier = (cast_expression "(connectdata *)(CONCAT22(extraout_var,uVar8) + 4)" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CONCAT22(extraout_var,uVar8) + 4)" ( (binary_expression "CONCAT22(extraout_var,uVar8) + 4" (call_expression "CONCAT22(extraout_var,uVar8)" identifier (argument_list "(extraout_var,uVar8)" ( identifier , identifier ))) + number_literal) )))) ;) (if_statement "if (conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act) {\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }" if (parenthesized_expression "(conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act)" ( (binary_expression "conn <= (connectdata *)(paVar1->ftpc).pp.statemach_act" identifier <= (cast_expression "(connectdata *)(paVar1->ftpc).pp.statemach_act" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(paVar1->ftpc).pp.statemach_act" (field_expression "(paVar1->ftpc).pp" (parenthesized_expression "(paVar1->ftpc)" ( (field_expression "paVar1->ftpc" identifier -> field_identifier) )) . field_identifier) . field_identifier))) )) (compound_statement "{\n            if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *msg = pcVar13;\n          }" { (if_statement "if ((connectdata *)0x24 < conn) {\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" if (parenthesized_expression "((connectdata *)0x24 < conn)" ( (binary_expression "(connectdata *)0x24 < conn" (cast_expression "(connectdata *)0x24" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) (compound_statement "{\n              iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;\n              pcVar14 = (connectdata *)(iVar11 + 0x27);\n              if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" { (expression_statement "iVar11 = (uint)*(byte *)&pcVar13[4].next * 2;" (assignment_expression "iVar11 = (uint)*(byte *)&pcVar13[4].next * 2" identifier = (binary_expression "(uint)*(byte *)&pcVar13[4].next * 2" (binary_expression "(uint)*(byte *)&pcVar13[4].next" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)&pcVar13[4].next" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pcVar13[4].next" & (field_expression "pcVar13[4].next" (subscript_expression "pcVar13[4]" identifier [ number_literal ]) . field_identifier)))) * number_literal)) ;) (expression_statement "pcVar14 = (connectdata *)(iVar11 + 0x27);" (assignment_expression "pcVar14 = (connectdata *)(iVar11 + 0x27)" identifier = (cast_expression "(connectdata *)(iVar11 + 0x27)" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x27)" ( (binary_expression "iVar11 + 0x27" identifier + number_literal) )))) ;) (if_statement "if (pcVar14 <= conn) {\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }" if (parenthesized_expression "(pcVar14 <= conn)" ( (binary_expression "pcVar14 <= conn" identifier <= identifier) )) (compound_statement "{\n                uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));\n                conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));\n                if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }\n              }" { (expression_statement "uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1));" (assignment_expression "uVar8 = Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1))" identifier = (call_expression "Curl_read16_le((uchar *)((int)&pcVar13[4].next + iVar11 + 1))" identifier (argument_list "((uchar *)((int)&pcVar13[4].next + iVar11 + 1))" ( (cast_expression "(uchar *)((int)&pcVar13[4].next + iVar11 + 1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pcVar13[4].next + iVar11 + 1)" ( (binary_expression "(int)&pcVar13[4].next + iVar11 + 1" (binary_expression "(int)&pcVar13[4].next + iVar11" (cast_expression "(int)&pcVar13[4].next" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pcVar13[4].next" & (field_expression "pcVar13[4].next" (subscript_expression "pcVar13[4]" identifier [ number_literal ]) . field_identifier))) + identifier) + number_literal) ))) )))) ;) (expression_statement "conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10));" (assignment_expression "conn = (connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10))" identifier = (cast_expression "(connectdata *)\n                       (uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10))" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10))" ( (binary_expression "conn < (connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10)" identifier < (cast_expression "(connectdata *)\n                                     ((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10)" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10)" ( (binary_expression "(pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8) + -0x10" (binary_expression "(pcVar14->chunk).hexbuffer +\n                                     CONCAT22(extraout_var_00,uVar8)" (field_expression "(pcVar14->chunk).hexbuffer" (parenthesized_expression "(pcVar14->chunk)" ( (field_expression "pcVar14->chunk" identifier -> field_identifier) )) . field_identifier) + (call_expression "CONCAT22(extraout_var_00,uVar8)" identifier (argument_list "(extraout_var_00,uVar8)" ( identifier , identifier )))) + number_literal) )))) ))))) ;) (if_statement "if (conn != (connectdata *)0x0) {\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }" if (parenthesized_expression "(conn != (connectdata *)0x0)" ( (binary_expression "conn != (connectdata *)0x0" identifier != (cast_expression "(connectdata *)0x0" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                  CVar5 = CURLE_READ_ERROR;\n                  goto LAB_0006ba0c;\n                }" { (expression_statement "CVar5 = CURLE_READ_ERROR;" (assignment_expression "CVar5 = CURLE_READ_ERROR" identifier = identifier) ;) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;) })) })) })) (expression_statement "*msg = pcVar13;" (assignment_expression "*msg = pcVar13" (pointer_expression "*msg" * identifier) = identifier) ;) })) })) (labeled_statement "LAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }" statement_identifier : (while_statement "while( true ) {\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;\nLAB_0006bb18:\n          if (iVar11 == 0) break;\n          CVar5 = CURLE_AGAIN;\n        }" { (if_statement "if (local_24 == *(void **)puVar3) {\n            return CVar5;\n          }" if (parenthesized_expression "(local_24 == *(void **)puVar3)" ( (binary_expression "local_24 == *(void **)puVar3" identifier == (pointer_expression "*(void **)puVar3" * (cast_expression "(void **)puVar3" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n            return CVar5;\n          }" { (return_statement "return CVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006bb34:\n          iVar11 = (conn->proto).ftpc.pp.response.tv_usec;" statement_identifier : (expression_statement "iVar11 = (conn->proto).ftpc.pp.response.tv_usec;" (assignment_expression "iVar11 = (conn->proto).ftpc.pp.response.tv_usec" identifier = (field_expression "(conn->proto).ftpc.pp.response.tv_usec" (field_expression "(conn->proto).ftpc.pp.response" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;)) (labeled_statement "LAB_0006bb18:\n          if (iVar11 == 0) break;" statement_identifier : (if_statement "if (iVar11 == 0) break;" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) (expression_statement "CVar5 = CURLE_AGAIN;" (assignment_expression "CVar5 = CURLE_AGAIN" identifier = identifier) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "pCVar9 = conn->data;" (assignment_expression "pCVar9 = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "uVar12 = (pCVar9->set).upload_buffer_size;" (assignment_expression "uVar12 = (pCVar9->set).upload_buffer_size" identifier = (field_expression "(pCVar9->set).upload_buffer_size" (parenthesized_expression "(pCVar9->set)" ( (field_expression "pCVar9->set" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "nread = uVar4;" (assignment_expression "nread = uVar4" identifier = identifier) ;) (if_statement "if (uVar12 <= uVar4) {\n      nread = uVar12;\n    }" if (parenthesized_expression "(uVar12 <= uVar4)" ( (binary_expression "uVar12 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      nread = uVar12;\n    }" { (expression_statement "nread = uVar12;" (assignment_expression "nread = uVar12" identifier = identifier) ;) })) (expression_statement "(pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;" (assignment_expression "(pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf" (field_expression "(pCVar9->req).upload_fromhere" (parenthesized_expression "(pCVar9->req)" ( (field_expression "pCVar9->req" identifier -> field_identifier) )) . field_identifier) = (field_expression "(pCVar9->state).ulbuf" (parenthesized_expression "(pCVar9->state)" ( (field_expression "pCVar9->state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "CVar5 = (*(code *)puVar2)(conn,nread,pcVar14);" (assignment_expression "CVar5 = (*(code *)puVar2)(conn,nread,pcVar14)" identifier = (call_expression "(*(code *)puVar2)(conn,nread,pcVar14)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(conn,nread,pcVar14)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)) goto LAB_0006ba0c;" if (parenthesized_expression "((CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN))" ( (binary_expression "(CVar5 != CURLE_OK) && (CVar5 != CURLE_AGAIN)" (parenthesized_expression "(CVar5 != CURLE_OK)" ( (binary_expression "CVar5 != CURLE_OK" identifier != identifier) )) && (parenthesized_expression "(CVar5 != CURLE_AGAIN)" ( (binary_expression "CVar5 != CURLE_AGAIN" identifier != identifier) ))) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (expression_statement "sVar7 = 0;" (assignment_expression "sVar7 = 0" identifier = number_literal) ;) (expression_statement "CVar5 = nread;" (assignment_expression "CVar5 = nread" identifier = identifier) ;) (if_statement "if (nread == 0) goto LAB_0006ba0c;" if (parenthesized_expression "(nread == 0)" ( (binary_expression "nread == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (expression_statement "iVar11 = (conn->proto).ftpc.pp.response.tv_usec;" (assignment_expression "iVar11 = (conn->proto).ftpc.pp.response.tv_usec" identifier = (field_expression "(conn->proto).ftpc.pp.response.tv_usec" (field_expression "(conn->proto).ftpc.pp.response" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "(conn->proto).smbc.send_size = nread;" (assignment_expression "(conn->proto).smbc.send_size = nread" (field_expression "(conn->proto).smbc.send_size" (field_expression "(conn->proto).smbc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(conn->proto).ftpc.pp.conn = (connectdata *)0x0;" (assignment_expression "(conn->proto).ftpc.pp.conn = (connectdata *)0x0" (field_expression "(conn->proto).ftpc.pp.conn" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(connectdata *)0x0" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread;" (assignment_expression "(conn->proto).ftpc.pp.response.tv_usec = iVar11 - nread" (field_expression "(conn->proto).ftpc.pp.response.tv_usec" (field_expression "(conn->proto).ftpc.pp.response" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier) = (binary_expression "iVar11 - nread" identifier - identifier)) ;) (expression_statement "sVar10 = nread;" (assignment_expression "sVar10 = nread" identifier = identifier) ;) }) (else_clause "else {\n    sVar7 = (conn->proto).smbc.sent;\n    sVar10 = iVar11 - sVar7;\n  }" else (compound_statement "{\n    sVar7 = (conn->proto).smbc.sent;\n    sVar10 = iVar11 - sVar7;\n  }" { (expression_statement "sVar7 = (conn->proto).smbc.sent;" (assignment_expression "sVar7 = (conn->proto).smbc.sent" identifier = (field_expression "(conn->proto).smbc.sent" (field_expression "(conn->proto).smbc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "sVar10 = iVar11 - sVar7;" (assignment_expression "sVar10 = iVar11 - sVar7" identifier = (binary_expression "iVar11 - sVar7" identifier - identifier)) ;) }))) (expression_statement "CVar5 = (*(code *)PTR_Curl_write_000a62e8)\n                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14);" (assignment_expression "CVar5 = (*(code *)PTR_Curl_write_000a62e8)\n                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14)" identifier = (call_expression "(*(code *)PTR_Curl_write_000a62e8)\n                    (conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14)" (parenthesized_expression "(*(code *)PTR_Curl_write_000a62e8)" ( (pointer_expression "*(code *)PTR_Curl_write_000a62e8" * (cast_expression "(code *)PTR_Curl_write_000a62e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(conn,0,(conn->data->state).ulbuf + sVar7,sVar10,pcVar14)" ( identifier , number_literal , (binary_expression "(conn->data->state).ulbuf + sVar7" (field_expression "(conn->data->state).ulbuf" (parenthesized_expression "(conn->data->state)" ( (field_expression "conn->data->state" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier) + identifier) , identifier , identifier )))) ;) (if_statement "if (CVar5 != CURLE_OK) goto LAB_0006ba0c;" if (parenthesized_expression "(CVar5 != CURLE_OK)" ( (binary_expression "CVar5 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (if_statement "if (sVar10 != nread) {\n    iVar11 = (conn->proto).ftpc.pp.response_time;\n    (conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));\n    if (iVar11 == 0) goto LAB_0006bb34;\n    CVar5 = CURLE_AGAIN;\n    goto LAB_0006ba0c;\n  }" if (parenthesized_expression "(sVar10 != nread)" ( (binary_expression "sVar10 != nread" identifier != identifier) )) (compound_statement "{\n    iVar11 = (conn->proto).ftpc.pp.response_time;\n    (conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));\n    if (iVar11 == 0) goto LAB_0006bb34;\n    CVar5 = CURLE_AGAIN;\n    goto LAB_0006ba0c;\n  }" { (expression_statement "iVar11 = (conn->proto).ftpc.pp.response_time;" (assignment_expression "iVar11 = (conn->proto).ftpc.pp.response_time" identifier = (field_expression "(conn->proto).ftpc.pp.response_time" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "(conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10));" (assignment_expression "(conn->proto).ftpc.pp.conn =\n         (connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10))" (field_expression "(conn->proto).ftpc.pp.conn" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(connectdata *)((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10))" ( (type_descriptor "connectdata *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10))" ( (binary_expression "(((conn->proto).ftpc.pp.conn)->chunk).hexbuffer + (nread - 0x10)" (field_expression "(((conn->proto).ftpc.pp.conn)->chunk).hexbuffer" (parenthesized_expression "(((conn->proto).ftpc.pp.conn)->chunk)" ( (field_expression "((conn->proto).ftpc.pp.conn)->chunk" (parenthesized_expression "((conn->proto).ftpc.pp.conn)" ( (field_expression "(conn->proto).ftpc.pp.conn" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) )) -> field_identifier) )) . field_identifier) + (parenthesized_expression "(nread - 0x10)" ( (binary_expression "nread - 0x10" identifier - number_literal) ))) )))) ;) (if_statement "if (iVar11 == 0) goto LAB_0006bb34;" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006bb34;" goto statement_identifier ;)) (expression_statement "CVar5 = CURLE_AGAIN;" (assignment_expression "CVar5 = CURLE_AGAIN" identifier = identifier) ;) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;) })) (expression_statement "iVar11 = (conn->proto).ftpc.pp.response.tv_usec;" (assignment_expression "iVar11 = (conn->proto).ftpc.pp.response.tv_usec" identifier = (field_expression "(conn->proto).ftpc.pp.response.tv_usec" (field_expression "(conn->proto).ftpc.pp.response" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "(conn->proto).ftpc.pp.response_time = 0;" (assignment_expression "(conn->proto).ftpc.pp.response_time = 0" (field_expression "(conn->proto).ftpc.pp.response_time" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = number_literal) ;) (goto_statement "goto LAB_0006bb18;" goto statement_identifier ;) })))
(translation_unit "uint FUN_0006b8f8(uint *param_1,uint *param_2)\n\n{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}\n\n" (function_definition "uint FUN_0006b8f8(uint *param_1,uint *param_2)\n\n{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}" type_identifier (function_declarator "FUN_0006b8f8(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_FUN_000a617c;" (assignment_expression "puVar2 = PTR_FUN_000a617c" identifier = identifier) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar8 = &local_28;" (assignment_expression "puVar8 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (if_statement "if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" if (parenthesized_expression "(param_1[0x136] == 0)" ( (binary_expression "param_1[0x136] == 0" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }" { (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" identifier = (subscript_expression "param_1[0x135]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }" { (do_statement "do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );" do (compound_statement "{\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      }" { (expression_statement "uVar4 = param_1[0x134];" (assignment_expression "uVar4 = param_1[0x134]" identifier = (subscript_expression "param_1[0x134]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" identifier = (call_expression "(*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" (parenthesized_expression "(*(code *)PTR_FUN_000a6534)" ( (pointer_expression "*(code *)PTR_FUN_000a6534" * (cast_expression "(code *)PTR_FUN_000a6534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" ( identifier , number_literal , (binary_expression "uVar4 + param_1[0x138]" identifier + (subscript_expression "param_1[0x138]" identifier [ number_literal ])) , (binary_expression "0x9000 - param_1[0x138]" number_literal - (subscript_expression "param_1[0x138]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }" if (parenthesized_expression "(((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7))" ( (binary_expression "((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)" (parenthesized_expression "((uVar5 == 0) && (local_28 != 0))" ( (binary_expression "(uVar5 == 0) && (local_28 != 0)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)" ( (comma_expression "uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7" (assignment_expression "uVar7 = param_1[0x138]" identifier = (subscript_expression "param_1[0x138]" identifier [ number_literal ])) , (comma_expression "param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7" (assignment_expression "param_1[0x138] = local_28 + uVar7" (subscript_expression "param_1[0x138]" identifier [ number_literal ]) = (binary_expression "local_28 + uVar7" identifier + identifier)) , (binary_expression "3 < local_28 + uVar7" number_literal < (binary_expression "local_28 + uVar7" identifier + identifier)))) ))) )) (compound_statement "{\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }" { (expression_statement "iVar6 = FUN_0006d1d8(uVar4 + 2);" (assignment_expression "iVar6 = FUN_0006d1d8(uVar4 + 2)" identifier = (call_expression "FUN_0006d1d8(uVar4 + 2)" identifier (argument_list "(uVar4 + 2)" ( (binary_expression "uVar4 + 2" identifier + number_literal) )))) ;) (expression_statement "puVar1 = param_1 + 0x138;" (assignment_expression "puVar1 = param_1 + 0x138" identifier = (binary_expression "param_1 + 0x138" identifier + number_literal)) ;) (expression_statement "param_1 = (uint *)(iVar6 + 4);" (assignment_expression "param_1 = (uint *)(iVar6 + 4)" identifier = (cast_expression "(uint *)(iVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) ;) (if_statement "if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }" if (parenthesized_expression "(param_1 <= (uint *)*puVar1)" ( (binary_expression "param_1 <= (uint *)*puVar1" identifier <= (cast_expression "(uint *)*puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) )) (compound_statement "{\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }" { (if_statement "if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" if (parenthesized_expression "((uint *)0x24 < param_1)" ( (binary_expression "(uint *)0x24 < param_1" (cast_expression "(uint *)0x24" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) (compound_statement "{\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" { (expression_statement "iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;" (assignment_expression "iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2" identifier = (binary_expression "(uint)*(byte *)(uVar4 + 0x24) * 2" (binary_expression "(uint)*(byte *)(uVar4 + 0x24)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(uVar4 + 0x24)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + 0x24)" ( (binary_expression "uVar4 + 0x24" identifier + number_literal) )))) * number_literal)) ;) (expression_statement "puVar8 = (uint *)(iVar6 + 0x27);" (assignment_expression "puVar8 = (uint *)(iVar6 + 0x27)" identifier = (cast_expression "(uint *)(iVar6 + 0x27)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x27)" ( (binary_expression "iVar6 + 0x27" identifier + number_literal) )))) ;) (if_statement "if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }" if (parenthesized_expression "(puVar8 <= param_1)" ( (binary_expression "puVar8 <= param_1" identifier <= identifier) )) (compound_statement "{\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }" { (expression_statement "iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);" (assignment_expression "iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25)" identifier = (call_expression "FUN_0006d1b0(uVar4 + iVar6 + 0x25)" identifier (argument_list "(uVar4 + iVar6 + 0x25)" ( (binary_expression "uVar4 + iVar6 + 0x25" (binary_expression "uVar4 + iVar6" identifier + identifier) + number_literal) )))) ;) (expression_statement "param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));" (assignment_expression "param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" identifier = (cast_expression "(uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 < (uint *)(iVar6 + (int)puVar8))" ( (binary_expression "param_1 < (uint *)(iVar6 + (int)puVar8)" identifier < (cast_expression "(uint *)(iVar6 + (int)puVar8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (int)puVar8)" ( (binary_expression "iVar6 + (int)puVar8" identifier + (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ))))) ;) (if_statement "if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }" if (parenthesized_expression "(param_1 != (uint *)0x0)" ( (binary_expression "param_1 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }" { (expression_statement "uVar5 = 0x1a;" (assignment_expression "uVar5 = 0x1a" identifier = number_literal) ;) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;) })) })) })) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) })) })) (labeled_statement "LAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" statement_identifier : (while_statement "while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" { (if_statement "if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }" if (parenthesized_expression "(local_24 == *(int *)puVar3)" ( (binary_expression "local_24 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n            return uVar5;\n          }" { (return_statement "return uVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006bb34:\n          uVar4 = param_1[0x135];" statement_identifier : (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" identifier = (subscript_expression "param_1[0x135]" identifier [ number_literal ])) ;)) (labeled_statement "LAB_0006bb18:\n          if (uVar4 == 0) break;" statement_identifier : (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) (expression_statement "uVar5 = 0x51;" (assignment_expression "uVar5 = 0x51" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "local_28 = uVar4;" (assignment_expression "local_28 = uVar4" identifier = identifier) ;) (if_statement "if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }" if (parenthesized_expression "(*(uint *)(uVar7 + 0x914) <= uVar4)" ( (binary_expression "*(uint *)(uVar7 + 0x914) <= uVar4" (pointer_expression "*(uint *)(uVar7 + 0x914)" * (cast_expression "(uint *)(uVar7 + 0x914)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x914)" ( (binary_expression "uVar7 + 0x914" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }" { (expression_statement "local_28 = *(uint *)(uVar7 + 0x914);" (assignment_expression "local_28 = *(uint *)(uVar7 + 0x914)" identifier = (pointer_expression "*(uint *)(uVar7 + 0x914)" * (cast_expression "(uint *)(uVar7 + 0x914)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x914)" ( (binary_expression "uVar7 + 0x914" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);" (assignment_expression "*(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98)" (pointer_expression "*(undefined4 *)(uVar7 + 0x14c)" * (cast_expression "(undefined4 *)(uVar7 + 0x14c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0x14c)" ( (binary_expression "uVar7 + 0x14c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(uVar7 + 0xc98)" * (cast_expression "(undefined4 *)(uVar7 + 0xc98)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar7 + 0xc98)" ( (binary_expression "uVar7 + 0xc98" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);" (assignment_expression "uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8)" identifier = (call_expression "(*(code *)puVar2)(param_1,local_28,puVar8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,local_28,puVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;" if (parenthesized_expression "((uVar5 != 0) && (uVar5 != 0x51))" ( (binary_expression "(uVar5 != 0) && (uVar5 != 0x51)" (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar5 != 0x51)" ( (binary_expression "uVar5 != 0x51" identifier != number_literal) ))) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = local_28;" (assignment_expression "uVar5 = local_28" identifier = identifier) ;) (if_statement "if (local_28 == 0) goto LAB_0006ba0c;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (expression_statement "param_1[0x136] = local_28;" (assignment_expression "param_1[0x136] = local_28" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x137] = 0;" (assignment_expression "param_1[0x137] = 0" (subscript_expression "param_1[0x137]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x135] = param_1[0x135] - local_28;" (assignment_expression "param_1[0x135] = param_1[0x135] - local_28" (subscript_expression "param_1[0x135]" identifier [ number_literal ]) = (binary_expression "param_1[0x135] - local_28" (subscript_expression "param_1[0x135]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "uVar4 = local_28;" (assignment_expression "uVar4 = local_28" identifier = identifier) ;) }) (else_clause "else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" else (compound_statement "{\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" { (expression_statement "uVar7 = param_1[0x137];" (assignment_expression "uVar7 = param_1[0x137]" identifier = (subscript_expression "param_1[0x137]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_1[0x136] - uVar7;" (assignment_expression "uVar4 = param_1[0x136] - uVar7" identifier = (binary_expression "param_1[0x136] - uVar7" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) - identifier)) ;) }))) (expression_statement "uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" identifier = (call_expression "(*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" (parenthesized_expression "(*(code *)PTR_FUN_000a62e8)" ( (pointer_expression "*(code *)PTR_FUN_000a62e8" * (cast_expression "(code *)PTR_FUN_000a62e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" ( identifier , number_literal , (binary_expression "*(int *)(*param_1 + 0xc98) + uVar7" (pointer_expression "*(int *)(*param_1 + 0xc98)" * (cast_expression "(int *)(*param_1 + 0xc98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc98)" ( (binary_expression "*param_1 + 0xc98" (pointer_expression "*param_1" * identifier) + number_literal) )))) + identifier) , identifier , identifier )))) ;) (if_statement "if (uVar5 != 0) goto LAB_0006ba0c;" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;)) (if_statement "if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }" if (parenthesized_expression "(uVar4 != local_28)" ( (binary_expression "uVar4 != local_28" identifier != identifier) )) (compound_statement "{\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }" { (expression_statement "param_1[0x137] = param_1[0x137] + local_28;" (assignment_expression "param_1[0x137] = param_1[0x137] + local_28" (subscript_expression "param_1[0x137]" identifier [ number_literal ]) = (binary_expression "param_1[0x137] + local_28" (subscript_expression "param_1[0x137]" identifier [ number_literal ]) + identifier)) ;) (if_statement "if (param_1[0x136] == 0) goto LAB_0006bb34;" if (parenthesized_expression "(param_1[0x136] == 0)" ( (binary_expression "param_1[0x136] == 0" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_0006bb34;" goto statement_identifier ;)) (expression_statement "uVar5 = 0x51;" (assignment_expression "uVar5 = 0x51" identifier = number_literal) ;) (goto_statement "goto LAB_0006ba0c;" goto statement_identifier ;) })) (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" identifier = (subscript_expression "param_1[0x135]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x136] = 0;" (assignment_expression "param_1[0x136] = 0" (subscript_expression "param_1[0x136]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0006bb18;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) , (binary_expression LIT - (subscript_expression IDENT [ LIT ])) , 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 ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) , (binary_expression LIT < (binary_expression IDENT + IDENT)))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) })) (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (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 = (subscript_expression IDENT [ LIT ])) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;))) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "uint FUN_0006b8f8(uint *param_1,uint *param_2)\n\n{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}" (type_identifier "uint") (function_declarator "FUN_0006b8f8(uint *param_1,uint *param_2)" (identifier "FUN_0006b8f8") (parameter_list "(uint *param_1,uint *param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_28;\n  int local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar2 = PTR_FUN_000a617c;\n  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;\n  puVar8 = &local_28;\n  if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }\n  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);\n  if (uVar5 != 0) goto LAB_0006ba0c;\n  if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }\n  uVar4 = param_1[0x135];\n  param_1[0x136] = 0;\n  goto LAB_0006bb18;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_000a6fe0")) (; ";")) (expression_statement "puVar2 = PTR_FUN_000a617c;" (assignment_expression "puVar2 = PTR_FUN_000a617c" (identifier "puVar2") (= "=") (identifier "PTR_FUN_000a617c")) (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000a6fe0" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000a6fe0")))) (; ";")) (expression_statement "puVar8 = &local_28;" (assignment_expression "puVar8 = &local_28" (identifier "puVar8") (= "=") (pointer_expression "&local_28" (& "&") (identifier "local_28"))) (; ";")) (if_statement "if (param_1[0x136] == 0) {\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }\n  else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" (if "if") (parenthesized_expression "(param_1[0x136] == 0)" (( "(") (binary_expression "param_1[0x136] == 0" (subscript_expression "param_1[0x136]" (identifier "param_1") ([ "[") (number_literal "0x136") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = param_1[0x135];\n    if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }\n    uVar7 = *param_1;\n    local_28 = uVar4;\n    if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }\n    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);\n    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);\n    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;\n    uVar7 = 0;\n    uVar5 = local_28;\n    if (local_28 == 0) goto LAB_0006ba0c;\n    param_1[0x136] = local_28;\n    param_1[0x137] = 0;\n    param_1[0x135] = param_1[0x135] - local_28;\n    uVar4 = local_28;\n  }" ({ "{") (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" (identifier "uVar4") (= "=") (subscript_expression "param_1[0x135]" (identifier "param_1") ([ "[") (number_literal "0x135") (] "]"))) (; ";")) (if_statement "if (uVar4 == 0) {\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );\n    }" ({ "{") (do_statement "do {\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      } while( true );" (do "do") (compound_statement "{\n        uVar4 = param_1[0x134];\n        uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);\n        if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }\nLAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }\n      }" ({ "{") (expression_statement "uVar4 = param_1[0x134];" (assignment_expression "uVar4 = param_1[0x134]" (identifier "uVar4") (= "=") (subscript_expression "param_1[0x134]" (identifier "param_1") ([ "[") (number_literal "0x134") (] "]"))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_FUN_000a6534)\n                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" (parenthesized_expression "(*(code *)PTR_FUN_000a6534)" (( "(") (pointer_expression "*(code *)PTR_FUN_000a6534" (* "*") (cast_expression "(code *)PTR_FUN_000a6534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000a6534"))) () ")")) (argument_list "(param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (binary_expression "uVar4 + param_1[0x138]" (identifier "uVar4") (+ "+") (subscript_expression "param_1[0x138]" (identifier "param_1") ([ "[") (number_literal "0x138") (] "]"))) (, ",") (binary_expression "0x9000 - param_1[0x138]" (number_literal "0x9000") (- "-") (subscript_expression "param_1[0x138]" (identifier "param_1") ([ "[") (number_literal "0x138") (] "]"))) (, ",") (identifier "puVar8") () ")")))) (; ";")) (if_statement "if (((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }" (if "if") (parenthesized_expression "(((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7))" (( "(") (binary_expression "((uVar5 == 0) && (local_28 != 0)) &&\n           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)" (parenthesized_expression "((uVar5 == 0) && (local_28 != 0))" (( "(") (binary_expression "(uVar5 == 0) && (local_28 != 0)" (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)" (( "(") (comma_expression "uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7" (assignment_expression "uVar7 = param_1[0x138]" (identifier "uVar7") (= "=") (subscript_expression "param_1[0x138]" (identifier "param_1") ([ "[") (number_literal "0x138") (] "]"))) (, ",") (comma_expression "param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7" (assignment_expression "param_1[0x138] = local_28 + uVar7" (subscript_expression "param_1[0x138]" (identifier "param_1") ([ "[") (number_literal "0x138") (] "]")) (= "=") (binary_expression "local_28 + uVar7" (identifier "local_28") (+ "+") (identifier "uVar7"))) (, ",") (binary_expression "3 < local_28 + uVar7" (number_literal "3") (< "<") (binary_expression "local_28 + uVar7" (identifier "local_28") (+ "+") (identifier "uVar7"))))) () ")"))) () ")")) (compound_statement "{\n          iVar6 = FUN_0006d1d8(uVar4 + 2);\n          puVar1 = param_1 + 0x138;\n          param_1 = (uint *)(iVar6 + 4);\n          if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }\n        }" ({ "{") (expression_statement "iVar6 = FUN_0006d1d8(uVar4 + 2);" (assignment_expression "iVar6 = FUN_0006d1d8(uVar4 + 2)" (identifier "iVar6") (= "=") (call_expression "FUN_0006d1d8(uVar4 + 2)" (identifier "FUN_0006d1d8") (argument_list "(uVar4 + 2)" (( "(") (binary_expression "uVar4 + 2" (identifier "uVar4") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "puVar1 = param_1 + 0x138;" (assignment_expression "puVar1 = param_1 + 0x138" (identifier "puVar1") (= "=") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138"))) (; ";")) (expression_statement "param_1 = (uint *)(iVar6 + 4);" (assignment_expression "param_1 = (uint *)(iVar6 + 4)" (identifier "param_1") (= "=") (cast_expression "(uint *)(iVar6 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 4)" (( "(") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (param_1 <= (uint *)*puVar1) {\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }" (if "if") (parenthesized_expression "(param_1 <= (uint *)*puVar1)" (( "(") (binary_expression "param_1 <= (uint *)*puVar1" (identifier "param_1") (<= "<=") (cast_expression "(uint *)*puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) () ")")) (compound_statement "{\n            if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }\n            *param_2 = uVar4;\n          }" ({ "{") (if_statement "if ((uint *)0x24 < param_1) {\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" (if "if") (parenthesized_expression "((uint *)0x24 < param_1)" (( "(") (binary_expression "(uint *)0x24 < param_1" (cast_expression "(uint *)0x24" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x24")) (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;\n              puVar8 = (uint *)(iVar6 + 0x27);\n              if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }\n            }" ({ "{") (expression_statement "iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;" (assignment_expression "iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2" (identifier "iVar6") (= "=") (binary_expression "(uint)*(byte *)(uVar4 + 0x24) * 2" (binary_expression "(uint)*(byte *)(uVar4 + 0x24)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(uVar4 + 0x24)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 + 0x24)" (( "(") (binary_expression "uVar4 + 0x24" (identifier "uVar4") (+ "+") (number_literal "0x24")) () ")")))) (* "*") (number_literal "2"))) (; ";")) (expression_statement "puVar8 = (uint *)(iVar6 + 0x27);" (assignment_expression "puVar8 = (uint *)(iVar6 + 0x27)" (identifier "puVar8") (= "=") (cast_expression "(uint *)(iVar6 + 0x27)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x27)" (( "(") (binary_expression "iVar6 + 0x27" (identifier "iVar6") (+ "+") (number_literal "0x27")) () ")")))) (; ";")) (if_statement "if (puVar8 <= param_1) {\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }" (if "if") (parenthesized_expression "(puVar8 <= param_1)" (( "(") (binary_expression "puVar8 <= param_1" (identifier "puVar8") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);\n                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));\n                if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }\n              }" ({ "{") (expression_statement "iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);" (assignment_expression "iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25)" (identifier "iVar6") (= "=") (call_expression "FUN_0006d1b0(uVar4 + iVar6 + 0x25)" (identifier "FUN_0006d1b0") (argument_list "(uVar4 + iVar6 + 0x25)" (( "(") (binary_expression "uVar4 + iVar6 + 0x25" (binary_expression "uVar4 + iVar6" (identifier "uVar4") (+ "+") (identifier "iVar6")) (+ "+") (number_literal "0x25")) () ")")))) (; ";")) (expression_statement "param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));" (assignment_expression "param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" (identifier "param_1") (= "=") (cast_expression "(uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)(param_1 < (uint *)(iVar6 + (int)puVar8))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 < (uint *)(iVar6 + (int)puVar8))" (( "(") (binary_expression "param_1 < (uint *)(iVar6 + (int)puVar8)" (identifier "param_1") (< "<") (cast_expression "(uint *)(iVar6 + (int)puVar8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + (int)puVar8)" (( "(") (binary_expression "iVar6 + (int)puVar8" (identifier "iVar6") (+ "+") (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8"))) () ")")))) () ")"))))) (; ";")) (if_statement "if (param_1 != (uint *)0x0) {\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }" (if "if") (parenthesized_expression "(param_1 != (uint *)0x0)" (( "(") (binary_expression "param_1 != (uint *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                  uVar5 = 0x1a;\n                  goto LAB_0006ba0c;\n                }" ({ "{") (expression_statement "uVar5 = 0x1a;" (assignment_expression "uVar5 = 0x1a" (identifier "uVar5") (= "=") (number_literal "0x1a")) (; ";")) (goto_statement "goto LAB_0006ba0c;" (goto "goto") (statement_identifier "LAB_0006ba0c") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0006ba0c:\n        while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" (statement_identifier "LAB_0006ba0c") (: ":") (while_statement "while( true ) {\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }\n          (*(code *)PTR___stack_chk_fail_000a6c54)();\nLAB_0006bb34:\n          uVar4 = param_1[0x135];\nLAB_0006bb18:\n          if (uVar4 == 0) break;\n          uVar5 = 0x51;\n        }" ({ "{") (if_statement "if (local_24 == *(int *)puVar3) {\n            return uVar5;\n          }" (if "if") (parenthesized_expression "(local_24 == *(int *)puVar3)" (( "(") (binary_expression "local_24 == *(int *)puVar3" (identifier "local_24") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n            return uVar5;\n          }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000a6c54"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0006bb34:\n          uVar4 = param_1[0x135];" (statement_identifier "LAB_0006bb34") (: ":") (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" (identifier "uVar4") (= "=") (subscript_expression "param_1[0x135]" (identifier "param_1") ([ "[") (number_literal "0x135") (] "]"))) (; ";"))) (labeled_statement "LAB_0006bb18:\n          if (uVar4 == 0) break;" (statement_identifier "LAB_0006bb18") (: ":") (if_statement "if (uVar4 == 0) break;" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";")))) (expression_statement "uVar5 = 0x51;" (assignment_expression "uVar5 = 0x51" (identifier "uVar5") (= "=") (number_literal "0x51")) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" (identifier "uVar7") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "local_28 = uVar4;" (assignment_expression "local_28 = uVar4" (identifier "local_28") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (*(uint *)(uVar7 + 0x914) <= uVar4) {\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }" (if "if") (parenthesized_expression "(*(uint *)(uVar7 + 0x914) <= uVar4)" (( "(") (binary_expression "*(uint *)(uVar7 + 0x914) <= uVar4" (pointer_expression "*(uint *)(uVar7 + 0x914)" (* "*") (cast_expression "(uint *)(uVar7 + 0x914)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x914)" (( "(") (binary_expression "uVar7 + 0x914" (identifier "uVar7") (+ "+") (number_literal "0x914")) () ")")))) (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n      local_28 = *(uint *)(uVar7 + 0x914);\n    }" ({ "{") (expression_statement "local_28 = *(uint *)(uVar7 + 0x914);" (assignment_expression "local_28 = *(uint *)(uVar7 + 0x914)" (identifier "local_28") (= "=") (pointer_expression "*(uint *)(uVar7 + 0x914)" (* "*") (cast_expression "(uint *)(uVar7 + 0x914)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x914)" (( "(") (binary_expression "uVar7 + 0x914" (identifier "uVar7") (+ "+") (number_literal "0x914")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);" (assignment_expression "*(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98)" (pointer_expression "*(undefined4 *)(uVar7 + 0x14c)" (* "*") (cast_expression "(undefined4 *)(uVar7 + 0x14c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0x14c)" (( "(") (binary_expression "uVar7 + 0x14c" (identifier "uVar7") (+ "+") (number_literal "0x14c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(uVar7 + 0xc98)" (* "*") (cast_expression "(undefined4 *)(uVar7 + 0xc98)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar7 + 0xc98)" (( "(") (binary_expression "uVar7 + 0xc98" (identifier "uVar7") (+ "+") (number_literal "0xc98")) () ")"))))) (; ";")) (expression_statement "uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);" (assignment_expression "uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8)" (identifier "uVar5") (= "=") (call_expression "(*(code *)puVar2)(param_1,local_28,puVar8)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_1,local_28,puVar8)" (( "(") (identifier "param_1") (, ",") (identifier "local_28") (, ",") (identifier "puVar8") () ")")))) (; ";")) (if_statement "if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;" (if "if") (parenthesized_expression "((uVar5 != 0) && (uVar5 != 0x51))" (( "(") (binary_expression "(uVar5 != 0) && (uVar5 != 0x51)" (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar5 != 0x51)" (( "(") (binary_expression "uVar5 != 0x51" (identifier "uVar5") (!= "!=") (number_literal "0x51")) () ")"))) () ")")) (goto_statement "goto LAB_0006ba0c;" (goto "goto") (statement_identifier "LAB_0006ba0c") (; ";"))) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = local_28;" (assignment_expression "uVar5 = local_28" (identifier "uVar5") (= "=") (identifier "local_28")) (; ";")) (if_statement "if (local_28 == 0) goto LAB_0006ba0c;" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006ba0c;" (goto "goto") (statement_identifier "LAB_0006ba0c") (; ";"))) (expression_statement "param_1[0x136] = local_28;" (assignment_expression "param_1[0x136] = local_28" (subscript_expression "param_1[0x136]" (identifier "param_1") ([ "[") (number_literal "0x136") (] "]")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "param_1[0x137] = 0;" (assignment_expression "param_1[0x137] = 0" (subscript_expression "param_1[0x137]" (identifier "param_1") ([ "[") (number_literal "0x137") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x135] = param_1[0x135] - local_28;" (assignment_expression "param_1[0x135] = param_1[0x135] - local_28" (subscript_expression "param_1[0x135]" (identifier "param_1") ([ "[") (number_literal "0x135") (] "]")) (= "=") (binary_expression "param_1[0x135] - local_28" (subscript_expression "param_1[0x135]" (identifier "param_1") ([ "[") (number_literal "0x135") (] "]")) (- "-") (identifier "local_28"))) (; ";")) (expression_statement "uVar4 = local_28;" (assignment_expression "uVar4 = local_28" (identifier "uVar4") (= "=") (identifier "local_28")) (; ";")) (} "}")) (else_clause "else {\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" (else "else") (compound_statement "{\n    uVar7 = param_1[0x137];\n    uVar4 = param_1[0x136] - uVar7;\n  }" ({ "{") (expression_statement "uVar7 = param_1[0x137];" (assignment_expression "uVar7 = param_1[0x137]" (identifier "uVar7") (= "=") (subscript_expression "param_1[0x137]" (identifier "param_1") ([ "[") (number_literal "0x137") (] "]"))) (; ";")) (expression_statement "uVar4 = param_1[0x136] - uVar7;" (assignment_expression "uVar4 = param_1[0x136] - uVar7" (identifier "uVar4") (= "=") (binary_expression "param_1[0x136] - uVar7" (subscript_expression "param_1[0x136]" (identifier "param_1") ([ "[") (number_literal "0x136") (] "]")) (- "-") (identifier "uVar7"))) (; ";")) (} "}")))) (expression_statement "uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" (parenthesized_expression "(*(code *)PTR_FUN_000a62e8)" (( "(") (pointer_expression "*(code *)PTR_FUN_000a62e8" (* "*") (cast_expression "(code *)PTR_FUN_000a62e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000a62e8"))) () ")")) (argument_list "(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (binary_expression "*(int *)(*param_1 + 0xc98) + uVar7" (pointer_expression "*(int *)(*param_1 + 0xc98)" (* "*") (cast_expression "(int *)(*param_1 + 0xc98)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc98)" (( "(") (binary_expression "*param_1 + 0xc98" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc98")) () ")")))) (+ "+") (identifier "uVar7")) (, ",") (identifier "uVar4") (, ",") (identifier "puVar8") () ")")))) (; ";")) (if_statement "if (uVar5 != 0) goto LAB_0006ba0c;" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006ba0c;" (goto "goto") (statement_identifier "LAB_0006ba0c") (; ";"))) (if_statement "if (uVar4 != local_28) {\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }" (if "if") (parenthesized_expression "(uVar4 != local_28)" (( "(") (binary_expression "uVar4 != local_28" (identifier "uVar4") (!= "!=") (identifier "local_28")) () ")")) (compound_statement "{\n    param_1[0x137] = param_1[0x137] + local_28;\n    if (param_1[0x136] == 0) goto LAB_0006bb34;\n    uVar5 = 0x51;\n    goto LAB_0006ba0c;\n  }" ({ "{") (expression_statement "param_1[0x137] = param_1[0x137] + local_28;" (assignment_expression "param_1[0x137] = param_1[0x137] + local_28" (subscript_expression "param_1[0x137]" (identifier "param_1") ([ "[") (number_literal "0x137") (] "]")) (= "=") (binary_expression "param_1[0x137] + local_28" (subscript_expression "param_1[0x137]" (identifier "param_1") ([ "[") (number_literal "0x137") (] "]")) (+ "+") (identifier "local_28"))) (; ";")) (if_statement "if (param_1[0x136] == 0) goto LAB_0006bb34;" (if "if") (parenthesized_expression "(param_1[0x136] == 0)" (( "(") (binary_expression "param_1[0x136] == 0" (subscript_expression "param_1[0x136]" (identifier "param_1") ([ "[") (number_literal "0x136") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006bb34;" (goto "goto") (statement_identifier "LAB_0006bb34") (; ";"))) (expression_statement "uVar5 = 0x51;" (assignment_expression "uVar5 = 0x51" (identifier "uVar5") (= "=") (number_literal "0x51")) (; ";")) (goto_statement "goto LAB_0006ba0c;" (goto "goto") (statement_identifier "LAB_0006ba0c") (; ";")) (} "}"))) (expression_statement "uVar4 = param_1[0x135];" (assignment_expression "uVar4 = param_1[0x135]" (identifier "uVar4") (= "=") (subscript_expression "param_1[0x135]" (identifier "param_1") ([ "[") (number_literal "0x135") (] "]"))) (; ";")) (expression_statement "param_1[0x136] = 0;" (assignment_expression "param_1[0x136] = 0" (subscript_expression "param_1[0x136]" (identifier "param_1") ([ "[") (number_literal "0x136") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0006bb18;" (goto "goto") (statement_identifier "LAB_0006bb18") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *var_10,void **msg)

{
  type_3 *paVar1;
  type_4 *puVar2;
  type_4 *puVar3;
  type_5 extraout_var;
  type_5 extraout_var_00;
  type_6 var_2;
  type_1 var_4;
  type_7 *var_7;
  type_8 uVar8;
  size_t var_16;
  type_9 *pCVar9;
  size_t var_3;
  int var_1;
  type_6 var_14;
  type_10 *pcVar13;
  type_2 *var_11;
  size_t var_6;
  void *var_13;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar2 = PTR_Curl_fillreadbuffer_000a617c;
  var_1 = (var_10->proto).ftpc.pp.response_time;
  var_13 = *(void **)PTR___stack_chk_guard_000a6fe0;
  var_11 = (type_2 *)&var_6;
  if (var_1 == 0) {
    var_2 = (var_10->proto).smbc.upload_size;
    if (var_2 == 0) {
      do {
        var_3 = (var_10->proto).smbc.got;
        pcVar13 = (var_10->proto).sshc.quote_item;
        var_4 = (*(type_11 *)PTR_Curl_read_000a6534)
                          (var_10,0,(int)&pcVar13->data + var_3,0x9000 - var_3,var_11);
        if (((var_4 == var_5) && (var_6 != 0)) &&
           (var_7 = (var_10->proto).ftpc.pp.statemach_act + var_6,
           (var_10->proto).ftpc.pp.statemach_act = var_7,
           (type_7 *)0x3 < var_7)) {
          uVar8 = var_8((type_12 *)((int)&pcVar13->data + 2));
          paVar1 = &var_10->proto;
          var_10 = (type_2 *)(var_9(extraout_var,uVar8) + 4);
          if (var_10 <= (type_2 *)(paVar1->ftpc).pp.statemach_act) {
            if ((type_2 *)0x24 < var_10) {
              var_1 = (type_6)*(type_13 *)&pcVar13[4].next * 2;
              var_11 = (type_2 *)(var_1 + 0x27);
              if (var_11 <= var_10) {
                uVar8 = var_12((type_12 *)((int)&pcVar13[4].next + var_1 + 1));
                var_10 = (type_2 *)
                       (type_6)(var_10 < (type_2 *)
                                     ((var_11->chunk).hexbuffer +
                                     var_9(extraout_var_00,uVar8) + -0x10));
                if (var_10 != (type_2 *)0x0) {
                  var_4 = CURLE_READ_ERROR;
                  goto LAB_0006ba0c;
                }
              }
            }
            *msg = pcVar13;
          }
        }
LAB_0006ba0c:
        while( true ) {
          if (var_13 == *(void **)puVar3) {
            return var_4;
          }
          (*(type_11 *)PTR___stack_chk_fail_000a6c54)();
LAB_0006bb34:
          var_1 = (var_10->proto).ftpc.pp.response.tv_usec;
LAB_0006bb18:
          if (var_1 == 0) break;
          var_4 = var_15;
        }
      } while( true );
    }
    pCVar9 = var_10->data;
    var_14 = (pCVar9->set).upload_buffer_size;
    var_6 = var_2;
    if (var_14 <= var_2) {
      var_6 = var_14;
    }
    (pCVar9->req).upload_fromhere = (pCVar9->state).ulbuf;
    var_4 = (*(type_11 *)puVar2)(var_10,var_6,var_11);
    if ((var_4 != var_5) && (var_4 != var_15)) goto LAB_0006ba0c;
    var_16 = 0;
    var_4 = var_6;
    if (var_6 == 0) goto LAB_0006ba0c;
    var_1 = (var_10->proto).ftpc.pp.response.tv_usec;
    (var_10->proto).smbc.send_size = var_6;
    (var_10->proto).ftpc.pp.var_10 = (type_2 *)0x0;
    (var_10->proto).ftpc.pp.response.tv_usec = var_1 - var_6;
    var_3 = var_6;
  }
  else {
    var_16 = (var_10->proto).smbc.sent;
    var_3 = var_1 - var_16;
  }
  var_4 = (*(type_11 *)PTR_Curl_write_000a62e8)
                    (var_10,0,(var_10->data->state).ulbuf + var_16,var_3,var_11);
  if (var_4 != var_5) goto LAB_0006ba0c;
  if (var_3 != var_6) {
    var_1 = (var_10->proto).ftpc.pp.response_time;
    (var_10->proto).ftpc.pp.var_10 =
         (type_2 *)((((var_10->proto).ftpc.pp.var_10)->chunk).hexbuffer + (var_6 - 0x10));
    if (var_1 == 0) goto LAB_0006bb34;
    var_4 = var_15;
    goto LAB_0006ba0c;
  }
  var_1 = (var_10->proto).ftpc.pp.response.tv_usec;
  (var_10->proto).ftpc.pp.response_time = 0;
  goto LAB_0006bb18;
}


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

uint MASKED(uint *param_1,uint *param_2)

{
  uint *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  uint *puVar8;
  uint local_28;
  int local_24;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar2 = PTR_FUN_000a617c;
  local_24 = *(int *)PTR___stack_chk_guard_000a6fe0;
  puVar8 = &local_28;
  if (param_1[0x136] == 0) {
    uVar4 = param_1[0x135];
    if (uVar4 == 0) {
      do {
        uVar4 = param_1[0x134];
        uVar5 = (*(code *)PTR_FUN_000a6534)
                          (param_1,0,uVar4 + param_1[0x138],0x9000 - param_1[0x138],puVar8);
        if (((uVar5 == 0) && (local_28 != 0)) &&
           (uVar7 = param_1[0x138], param_1[0x138] = local_28 + uVar7, 3 < local_28 + uVar7)) {
          iVar6 = FUN_0006d1d8(uVar4 + 2);
          puVar1 = param_1 + 0x138;
          param_1 = (uint *)(iVar6 + 4);
          if (param_1 <= (uint *)*puVar1) {
            if ((uint *)0x24 < param_1) {
              iVar6 = (uint)*(byte *)(uVar4 + 0x24) * 2;
              puVar8 = (uint *)(iVar6 + 0x27);
              if (puVar8 <= param_1) {
                iVar6 = FUN_0006d1b0(uVar4 + iVar6 + 0x25);
                param_1 = (uint *)(uint)(param_1 < (uint *)(iVar6 + (int)puVar8));
                if (param_1 != (uint *)0x0) {
                  uVar5 = 0x1a;
                  goto LAB_0006ba0c;
                }
              }
            }
            *param_2 = uVar4;
          }
        }
LAB_0006ba0c:
        while( true ) {
          if (local_24 == *(int *)puVar3) {
            return uVar5;
          }
          (*(code *)PTR___stack_chk_fail_000a6c54)();
LAB_0006bb34:
          uVar4 = param_1[0x135];
LAB_0006bb18:
          if (uVar4 == 0) break;
          uVar5 = 0x51;
        }
      } while( true );
    }
    uVar7 = *param_1;
    local_28 = uVar4;
    if (*(uint *)(uVar7 + 0x914) <= uVar4) {
      local_28 = *(uint *)(uVar7 + 0x914);
    }
    *(undefined4 *)(uVar7 + 0x14c) = *(undefined4 *)(uVar7 + 0xc98);
    uVar5 = (*(code *)puVar2)(param_1,local_28,puVar8);
    if ((uVar5 != 0) && (uVar5 != 0x51)) goto LAB_0006ba0c;
    uVar7 = 0;
    uVar5 = local_28;
    if (local_28 == 0) goto LAB_0006ba0c;
    param_1[0x136] = local_28;
    param_1[0x137] = 0;
    param_1[0x135] = param_1[0x135] - local_28;
    uVar4 = local_28;
  }
  else {
    uVar7 = param_1[0x137];
    uVar4 = param_1[0x136] - uVar7;
  }
  uVar5 = (*(code *)PTR_FUN_000a62e8)(param_1,0,*(int *)(*param_1 + 0xc98) + uVar7,uVar4,puVar8);
  if (uVar5 != 0) goto LAB_0006ba0c;
  if (uVar4 != local_28) {
    param_1[0x137] = param_1[0x137] + local_28;
    if (param_1[0x136] == 0) goto LAB_0006bb34;
    uVar5 = 0x51;
    goto LAB_0006ba0c;
  }
  uVar4 = param_1[0x135];
  param_1[0x136] = 0;
  goto LAB_0006bb18;
}

