
void do_encode(FILE *in,FILE *out,uintmax_t wrap_column)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  char *pcVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  int iVar9;
  uint uVar10;
  undefined *puVar11;
  uint in_a2;
  uint in_a3;
  undefined4 uVar12;
  int iVar13;
  uint inlen;
  char inbuf [30720];
  char outbuf [49152];
  
  puVar11 = PTR___stack_chk_guard_0002b2d0;
  iVar13 = 0;
  iVar9 = *(int *)PTR___stack_chk_guard_0002b2d0;
  do {
    inlen = 0;
    do {
      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);
      uVar10 = in->_flags;
      inlen = inlen + iVar2;
      if ((uVar10 & 0x30) != 0) {
        if (inlen == 0) goto LAB_00012230;
        break;
      }
    } while (inlen < 0x7800);
    uVar10 = ((inlen + 4) / 5) * 8;
    base32_encode(inbuf,inlen,outbuf,uVar10);
    puVar1 = PTR_stdout_0002b258;
    if (in_a2 == 0 && in_a3 == 0) {
      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)
                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);
      if (uVar3 < uVar10) goto LAB_00012454;
    }
    else {
      uVar3 = 0;
      if (uVar10 != 0) {
        do {
          uVar4 = 0xffffffff;
          if (in_a2 == in_a3 < in_a3 - iVar13) {
            uVar4 = in_a3 - iVar13;
          }
          if (uVar10 - uVar3 <= uVar4) {
            uVar4 = uVar10 - uVar3;
          }
          if (uVar4 == 0) {
            pcVar6 = out->_IO_write_ptr;
            if (pcVar6 < out->_IO_write_end) {
              iVar13 = 0;
              out->_IO_write_ptr = pcVar6 + 1;
              *pcVar6 = '\n';
            }
            else {
              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);
              if (iVar13 == -1) goto LAB_00012454;
              iVar13 = 0;
            }
          }
          else {
            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)
                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);
            if (uVar5 < uVar4) goto LAB_00012454;
            iVar13 = iVar13 + uVar4;
            uVar3 = uVar3 + uVar4;
          }
        } while (uVar3 < uVar10);
      }
    }
    uVar10 = in->_flags;
  } while (((uVar10 & 0x30) == 0) && (inlen == 0x7800));
LAB_00012230:
  if ((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)) {
    pcVar6 = out->_IO_write_ptr;
    if (pcVar6 < out->_IO_write_end) {
      out->_IO_write_ptr = pcVar6 + 1;
      *pcVar6 = '\n';
    }
    else {
      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);
      if (iVar13 == -1) {
LAB_00012454:
        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();
        uVar12 = *puVar8;
        puVar11 = PTR_DAT_0002b108 + -0x70f0;
        goto LAB_0001247c;
      }
    }
    uVar10 = in->_flags;
  }
  if ((uVar10 & 0x20) != 0) goto LAB_000124a8;
  if (iVar9 != *(int *)puVar11) {
    do {
      (*(code *)PTR___stack_chk_fail_0002b2b8)();
LAB_000124a8:
      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();
      uVar12 = *puVar8;
      puVar11 = PTR_DAT_0002b108 + -0x70fc;
LAB_0001247c:
      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);
      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);
    } while( true );
  }
  return;
}



void FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  undefined1 *puVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  uint uVar9;
  undefined *puVar10;
  undefined4 uVar11;
  int iVar12;
  uint uVar13;
  undefined1 auStack_1382c [30720];
  undefined1 auStack_c02c [49152];
  int local_2c;
  
  puVar10 = PTR___stack_chk_guard_0002b2d0;
  iVar12 = 0;
  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;
  do {
    uVar13 = 0;
    do {
      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)
                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);
      uVar9 = *param_1;
      uVar13 = uVar13 + iVar2;
      if ((uVar9 & 0x30) != 0) {
        if (uVar13 == 0) goto LAB_00012230;
        break;
      }
    } while (uVar13 < 0x7800);
    uVar9 = ((uVar13 + 4) / 5) * 8;
    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);
    puVar1 = PTR_stdout_0002b258;
    if (param_3 == 0 && param_4 == 0) {
      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)
                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);
      if (uVar3 < uVar9) goto LAB_00012454;
    }
    else {
      uVar3 = 0;
      if (uVar9 != 0) {
        do {
          uVar4 = 0xffffffff;
          if (param_3 == param_4 < param_4 - iVar12) {
            uVar4 = param_4 - iVar12;
          }
          if (uVar9 - uVar3 <= uVar4) {
            uVar4 = uVar9 - uVar3;
          }
          if (uVar4 == 0) {
            puVar6 = *(undefined1 **)(param_2 + 0x14);
            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {
              iVar12 = 0;
              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;
              *puVar6 = 10;
            }
            else {
              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);
              if (iVar12 == -1) goto LAB_00012454;
              iVar12 = 0;
            }
          }
          else {
            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)
                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);
            if (uVar5 < uVar4) goto LAB_00012454;
            iVar12 = iVar12 + uVar4;
            uVar3 = uVar3 + uVar4;
          }
        } while (uVar3 < uVar9);
      }
    }
    uVar9 = *param_1;
  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));
LAB_00012230:
  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {
    puVar6 = *(undefined1 **)(param_2 + 0x14);
    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {
      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;
      *puVar6 = 10;
    }
    else {
      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);
      if (iVar12 == -1) {
LAB_00012454:
        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();
        uVar11 = *puVar8;
        puVar10 = PTR_DAT_0002b108 + -0x70f0;
        goto LAB_0001247c;
      }
    }
    uVar9 = *param_1;
  }
  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;
  if (local_2c != *(int *)puVar10) {
    do {
      (*(code *)PTR___stack_chk_fail_0002b2b8)();
LAB_000124a8:
      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();
      uVar11 = *puVar8;
      puVar10 = PTR_DAT_0002b108 + -0x70fc;
LAB_0001247c:
      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);
      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);
    } while( true );
  }
  return;
}


lui gp,0x2
addiu gp,gp,0xf98
addu gp,gp,t9
addiu sp,sp,-0x7ff0
ori v1,zero,0xb870
lui v0,0xfffe
sw s8,0x7fe8(sp)
sw s4,0x7fd8(sp)
ori v0,v0,0xc7fc
sw s3,0x7fd4(sp)
or s3,a3,zero
sw s2,0x7fd0(sp)
lui a3,0x1
sw s1,0x7fcc(sp)
addiu t3,v0,0x7800
sw s0,0x7fc8(sp)
ori t0,a3,0x3820
sw ra,0x7fec(sp)
or s1,zero,zero
sw s7,0x7fe4(sp)
or s0,a0,zero
sw s6,0x7fe0(sp)
or s4,a1,zero
sw s5,0x7fdc(sp)
subu sp,sp,v1
lw v1,-0x7e00(gp)
addiu t1,sp,0x18
sw gp,0x10(sp)
addu t0,t0,t1
sw v1,0x2c(sp)
sw a2,0x18(sp)
addu s2,t0,v0
sw v0,0x28(sp)
ori t0,a3,0x3820
lw v1,0x0(v1)
ori a3,a3,0x381c
addu a3,a3,t1
addu t0,t0,t1
sw v1,0x0(a3)
addu s8,t0,t3
or v1,a2,s3
sw v1,0x24(sp)
or s7,zero,zero
b 0x000121f8
_li s5,0x7800
sltiu v0,s7,0x7800
beq v0,zero,0x00012298
_lui v0,0xcccc
lw t9,-0x7ebc(gp)
addu a0,s2,s7
subu a2,s5,s7
li a1,0x1
jalr t9
_or a3,s0,zero
lw a0,0x0(s0)
addu s7,s7,v0
andi v0,a0,0x30
beq v0,zero,0x000121ec
_lw gp,0x10(sp)
bne s7,zero,0x00012298
_lui v0,0xcccc
lw v0,0x24(sp)
bne v0,zero,0x00012408
_nop
andi a0,a0,0x20
bne a0,zero,0x000124a8
_lui v0,0x1
addiu v1,sp,0x18
ori v0,v0,0x381c
addu v0,v0,v1
lw v1,0x0(v0)
lw v0,0x2c(sp)
lw v0,0x0(v0)
bne v1,v0,0x0001249c
_ori t0,zero,0xb870
addu sp,sp,t0
lw ra,0x7fec(sp)
lw s8,0x7fe8(sp)
lw s7,0x7fe4(sp)
lw s6,0x7fe0(sp)
lw s5,0x7fdc(sp)
lw s4,0x7fd8(sp)
lw s3,0x7fd4(sp)
lw s2,0x7fd0(sp)
lw s1,0x7fcc(sp)
lw s0,0x7fc8(sp)
jr ra
_addiu sp,sp,0x7ff0
lw t9,-0x7fb8(gp)
addiu t2,s7,0x4
ori v0,v0,0xcccd
multu t2,v0
lui v0,0x1
addiu v1,sp,0x18
ori v0,v0,0x3820
mfhi t2
addu v0,v0,v1
lw v1,0x28(sp)
or a2,s8,zero
or a1,s7,zero
addu a0,v0,v1
srl t2,t2,0x2
sll s6,t2,0x3
bal 0x00012980
_or a3,s6,zero
lw v0,0x24(sp)
bne v0,zero,0x00012330
_lw gp,0x10(sp)
lw v0,-0x7e78(gp)
li a1,0x1
lw t9,-0x7e0c(gp)
or a2,s6,zero
or a0,s8,zero
jalr t9
_lw a3,0x0(v0)
sltu v0,v0,s6
bne v0,zero,0x00012454
_lw gp,0x10(sp)
lw a0,0x0(s0)
andi v0,a0,0x30
bne v0,zero,0x0001222c
_li v0,0x7800
beq s7,v0,0x000121e0
_lw v0,0x24(sp)
b 0x00012230
_nop
beq s6,zero,0x00012310
_or s5,zero,zero
lw v0,-0x7e78(gp)
b 0x00012374
_sw v0,0x20(sp)
lw a0,0x14(s4)
lw v0,0x18(s4)
sltu v0,a0,v0
beq v0,zero,0x000123e4
_addiu v0,a0,0x1
or s1,zero,zero
sw v0,0x14(s4)
li v0,0xa
sb v0,0x0(a0)
sltu v0,s5,s6
beq v0,zero,0x00012310
_nop
subu a0,s3,s1
lw v1,0x18(sp)
subu t0,s6,s5
sltu v0,s3,a0
subu v0,v1,v0
li v1,-0x1
movz v1,a0,v0
or a0,t0,zero
or v0,v1,zero
sltu t0,v1,t0
movz v0,a0,t0
beq v0,zero,0x00012344
_or t0,v0,zero
lw v0,0x20(sp)
li a1,0x1
lw t9,-0x7e0c(gp)
addu a0,s8,s5
or a2,t0,zero
sw t0,0x1c(sp)
jalr t9
_lw a3,0x0(v0)
lw t0,0x1c(sp)
sltu v0,v0,t0
bne v0,zero,0x00012454
_lw gp,0x10(sp)
addu s1,s1,t0
b 0x00012368
_addu s5,s5,t0
lw t9,-0x7e94(gp)
li a1,0xa
jalr t9
_or a0,s4,zero
li v1,-0x1
beq v0,v1,0x00012454
_lw gp,0x10(sp)
b 0x00012368
_or s1,zero,zero
beq s1,zero,0x00012238
_nop
lw v0,0x14(s4)
lw v1,0x18(s4)
sltu v1,v0,v1
beq v1,zero,0x00012438
_addiu v1,v0,0x1
sw v1,0x14(s4)
li v1,0xa
sb v1,0x0(v0)
b 0x00012238
_lw a0,0x0(s0)
lw t9,-0x7e94(gp)
li a1,0xa
jalr t9
_or a0,s4,zero
li v1,-0x1
bne v0,v1,0x00012430
_lw gp,0x10(sp)
lw t9,-0x7e70(gp)
jalr t9
_nop
li a2,0x5
lw gp,0x10(sp)
or a0,zero,zero
lw s0,0x0(v0)
lw a1,-0x7fc8(gp)
lw t9,-0x7e14(gp)
addiu a1,a1,-0x70f0
jalr t9
_nop
li a0,0x1
lw gp,0x10(sp)
or a2,v0,zero
lw t9,-0x7e38(gp)
jalr t9
_or a1,s0,zero
lw t9,-0x7e18(gp)
jalr t9
_nop
lw t9,-0x7e70(gp)
jalr t9
_nop
li a2,0x5
lw gp,0x10(sp)
or a0,zero,zero
lw s0,0x0(v0)
lw a1,-0x7fc8(gp)
lw t9,-0x7e14(gp)
b 0x0001247c
_addiu a1,a1,-0x70fc
(translation_unit "void FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}\n\n" (function_definition "void FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)" identifier (parameter_list "(uint *param_1,int param_2,uint param_3,uint param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "undefined1 auStack_1382c [30720];" type_identifier (array_declarator "auStack_1382c [30720]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_c02c [49152];" type_identifier (array_declarator "auStack_c02c [49152]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar10 = PTR___stack_chk_guard_0002b2d0;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0002b2d0" identifier = identifier) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0002b2d0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002b2d0" * (cast_expression "(int *)PTR___stack_chk_guard_0002b2d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));" do (compound_statement "{\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  }" { (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);" (assignment_expression "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" identifier = (call_expression "(*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_0002b214)" ( (pointer_expression "*(code *)PTR_fread_unlocked_0002b214" * (cast_expression "(code *)PTR_fread_unlocked_0002b214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" ( (binary_expression "auStack_1382c + uVar13" identifier + identifier) , number_literal , (binary_expression "0x7800 - uVar13" number_literal - identifier) , identifier )))) ;) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar13 = uVar13 + iVar2;" (assignment_expression "uVar13 = uVar13 + iVar2" identifier = (binary_expression "uVar13 + iVar2" identifier + identifier)) ;) (if_statement "if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }" if (parenthesized_expression "((uVar9 & 0x30) != 0)" ( (binary_expression "(uVar9 & 0x30) != 0" (parenthesized_expression "(uVar9 & 0x30)" ( (binary_expression "uVar9 & 0x30" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }" { (if_statement "if (uVar13 == 0) goto LAB_00012230;" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00012230;" goto statement_identifier ;)) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(uVar13 < 0x7800)" ( (binary_expression "uVar13 < 0x7800" identifier < number_literal) )) ;) (expression_statement "uVar9 = ((uVar13 + 4) / 5) * 8;" (assignment_expression "uVar9 = ((uVar13 + 4) / 5) * 8" identifier = (binary_expression "((uVar13 + 4) / 5) * 8" (parenthesized_expression "((uVar13 + 4) / 5)" ( (binary_expression "(uVar13 + 4) / 5" (parenthesized_expression "(uVar13 + 4)" ( (binary_expression "uVar13 + 4" identifier + number_literal) )) / number_literal) )) * number_literal)) ;) (expression_statement "base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);" (call_expression "base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9)" identifier (argument_list "(auStack_1382c,uVar13,auStack_c02c,uVar9)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_stdout_0002b258;" (assignment_expression "puVar1 = PTR_stdout_0002b258" identifier = identifier) ;) (if_statement "if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" if (parenthesized_expression "(param_3 == 0 && param_4 == 0)" ( (binary_expression "param_3 == 0 && param_4 == 0" (binary_expression "param_3 == 0" identifier == number_literal) && (binary_expression "param_4 == 0" identifier == number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);" (assignment_expression "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" * (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)PTR_stdout_0002b258" * (cast_expression "(undefined4 *)PTR_stdout_0002b258" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (uVar3 < uVar9) goto LAB_00012454;" if (parenthesized_expression "(uVar3 < uVar9)" ( (binary_expression "uVar3 < uVar9" identifier < identifier) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" else (compound_statement "{\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }" { (do_statement "do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);" do (compound_statement "{\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }" if (parenthesized_expression "(param_3 == param_4 < param_4 - iVar12)" ( (binary_expression "param_3 == param_4 < param_4 - iVar12" identifier == (binary_expression "param_4 < param_4 - iVar12" identifier < (binary_expression "param_4 - iVar12" identifier - identifier))) )) (compound_statement "{\n            uVar4 = param_4 - iVar12;\n          }" { (expression_statement "uVar4 = param_4 - iVar12;" (assignment_expression "uVar4 = param_4 - iVar12" identifier = (binary_expression "param_4 - iVar12" identifier - identifier)) ;) })) (if_statement "if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }" if (parenthesized_expression "(uVar9 - uVar3 <= uVar4)" ( (binary_expression "uVar9 - uVar3 <= uVar4" (binary_expression "uVar9 - uVar3" identifier - identifier) <= identifier) )) (compound_statement "{\n            uVar4 = uVar9 - uVar3;\n          }" { (expression_statement "uVar4 = uVar9 - uVar3;" (assignment_expression "uVar4 = uVar9 - uVar3" identifier = (binary_expression "uVar9 - uVar3" identifier - identifier)) ;) })) (if_statement "if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }" { (expression_statement "puVar6 = *(undefined1 **)(param_2 + 0x14);" (assignment_expression "puVar6 = *(undefined1 **)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" if (parenthesized_expression "(puVar6 < *(undefined1 **)(param_2 + 0x18))" ( (binary_expression "puVar6 < *(undefined1 **)(param_2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(param_2 + 0x18)" * (cast_expression "(undefined1 **)(param_2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1;" (assignment_expression "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = 10;" (assignment_expression "*puVar6 = 10" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" else (compound_statement "{\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" { (expression_statement "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);" (assignment_expression "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10)" identifier = (call_expression "(*(code *)PTR___overflow_0002b23c)(param_2,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" ( (pointer_expression "*(code *)PTR___overflow_0002b23c" * (cast_expression "(code *)PTR___overflow_0002b23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar12 == -1) goto LAB_00012454;" if (parenthesized_expression "(iVar12 == -1)" ( (binary_expression "iVar12 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" else (compound_statement "{\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" { (expression_statement "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);" (assignment_expression "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" * (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" ( (binary_expression "auStack_c02c + uVar3" identifier + identifier) , number_literal , identifier , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (uVar5 < uVar4) goto LAB_00012454;" if (parenthesized_expression "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) (expression_statement "iVar12 = iVar12 + uVar4;" (assignment_expression "iVar12 = iVar12 + uVar4" identifier = (binary_expression "iVar12 + uVar4" identifier + identifier)) ;) (expression_statement "uVar3 = uVar3 + uVar4;" (assignment_expression "uVar3 = uVar3 + uVar4" identifier = (binary_expression "uVar3 + uVar4" identifier + identifier)) ;) }))) }) while (parenthesized_expression "(uVar3 < uVar9)" ( (binary_expression "uVar3 < uVar9" identifier < identifier) )) ;) })) }))) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(((uVar9 & 0x30) == 0) && (uVar13 == 0x7800))" ( (binary_expression "((uVar9 & 0x30) == 0) && (uVar13 == 0x7800)" (parenthesized_expression "((uVar9 & 0x30) == 0)" ( (binary_expression "(uVar9 & 0x30) == 0" (parenthesized_expression "(uVar9 & 0x30)" ( (binary_expression "uVar9 & 0x30" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar13 == 0x7800)" ( (binary_expression "uVar13 == 0x7800" identifier == number_literal) ))) )) ;) (labeled_statement "LAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" statement_identifier : (if_statement "if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" if (parenthesized_expression "((param_3 != 0 || param_4 != 0) && (iVar12 != 0))" ( (binary_expression "(param_3 != 0 || param_4 != 0) && (iVar12 != 0)" (parenthesized_expression "(param_3 != 0 || param_4 != 0)" ( (binary_expression "param_3 != 0 || param_4 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "param_4 != 0" identifier != number_literal)) )) && (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" { (expression_statement "puVar6 = *(undefined1 **)(param_2 + 0x14);" (assignment_expression "puVar6 = *(undefined1 **)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" if (parenthesized_expression "(puVar6 < *(undefined1 **)(param_2 + 0x18))" ( (binary_expression "puVar6 < *(undefined1 **)(param_2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(param_2 + 0x18)" * (cast_expression "(undefined1 **)(param_2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }" { (expression_statement "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1;" (assignment_expression "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = 10;" (assignment_expression "*puVar6 = 10" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" else (compound_statement "{\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" { (expression_statement "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);" (assignment_expression "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10)" identifier = (call_expression "(*(code *)PTR___overflow_0002b23c)(param_2,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" ( (pointer_expression "*(code *)PTR___overflow_0002b23c" * (cast_expression "(code *)PTR___overflow_0002b23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" if (parenthesized_expression "(iVar12 == -1)" ( (binary_expression "iVar12 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" { (labeled_statement "LAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" statement_identifier : (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" ( (pointer_expression "*(code *)PTR___errno_location_0002b260" * (cast_expression "(code *)PTR___errno_location_0002b260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "uVar11 = *puVar8;" (assignment_expression "uVar11 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar10 = PTR_DAT_0002b108 + -0x70f0;" (assignment_expression "puVar10 = PTR_DAT_0002b108 + -0x70f0" identifier = (binary_expression "PTR_DAT_0002b108 + -0x70f0" identifier + number_literal)) ;) (goto_statement "goto LAB_0001247c;" goto statement_identifier ;) })) }))) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) (if_statement "if ((uVar9 & 0x20) != 0) goto LAB_000124a8;" if (parenthesized_expression "((uVar9 & 0x20) != 0)" ( (binary_expression "(uVar9 & 0x20) != 0" (parenthesized_expression "(uVar9 & 0x20)" ( (binary_expression "uVar9 & 0x20" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000124a8;" goto statement_identifier ;)) (if_statement "if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar10)" ( (binary_expression "local_2c != *(int *)puVar10" identifier != (pointer_expression "*(int *)puVar10" * (cast_expression "(int *)puVar10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }" { (do_statement "do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );" do (compound_statement "{\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0002b2b8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002b2b8" * (cast_expression "(code *)PTR___stack_chk_fail_0002b2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" statement_identifier : (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" ( (pointer_expression "*(code *)PTR___errno_location_0002b260" * (cast_expression "(code *)PTR___errno_location_0002b260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "uVar11 = *puVar8;" (assignment_expression "uVar11 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar10 = PTR_DAT_0002b108 + -0x70fc;" (assignment_expression "puVar10 = PTR_DAT_0002b108 + -0x70fc" identifier = (binary_expression "PTR_DAT_0002b108 + -0x70fc" identifier + number_literal)) ;) (labeled_statement "LAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);" (assignment_expression "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002b2bc)" ( (pointer_expression "*(code *)PTR_dcgettext_0002b2bc" * (cast_expression "(code *)PTR_dcgettext_0002b2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar10,5)" ( number_literal , identifier , number_literal )))) ;)) (expression_statement "(*(code *)PTR_error_0002b298)(1,uVar11,uVar7);" (call_expression "(*(code *)PTR_error_0002b298)(1,uVar11,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0002b298)" ( (pointer_expression "*(code *)PTR_error_0002b298" * (cast_expression "(code *)PTR_error_0002b298" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,uVar11,uVar7)" ( number_literal , identifier , identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void do_encode(FILE *in,FILE *out,uintmax_t wrap_column)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint in_a2;\n  uint in_a3;\n  undefined4 uVar12;\n  int iVar13;\n  uint inlen;\n  char inbuf [30720];\n  char outbuf [49152];\n  \n  puVar11 = PTR___stack_chk_guard_0002b2d0;\n  iVar13 = 0;\n  iVar9 = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    inlen = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    } while (inlen < 0x7800);\n    uVar10 = ((inlen + 4) / 5) * 8;\n    base32_encode(inbuf,inlen,outbuf,uVar10);\n    puVar1 = PTR_stdout_0002b258;\n    if (in_a2 == 0 && in_a3 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }\n    uVar10 = in->_flags;\n  } while (((uVar10 & 0x30) == 0) && (inlen == 0x7800));\nLAB_00012230:\n  if ((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)) {\n    pcVar6 = out->_IO_write_ptr;\n    if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar10 = in->_flags;\n  }\n  if ((uVar10 & 0x20) != 0) goto LAB_000124a8;\n  if (iVar9 != *(int *)puVar11) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    } while( true );\n  }\n  return;\n}\n\n" (function_definition "void do_encode(FILE *in,FILE *out,uintmax_t wrap_column)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint in_a2;\n  uint in_a3;\n  undefined4 uVar12;\n  int iVar13;\n  uint inlen;\n  char inbuf [30720];\n  char outbuf [49152];\n  \n  puVar11 = PTR___stack_chk_guard_0002b2d0;\n  iVar13 = 0;\n  iVar9 = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    inlen = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    } while (inlen < 0x7800);\n    uVar10 = ((inlen + 4) / 5) * 8;\n    base32_encode(inbuf,inlen,outbuf,uVar10);\n    puVar1 = PTR_stdout_0002b258;\n    if (in_a2 == 0 && in_a3 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }\n    uVar10 = in->_flags;\n  } while (((uVar10 & 0x30) == 0) && (inlen == 0x7800));\nLAB_00012230:\n  if ((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)) {\n    pcVar6 = out->_IO_write_ptr;\n    if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar10 = in->_flags;\n  }\n  if ((uVar10 & 0x20) != 0) goto LAB_000124a8;\n  if (iVar9 != *(int *)puVar11) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    } while( true );\n  }\n  return;\n}" primitive_type (function_declarator "do_encode(FILE *in,FILE *out,uintmax_t wrap_column)" identifier (parameter_list "(FILE *in,FILE *out,uintmax_t wrap_column)" ( (parameter_declaration "FILE *in" type_identifier (pointer_declarator "*in" * identifier)) , (parameter_declaration "FILE *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "uintmax_t wrap_column" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint in_a2;\n  uint in_a3;\n  undefined4 uVar12;\n  int iVar13;\n  uint inlen;\n  char inbuf [30720];\n  char outbuf [49152];\n  \n  puVar11 = PTR___stack_chk_guard_0002b2d0;\n  iVar13 = 0;\n  iVar9 = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    inlen = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    } while (inlen < 0x7800);\n    uVar10 = ((inlen + 4) / 5) * 8;\n    base32_encode(inbuf,inlen,outbuf,uVar10);\n    puVar1 = PTR_stdout_0002b258;\n    if (in_a2 == 0 && in_a3 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }\n    uVar10 = in->_flags;\n  } while (((uVar10 & 0x30) == 0) && (inlen == 0x7800));\nLAB_00012230:\n  if ((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)) {\n    pcVar6 = out->_IO_write_ptr;\n    if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar10 = in->_flags;\n  }\n  if ((uVar10 & 0x20) != 0) goto LAB_000124a8;\n  if (iVar9 != *(int *)puVar11) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    } while( true );\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint in_a2;" type_identifier identifier ;) (declaration "uint in_a3;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint inlen;" type_identifier identifier ;) (declaration "char inbuf [30720];" primitive_type (array_declarator "inbuf [30720]" identifier [ number_literal ]) ;) (declaration "char outbuf [49152];" primitive_type (array_declarator "outbuf [49152]" identifier [ number_literal ]) ;) (expression_statement "puVar11 = PTR___stack_chk_guard_0002b2d0;" (assignment_expression "puVar11 = PTR___stack_chk_guard_0002b2d0" identifier = identifier) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = *(int *)PTR___stack_chk_guard_0002b2d0;" (assignment_expression "iVar9 = *(int *)PTR___stack_chk_guard_0002b2d0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002b2d0" * (cast_expression "(int *)PTR___stack_chk_guard_0002b2d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n    inlen = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    } while (inlen < 0x7800);\n    uVar10 = ((inlen + 4) / 5) * 8;\n    base32_encode(inbuf,inlen,outbuf,uVar10);\n    puVar1 = PTR_stdout_0002b258;\n    if (in_a2 == 0 && in_a3 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }\n    uVar10 = in->_flags;\n  } while (((uVar10 & 0x30) == 0) && (inlen == 0x7800));" do (compound_statement "{\n    inlen = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    } while (inlen < 0x7800);\n    uVar10 = ((inlen + 4) / 5) * 8;\n    base32_encode(inbuf,inlen,outbuf,uVar10);\n    puVar1 = PTR_stdout_0002b258;\n    if (in_a2 == 0 && in_a3 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }\n    uVar10 = in->_flags;\n  }" { (expression_statement "inlen = 0;" (assignment_expression "inlen = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    } while (inlen < 0x7800);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);\n      uVar10 = in->_flags;\n      inlen = inlen + iVar2;\n      if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in);" (assignment_expression "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in)" identifier = (call_expression "(*(code *)PTR_fread_unlocked_0002b214)(inbuf + inlen,1,0x7800 - inlen,in)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_0002b214)" ( (pointer_expression "*(code *)PTR_fread_unlocked_0002b214" * (cast_expression "(code *)PTR_fread_unlocked_0002b214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(inbuf + inlen,1,0x7800 - inlen,in)" ( (binary_expression "inbuf + inlen" identifier + identifier) , number_literal , (binary_expression "0x7800 - inlen" number_literal - identifier) , identifier )))) ;) (expression_statement "uVar10 = in->_flags;" (assignment_expression "uVar10 = in->_flags" identifier = (field_expression "in->_flags" identifier -> field_identifier)) ;) (expression_statement "inlen = inlen + iVar2;" (assignment_expression "inlen = inlen + iVar2" identifier = (binary_expression "inlen + iVar2" identifier + identifier)) ;) (if_statement "if ((uVar10 & 0x30) != 0) {\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }" if (parenthesized_expression "((uVar10 & 0x30) != 0)" ( (binary_expression "(uVar10 & 0x30) != 0" (parenthesized_expression "(uVar10 & 0x30)" ( (binary_expression "uVar10 & 0x30" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        if (inlen == 0) goto LAB_00012230;\n        break;\n      }" { (if_statement "if (inlen == 0) goto LAB_00012230;" if (parenthesized_expression "(inlen == 0)" ( (binary_expression "inlen == 0" identifier == number_literal) )) (goto_statement "goto LAB_00012230;" goto statement_identifier ;)) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(inlen < 0x7800)" ( (binary_expression "inlen < 0x7800" identifier < number_literal) )) ;) (expression_statement "uVar10 = ((inlen + 4) / 5) * 8;" (assignment_expression "uVar10 = ((inlen + 4) / 5) * 8" identifier = (binary_expression "((inlen + 4) / 5) * 8" (parenthesized_expression "((inlen + 4) / 5)" ( (binary_expression "(inlen + 4) / 5" (parenthesized_expression "(inlen + 4)" ( (binary_expression "inlen + 4" identifier + number_literal) )) / number_literal) )) * number_literal)) ;) (expression_statement "base32_encode(inbuf,inlen,outbuf,uVar10);" (call_expression "base32_encode(inbuf,inlen,outbuf,uVar10)" identifier (argument_list "(inbuf,inlen,outbuf,uVar10)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_stdout_0002b258;" (assignment_expression "puVar1 = PTR_stdout_0002b258" identifier = identifier) ;) (if_statement "if (in_a2 == 0 && in_a3 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }" if (parenthesized_expression "(in_a2 == 0 && in_a3 == 0)" ( (binary_expression "in_a2 == 0 && in_a3 == 0" (binary_expression "in_a2 == 0" identifier == number_literal) && (binary_expression "in_a3 == 0" identifier == number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar10) goto LAB_00012454;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258);" (assignment_expression "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" * (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(outbuf,1,uVar10,*(undefined4 *)PTR_stdout_0002b258)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)PTR_stdout_0002b258" * (cast_expression "(undefined4 *)PTR_stdout_0002b258" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (uVar3 < uVar10) goto LAB_00012454;" if (parenthesized_expression "(uVar3 < uVar10)" ( (binary_expression "uVar3 < uVar10" identifier < identifier) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }" else (compound_statement "{\n      uVar3 = 0;\n      if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n        do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);\n      }" { (do_statement "do {\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar10);" do (compound_statement "{\n          uVar4 = 0xffffffff;\n          if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }\n          if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }\n          if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (in_a2 == in_a3 < in_a3 - iVar13) {\n            uVar4 = in_a3 - iVar13;\n          }" if (parenthesized_expression "(in_a2 == in_a3 < in_a3 - iVar13)" ( (binary_expression "in_a2 == in_a3 < in_a3 - iVar13" identifier == (binary_expression "in_a3 < in_a3 - iVar13" identifier < (binary_expression "in_a3 - iVar13" identifier - identifier))) )) (compound_statement "{\n            uVar4 = in_a3 - iVar13;\n          }" { (expression_statement "uVar4 = in_a3 - iVar13;" (assignment_expression "uVar4 = in_a3 - iVar13" identifier = (binary_expression "in_a3 - iVar13" identifier - identifier)) ;) })) (if_statement "if (uVar10 - uVar3 <= uVar4) {\n            uVar4 = uVar10 - uVar3;\n          }" if (parenthesized_expression "(uVar10 - uVar3 <= uVar4)" ( (binary_expression "uVar10 - uVar3 <= uVar4" (binary_expression "uVar10 - uVar3" identifier - identifier) <= identifier) )) (compound_statement "{\n            uVar4 = uVar10 - uVar3;\n          }" { (expression_statement "uVar4 = uVar10 - uVar3;" (assignment_expression "uVar4 = uVar10 - uVar3" identifier = (binary_expression "uVar10 - uVar3" identifier - identifier)) ;) })) (if_statement "if (uVar4 == 0) {\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            pcVar6 = out->_IO_write_ptr;\n            if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }\n          }" { (expression_statement "pcVar6 = out->_IO_write_ptr;" (assignment_expression "pcVar6 = out->_IO_write_ptr" identifier = (field_expression "out->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar6 < out->_IO_write_end) {\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }\n            else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }" if (parenthesized_expression "(pcVar6 < out->_IO_write_end)" ( (binary_expression "pcVar6 < out->_IO_write_end" identifier < (field_expression "out->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n              iVar13 = 0;\n              out->_IO_write_ptr = pcVar6 + 1;\n              *pcVar6 = '\n';\n            }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "out->_IO_write_ptr = pcVar6 + 1;" (assignment_expression "out->_IO_write_ptr = pcVar6 + 1" (field_expression "out->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = '\n';" (assignment_expression "*pcVar6 = '\n'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }" else (compound_statement "{\n              iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n              if (iVar13 == -1) goto LAB_00012454;\n              iVar13 = 0;\n            }" { (expression_statement "iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);" (assignment_expression "iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10)" identifier = (call_expression "(*(code *)PTR___overflow_0002b23c)(out,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" ( (pointer_expression "*(code *)PTR___overflow_0002b23c" * (cast_expression "(code *)PTR___overflow_0002b23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(out,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar13 == -1) goto LAB_00012454;" if (parenthesized_expression "(iVar13 == -1)" ( (binary_expression "iVar13 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" else (compound_statement "{\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar13 = iVar13 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" { (expression_statement "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1);" (assignment_expression "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" * (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(outbuf + uVar3,1,uVar4,*(undefined4 *)puVar1)" ( (binary_expression "outbuf + uVar3" identifier + identifier) , number_literal , identifier , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (uVar5 < uVar4) goto LAB_00012454;" if (parenthesized_expression "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) (expression_statement "iVar13 = iVar13 + uVar4;" (assignment_expression "iVar13 = iVar13 + uVar4" identifier = (binary_expression "iVar13 + uVar4" identifier + identifier)) ;) (expression_statement "uVar3 = uVar3 + uVar4;" (assignment_expression "uVar3 = uVar3 + uVar4" identifier = (binary_expression "uVar3 + uVar4" identifier + identifier)) ;) }))) }) while (parenthesized_expression "(uVar3 < uVar10)" ( (binary_expression "uVar3 < uVar10" identifier < identifier) )) ;) })) }))) (expression_statement "uVar10 = in->_flags;" (assignment_expression "uVar10 = in->_flags" identifier = (field_expression "in->_flags" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(((uVar10 & 0x30) == 0) && (inlen == 0x7800))" ( (binary_expression "((uVar10 & 0x30) == 0) && (inlen == 0x7800)" (parenthesized_expression "((uVar10 & 0x30) == 0)" ( (binary_expression "(uVar10 & 0x30) == 0" (parenthesized_expression "(uVar10 & 0x30)" ( (binary_expression "uVar10 & 0x30" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(inlen == 0x7800)" ( (binary_expression "inlen == 0x7800" identifier == number_literal) ))) )) ;) (labeled_statement "LAB_00012230:\n  if ((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)) {\n    pcVar6 = out->_IO_write_ptr;\n    if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar10 = in->_flags;\n  }" statement_identifier : (if_statement "if ((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)) {\n    pcVar6 = out->_IO_write_ptr;\n    if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar10 = in->_flags;\n  }" if (parenthesized_expression "((in_a2 != 0 || in_a3 != 0) && (iVar13 != 0))" ( (binary_expression "(in_a2 != 0 || in_a3 != 0) && (iVar13 != 0)" (parenthesized_expression "(in_a2 != 0 || in_a3 != 0)" ( (binary_expression "in_a2 != 0 || in_a3 != 0" (binary_expression "in_a2 != 0" identifier != number_literal) || (binary_expression "in_a3 != 0" identifier != number_literal)) )) && (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    pcVar6 = out->_IO_write_ptr;\n    if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar10 = in->_flags;\n  }" { (expression_statement "pcVar6 = out->_IO_write_ptr;" (assignment_expression "pcVar6 = out->_IO_write_ptr" identifier = (field_expression "out->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar6 < out->_IO_write_end) {\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" if (parenthesized_expression "(pcVar6 < out->_IO_write_end)" ( (binary_expression "pcVar6 < out->_IO_write_end" identifier < (field_expression "out->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      out->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }" { (expression_statement "out->_IO_write_ptr = pcVar6 + 1;" (assignment_expression "out->_IO_write_ptr = pcVar6 + 1" (field_expression "out->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = '\n';" (assignment_expression "*pcVar6 = '\n'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" else (compound_statement "{\n      iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);\n      if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" { (expression_statement "iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10);" (assignment_expression "iVar13 = (*(code *)PTR___overflow_0002b23c)(out,10)" identifier = (call_expression "(*(code *)PTR___overflow_0002b23c)(out,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" ( (pointer_expression "*(code *)PTR___overflow_0002b23c" * (cast_expression "(code *)PTR___overflow_0002b23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(out,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar13 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" if (parenthesized_expression "(iVar13 == -1)" ( (binary_expression "iVar13 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar12 = *puVar8;\n        puVar11 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" { (labeled_statement "LAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" statement_identifier : (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" ( (pointer_expression "*(code *)PTR___errno_location_0002b260" * (cast_expression "(code *)PTR___errno_location_0002b260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "uVar12 = *puVar8;" (assignment_expression "uVar12 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar11 = PTR_DAT_0002b108 + -0x70f0;" (assignment_expression "puVar11 = PTR_DAT_0002b108 + -0x70f0" identifier = (binary_expression "PTR_DAT_0002b108 + -0x70f0" identifier + number_literal)) ;) (goto_statement "goto LAB_0001247c;" goto statement_identifier ;) })) }))) (expression_statement "uVar10 = in->_flags;" (assignment_expression "uVar10 = in->_flags" identifier = (field_expression "in->_flags" identifier -> field_identifier)) ;) }))) (if_statement "if ((uVar10 & 0x20) != 0) goto LAB_000124a8;" if (parenthesized_expression "((uVar10 & 0x20) != 0)" ( (binary_expression "(uVar10 & 0x20) != 0" (parenthesized_expression "(uVar10 & 0x20)" ( (binary_expression "uVar10 & 0x20" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000124a8;" goto statement_identifier ;)) (if_statement "if (iVar9 != *(int *)puVar11) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    } while( true );\n  }" if (parenthesized_expression "(iVar9 != *(int *)puVar11)" ( (binary_expression "iVar9 != *(int *)puVar11" identifier != (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    } while( true );\n  }" { (do_statement "do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    } while( true );" do (compound_statement "{\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar12 = *puVar8;\n      puVar11 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);\n      (*(code *)PTR_error_0002b298)(1,uVar12,uVar7);\n    }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0002b2b8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002b2b8" * (cast_expression "(code *)PTR___stack_chk_fail_0002b2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" statement_identifier : (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" ( (pointer_expression "*(code *)PTR___errno_location_0002b260" * (cast_expression "(code *)PTR___errno_location_0002b260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "uVar12 = *puVar8;" (assignment_expression "uVar12 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar11 = PTR_DAT_0002b108 + -0x70fc;" (assignment_expression "puVar11 = PTR_DAT_0002b108 + -0x70fc" identifier = (binary_expression "PTR_DAT_0002b108 + -0x70fc" identifier + number_literal)) ;) (labeled_statement "LAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5);" (assignment_expression "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002b2bc)(0,puVar11,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002b2bc)" ( (pointer_expression "*(code *)PTR_dcgettext_0002b2bc" * (cast_expression "(code *)PTR_dcgettext_0002b2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar11,5)" ( number_literal , identifier , number_literal )))) ;)) (expression_statement "(*(code *)PTR_error_0002b298)(1,uVar12,uVar7);" (call_expression "(*(code *)PTR_error_0002b298)(1,uVar12,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0002b298)" ( (pointer_expression "*(code *)PTR_error_0002b298" * (cast_expression "(code *)PTR_error_0002b298" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,uVar12,uVar7)" ( number_literal , identifier , identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}\n\n" (function_definition "void FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)" identifier (parameter_list "(uint *param_1,int param_2,uint param_3,uint param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "undefined1 auStack_1382c [30720];" type_identifier (array_declarator "auStack_1382c [30720]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_c02c [49152];" type_identifier (array_declarator "auStack_c02c [49152]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar10 = PTR___stack_chk_guard_0002b2d0;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0002b2d0" identifier = identifier) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0002b2d0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002b2d0" * (cast_expression "(int *)PTR___stack_chk_guard_0002b2d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (do_statement "do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));" do (compound_statement "{\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  }" { (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);" (assignment_expression "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" identifier = (call_expression "(*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_0002b214)" ( (pointer_expression "*(code *)PTR_fread_unlocked_0002b214" * (cast_expression "(code *)PTR_fread_unlocked_0002b214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" ( (binary_expression "auStack_1382c + uVar13" identifier + identifier) , number_literal , (binary_expression "0x7800 - uVar13" number_literal - identifier) , identifier )))) ;) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar13 = uVar13 + iVar2;" (assignment_expression "uVar13 = uVar13 + iVar2" identifier = (binary_expression "uVar13 + iVar2" identifier + identifier)) ;) (if_statement "if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }" if (parenthesized_expression "((uVar9 & 0x30) != 0)" ( (binary_expression "(uVar9 & 0x30) != 0" (parenthesized_expression "(uVar9 & 0x30)" ( (binary_expression "uVar9 & 0x30" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }" { (if_statement "if (uVar13 == 0) goto LAB_00012230;" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00012230;" goto statement_identifier ;)) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(uVar13 < 0x7800)" ( (binary_expression "uVar13 < 0x7800" identifier < number_literal) )) ;) (expression_statement "uVar9 = ((uVar13 + 4) / 5) * 8;" (assignment_expression "uVar9 = ((uVar13 + 4) / 5) * 8" identifier = (binary_expression "((uVar13 + 4) / 5) * 8" (parenthesized_expression "((uVar13 + 4) / 5)" ( (binary_expression "(uVar13 + 4) / 5" (parenthesized_expression "(uVar13 + 4)" ( (binary_expression "uVar13 + 4" identifier + number_literal) )) / number_literal) )) * number_literal)) ;) (expression_statement "base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);" (call_expression "base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9)" identifier (argument_list "(auStack_1382c,uVar13,auStack_c02c,uVar9)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_stdout_0002b258;" (assignment_expression "puVar1 = PTR_stdout_0002b258" identifier = identifier) ;) (if_statement "if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" if (parenthesized_expression "(param_3 == 0 && param_4 == 0)" ( (binary_expression "param_3 == 0 && param_4 == 0" (binary_expression "param_3 == 0" identifier == number_literal) && (binary_expression "param_4 == 0" identifier == number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);" (assignment_expression "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" * (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)PTR_stdout_0002b258" * (cast_expression "(undefined4 *)PTR_stdout_0002b258" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (uVar3 < uVar9) goto LAB_00012454;" if (parenthesized_expression "(uVar3 < uVar9)" ( (binary_expression "uVar3 < uVar9" identifier < identifier) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" else (compound_statement "{\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }" { (do_statement "do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);" do (compound_statement "{\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }" if (parenthesized_expression "(param_3 == param_4 < param_4 - iVar12)" ( (binary_expression "param_3 == param_4 < param_4 - iVar12" identifier == (binary_expression "param_4 < param_4 - iVar12" identifier < (binary_expression "param_4 - iVar12" identifier - identifier))) )) (compound_statement "{\n            uVar4 = param_4 - iVar12;\n          }" { (expression_statement "uVar4 = param_4 - iVar12;" (assignment_expression "uVar4 = param_4 - iVar12" identifier = (binary_expression "param_4 - iVar12" identifier - identifier)) ;) })) (if_statement "if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }" if (parenthesized_expression "(uVar9 - uVar3 <= uVar4)" ( (binary_expression "uVar9 - uVar3 <= uVar4" (binary_expression "uVar9 - uVar3" identifier - identifier) <= identifier) )) (compound_statement "{\n            uVar4 = uVar9 - uVar3;\n          }" { (expression_statement "uVar4 = uVar9 - uVar3;" (assignment_expression "uVar4 = uVar9 - uVar3" identifier = (binary_expression "uVar9 - uVar3" identifier - identifier)) ;) })) (if_statement "if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }" { (expression_statement "puVar6 = *(undefined1 **)(param_2 + 0x14);" (assignment_expression "puVar6 = *(undefined1 **)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" if (parenthesized_expression "(puVar6 < *(undefined1 **)(param_2 + 0x18))" ( (binary_expression "puVar6 < *(undefined1 **)(param_2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(param_2 + 0x18)" * (cast_expression "(undefined1 **)(param_2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1;" (assignment_expression "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = 10;" (assignment_expression "*puVar6 = 10" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" else (compound_statement "{\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" { (expression_statement "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);" (assignment_expression "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10)" identifier = (call_expression "(*(code *)PTR___overflow_0002b23c)(param_2,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" ( (pointer_expression "*(code *)PTR___overflow_0002b23c" * (cast_expression "(code *)PTR___overflow_0002b23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar12 == -1) goto LAB_00012454;" if (parenthesized_expression "(iVar12 == -1)" ( (binary_expression "iVar12 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" else (compound_statement "{\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" { (expression_statement "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);" (assignment_expression "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" * (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" ( (binary_expression "auStack_c02c + uVar3" identifier + identifier) , number_literal , identifier , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (uVar5 < uVar4) goto LAB_00012454;" if (parenthesized_expression "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) )) (goto_statement "goto LAB_00012454;" goto statement_identifier ;)) (expression_statement "iVar12 = iVar12 + uVar4;" (assignment_expression "iVar12 = iVar12 + uVar4" identifier = (binary_expression "iVar12 + uVar4" identifier + identifier)) ;) (expression_statement "uVar3 = uVar3 + uVar4;" (assignment_expression "uVar3 = uVar3 + uVar4" identifier = (binary_expression "uVar3 + uVar4" identifier + identifier)) ;) }))) }) while (parenthesized_expression "(uVar3 < uVar9)" ( (binary_expression "uVar3 < uVar9" identifier < identifier) )) ;) })) }))) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(((uVar9 & 0x30) == 0) && (uVar13 == 0x7800))" ( (binary_expression "((uVar9 & 0x30) == 0) && (uVar13 == 0x7800)" (parenthesized_expression "((uVar9 & 0x30) == 0)" ( (binary_expression "(uVar9 & 0x30) == 0" (parenthesized_expression "(uVar9 & 0x30)" ( (binary_expression "uVar9 & 0x30" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar13 == 0x7800)" ( (binary_expression "uVar13 == 0x7800" identifier == number_literal) ))) )) ;) (labeled_statement "LAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" statement_identifier : (if_statement "if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" if (parenthesized_expression "((param_3 != 0 || param_4 != 0) && (iVar12 != 0))" ( (binary_expression "(param_3 != 0 || param_4 != 0) && (iVar12 != 0)" (parenthesized_expression "(param_3 != 0 || param_4 != 0)" ( (binary_expression "param_3 != 0 || param_4 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "param_4 != 0" identifier != number_literal)) )) && (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" { (expression_statement "puVar6 = *(undefined1 **)(param_2 + 0x14);" (assignment_expression "puVar6 = *(undefined1 **)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" if (parenthesized_expression "(puVar6 < *(undefined1 **)(param_2 + 0x18))" ( (binary_expression "puVar6 < *(undefined1 **)(param_2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(param_2 + 0x18)" * (cast_expression "(undefined1 **)(param_2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }" { (expression_statement "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1;" (assignment_expression "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" * (cast_expression "(undefined1 **)(param_2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = 10;" (assignment_expression "*puVar6 = 10" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" else (compound_statement "{\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" { (expression_statement "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);" (assignment_expression "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10)" identifier = (call_expression "(*(code *)PTR___overflow_0002b23c)(param_2,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" ( (pointer_expression "*(code *)PTR___overflow_0002b23c" * (cast_expression "(code *)PTR___overflow_0002b23c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" if (parenthesized_expression "(iVar12 == -1)" ( (binary_expression "iVar12 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" { (labeled_statement "LAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" statement_identifier : (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" ( (pointer_expression "*(code *)PTR___errno_location_0002b260" * (cast_expression "(code *)PTR___errno_location_0002b260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "uVar11 = *puVar8;" (assignment_expression "uVar11 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar10 = PTR_DAT_0002b108 + -0x70f0;" (assignment_expression "puVar10 = PTR_DAT_0002b108 + -0x70f0" identifier = (binary_expression "PTR_DAT_0002b108 + -0x70f0" identifier + number_literal)) ;) (goto_statement "goto LAB_0001247c;" goto statement_identifier ;) })) }))) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) (if_statement "if ((uVar9 & 0x20) != 0) goto LAB_000124a8;" if (parenthesized_expression "((uVar9 & 0x20) != 0)" ( (binary_expression "(uVar9 & 0x20) != 0" (parenthesized_expression "(uVar9 & 0x20)" ( (binary_expression "uVar9 & 0x20" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000124a8;" goto statement_identifier ;)) (if_statement "if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar10)" ( (binary_expression "local_2c != *(int *)puVar10" identifier != (pointer_expression "*(int *)puVar10" * (cast_expression "(int *)puVar10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }" { (do_statement "do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );" do (compound_statement "{\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0002b2b8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002b2b8" * (cast_expression "(code *)PTR___stack_chk_fail_0002b2b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" statement_identifier : (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" ( (pointer_expression "*(code *)PTR___errno_location_0002b260" * (cast_expression "(code *)PTR___errno_location_0002b260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (expression_statement "uVar11 = *puVar8;" (assignment_expression "uVar11 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar10 = PTR_DAT_0002b108 + -0x70fc;" (assignment_expression "puVar10 = PTR_DAT_0002b108 + -0x70fc" identifier = (binary_expression "PTR_DAT_0002b108 + -0x70fc" identifier + number_literal)) ;) (labeled_statement "LAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);" statement_identifier : (expression_statement "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);" (assignment_expression "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002b2bc)" ( (pointer_expression "*(code *)PTR_dcgettext_0002b2bc" * (cast_expression "(code *)PTR_dcgettext_0002b2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar10,5)" ( number_literal , identifier , number_literal )))) ;)) (expression_statement "(*(code *)PTR_error_0002b298)(1,uVar11,uVar7);" (call_expression "(*(code *)PTR_error_0002b298)(1,uVar11,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0002b298)" ( (pointer_expression "*(code *)PTR_error_0002b298" * (cast_expression "(code *)PTR_error_0002b298" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,uVar11,uVar7)" ( number_literal , identifier , identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression LIT - IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) / LIT) )) * LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT < (binary_expression IDENT - IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , LIT )))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT ))) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00012138(uint *param_1,int param_2,uint param_3,uint param_4)" (identifier "FUN_00012138") (parameter_list "(uint *param_1,int param_2,uint param_3,uint param_4)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *puVar10;\n  undefined4 uVar11;\n  int iVar12;\n  uint uVar13;\n  undefined1 auStack_1382c [30720];\n  undefined1 auStack_c02c [49152];\n  int local_2c;\n  \n  puVar10 = PTR___stack_chk_guard_0002b2d0;\n  iVar12 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;\n  do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));\nLAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }\n  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;\n  if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 uVar11;" (type_identifier "undefined4") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "undefined1 auStack_1382c [30720];" (type_identifier "undefined1") (array_declarator "auStack_1382c [30720]" (identifier "auStack_1382c") ([ "[") (number_literal "30720") (] "]")) (; ";")) (declaration "undefined1 auStack_c02c [49152];" (type_identifier "undefined1") (array_declarator "auStack_c02c [49152]" (identifier "auStack_c02c") ([ "[") (number_literal "49152") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar10 = PTR___stack_chk_guard_0002b2d0;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0002b2d0" (identifier "puVar10") (= "=") (identifier "PTR___stack_chk_guard_0002b2d0")) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0002b2d0" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0002b2d0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0002b2d0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0002b2d0")))) (; ";")) (do_statement "do {\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));" (do "do") (compound_statement "{\n    uVar13 = 0;\n    do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);\n    uVar9 = ((uVar13 + 4) / 5) * 8;\n    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);\n    puVar1 = PTR_stdout_0002b258;\n    if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }\n    uVar9 = *param_1;\n  }" ({ "{") (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" (identifier "uVar13") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    } while (uVar13 < 0x7800);" (do "do") (compound_statement "{\n      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);\n      uVar9 = *param_1;\n      uVar13 = uVar13 + iVar2;\n      if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);" (assignment_expression "iVar2 = (*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_fread_unlocked_0002b214)\n                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_0002b214)" (( "(") (pointer_expression "*(code *)PTR_fread_unlocked_0002b214" (* "*") (cast_expression "(code *)PTR_fread_unlocked_0002b214" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fread_unlocked_0002b214"))) () ")")) (argument_list "(auStack_1382c + uVar13,1,0x7800 - uVar13,param_1)" (( "(") (binary_expression "auStack_1382c + uVar13" (identifier "auStack_1382c") (+ "+") (identifier "uVar13")) (, ",") (number_literal "1") (, ",") (binary_expression "0x7800 - uVar13" (number_literal "0x7800") (- "-") (identifier "uVar13")) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" (identifier "uVar9") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar13 = uVar13 + iVar2;" (assignment_expression "uVar13 = uVar13 + iVar2" (identifier "uVar13") (= "=") (binary_expression "uVar13 + iVar2" (identifier "uVar13") (+ "+") (identifier "iVar2"))) (; ";")) (if_statement "if ((uVar9 & 0x30) != 0) {\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }" (if "if") (parenthesized_expression "((uVar9 & 0x30) != 0)" (( "(") (binary_expression "(uVar9 & 0x30) != 0" (parenthesized_expression "(uVar9 & 0x30)" (( "(") (binary_expression "uVar9 & 0x30" (identifier "uVar9") (& "&") (number_literal "0x30")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar13 == 0) goto LAB_00012230;\n        break;\n      }" ({ "{") (if_statement "if (uVar13 == 0) goto LAB_00012230;" (if "if") (parenthesized_expression "(uVar13 == 0)" (( "(") (binary_expression "uVar13 == 0" (identifier "uVar13") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00012230;" (goto "goto") (statement_identifier "LAB_00012230") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar13 < 0x7800)" (( "(") (binary_expression "uVar13 < 0x7800" (identifier "uVar13") (< "<") (number_literal "0x7800")) () ")")) (; ";")) (expression_statement "uVar9 = ((uVar13 + 4) / 5) * 8;" (assignment_expression "uVar9 = ((uVar13 + 4) / 5) * 8" (identifier "uVar9") (= "=") (binary_expression "((uVar13 + 4) / 5) * 8" (parenthesized_expression "((uVar13 + 4) / 5)" (( "(") (binary_expression "(uVar13 + 4) / 5" (parenthesized_expression "(uVar13 + 4)" (( "(") (binary_expression "uVar13 + 4" (identifier "uVar13") (+ "+") (number_literal "4")) () ")")) (/ "/") (number_literal "5")) () ")")) (* "*") (number_literal "8"))) (; ";")) (expression_statement "base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);" (call_expression "base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9)" (identifier "base32_encode") (argument_list "(auStack_1382c,uVar13,auStack_c02c,uVar9)" (( "(") (identifier "auStack_1382c") (, ",") (identifier "uVar13") (, ",") (identifier "auStack_c02c") (, ",") (identifier "uVar9") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_stdout_0002b258;" (assignment_expression "puVar1 = PTR_stdout_0002b258" (identifier "puVar1") (= "=") (identifier "PTR_stdout_0002b258")) (; ";")) (if_statement "if (param_3 == 0 && param_4 == 0) {\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }\n    else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" (if "if") (parenthesized_expression "(param_3 == 0 && param_4 == 0)" (( "(") (binary_expression "param_3 == 0 && param_4 == 0" (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);\n      if (uVar3 < uVar9) goto LAB_00012454;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);" (assignment_expression "uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" (( "(") (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" (* "*") (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_unlocked_0002b2c4"))) () ")")) (argument_list "(auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258)" (( "(") (identifier "auStack_c02c") (, ",") (number_literal "1") (, ",") (identifier "uVar9") (, ",") (pointer_expression "*(undefined4 *)PTR_stdout_0002b258" (* "*") (cast_expression "(undefined4 *)PTR_stdout_0002b258" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0002b258"))) () ")")))) (; ";")) (if_statement "if (uVar3 < uVar9) goto LAB_00012454;" (if "if") (parenthesized_expression "(uVar3 < uVar9)" (( "(") (binary_expression "uVar3 < uVar9" (identifier "uVar3") (< "<") (identifier "uVar9")) () ")")) (goto_statement "goto LAB_00012454;" (goto "goto") (statement_identifier "LAB_00012454") (; ";"))) (} "}")) (else_clause "else {\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" (else "else") (compound_statement "{\n      uVar3 = 0;\n      if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar9 != 0) {\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }" (if "if") (parenthesized_expression "(uVar9 != 0)" (( "(") (binary_expression "uVar9 != 0" (identifier "uVar9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);\n      }" ({ "{") (do_statement "do {\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        } while (uVar3 < uVar9);" (do "do") (compound_statement "{\n          uVar4 = 0xffffffff;\n          if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }\n          if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }\n          if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }\n        }" ({ "{") (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (param_3 == param_4 < param_4 - iVar12) {\n            uVar4 = param_4 - iVar12;\n          }" (if "if") (parenthesized_expression "(param_3 == param_4 < param_4 - iVar12)" (( "(") (binary_expression "param_3 == param_4 < param_4 - iVar12" (identifier "param_3") (== "==") (binary_expression "param_4 < param_4 - iVar12" (identifier "param_4") (< "<") (binary_expression "param_4 - iVar12" (identifier "param_4") (- "-") (identifier "iVar12")))) () ")")) (compound_statement "{\n            uVar4 = param_4 - iVar12;\n          }" ({ "{") (expression_statement "uVar4 = param_4 - iVar12;" (assignment_expression "uVar4 = param_4 - iVar12" (identifier "uVar4") (= "=") (binary_expression "param_4 - iVar12" (identifier "param_4") (- "-") (identifier "iVar12"))) (; ";")) (} "}"))) (if_statement "if (uVar9 - uVar3 <= uVar4) {\n            uVar4 = uVar9 - uVar3;\n          }" (if "if") (parenthesized_expression "(uVar9 - uVar3 <= uVar4)" (( "(") (binary_expression "uVar9 - uVar3 <= uVar4" (binary_expression "uVar9 - uVar3" (identifier "uVar9") (- "-") (identifier "uVar3")) (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n            uVar4 = uVar9 - uVar3;\n          }" ({ "{") (expression_statement "uVar4 = uVar9 - uVar3;" (assignment_expression "uVar4 = uVar9 - uVar3" (identifier "uVar4") (= "=") (binary_expression "uVar9 - uVar3" (identifier "uVar9") (- "-") (identifier "uVar3"))) (; ";")) (} "}"))) (if_statement "if (uVar4 == 0) {\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }\n          else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            puVar6 = *(undefined1 **)(param_2 + 0x14);\n            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }\n          }" ({ "{") (expression_statement "puVar6 = *(undefined1 **)(param_2 + 0x14);" (assignment_expression "puVar6 = *(undefined1 **)(param_2 + 0x14)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined1 **)(param_2 + 0x14)" (* "*") (cast_expression "(undefined1 **)(param_2 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }\n            else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" (if "if") (parenthesized_expression "(puVar6 < *(undefined1 **)(param_2 + 0x18))" (( "(") (binary_expression "puVar6 < *(undefined1 **)(param_2 + 0x18)" (identifier "puVar6") (< "<") (pointer_expression "*(undefined1 **)(param_2 + 0x18)" (* "*") (cast_expression "(undefined1 **)(param_2 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n              iVar12 = 0;\n              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n              *puVar6 = 10;\n            }" ({ "{") (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1;" (assignment_expression "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" (* "*") (cast_expression "(undefined1 **)(param_2 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar6 = 10;" (assignment_expression "*puVar6 = 10" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "10")) (; ";")) (} "}")) (else_clause "else {\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" (else "else") (compound_statement "{\n              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n              if (iVar12 == -1) goto LAB_00012454;\n              iVar12 = 0;\n            }" ({ "{") (expression_statement "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);" (assignment_expression "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10)" (identifier "iVar12") (= "=") (call_expression "(*(code *)PTR___overflow_0002b23c)(param_2,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" (( "(") (pointer_expression "*(code *)PTR___overflow_0002b23c" (* "*") (cast_expression "(code *)PTR___overflow_0002b23c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___overflow_0002b23c"))) () ")")) (argument_list "(param_2,10)" (( "(") (identifier "param_2") (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (iVar12 == -1) goto LAB_00012454;" (if "if") (parenthesized_expression "(iVar12 == -1)" (( "(") (binary_expression "iVar12 == -1" (identifier "iVar12") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00012454;" (goto "goto") (statement_identifier "LAB_00012454") (; ";"))) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" (else "else") (compound_statement "{\n            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);\n            if (uVar5 < uVar4) goto LAB_00012454;\n            iVar12 = iVar12 + uVar4;\n            uVar3 = uVar3 + uVar4;\n          }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);" (assignment_expression "uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)\n                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0002b2c4)" (( "(") (pointer_expression "*(code *)PTR_fwrite_unlocked_0002b2c4" (* "*") (cast_expression "(code *)PTR_fwrite_unlocked_0002b2c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_unlocked_0002b2c4"))) () ")")) (argument_list "(auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1)" (( "(") (binary_expression "auStack_c02c + uVar3" (identifier "auStack_c02c") (+ "+") (identifier "uVar3")) (, ",") (number_literal "1") (, ",") (identifier "uVar4") (, ",") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")))) (; ";")) (if_statement "if (uVar5 < uVar4) goto LAB_00012454;" (if "if") (parenthesized_expression "(uVar5 < uVar4)" (( "(") (binary_expression "uVar5 < uVar4" (identifier "uVar5") (< "<") (identifier "uVar4")) () ")")) (goto_statement "goto LAB_00012454;" (goto "goto") (statement_identifier "LAB_00012454") (; ";"))) (expression_statement "iVar12 = iVar12 + uVar4;" (assignment_expression "iVar12 = iVar12 + uVar4" (identifier "iVar12") (= "=") (binary_expression "iVar12 + uVar4" (identifier "iVar12") (+ "+") (identifier "uVar4"))) (; ";")) (expression_statement "uVar3 = uVar3 + uVar4;" (assignment_expression "uVar3 = uVar3 + uVar4" (identifier "uVar3") (= "=") (binary_expression "uVar3 + uVar4" (identifier "uVar3") (+ "+") (identifier "uVar4"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(uVar3 < uVar9)" (( "(") (binary_expression "uVar3 < uVar9" (identifier "uVar3") (< "<") (identifier "uVar9")) () ")")) (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" (identifier "uVar9") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(((uVar9 & 0x30) == 0) && (uVar13 == 0x7800))" (( "(") (binary_expression "((uVar9 & 0x30) == 0) && (uVar13 == 0x7800)" (parenthesized_expression "((uVar9 & 0x30) == 0)" (( "(") (binary_expression "(uVar9 & 0x30) == 0" (parenthesized_expression "(uVar9 & 0x30)" (( "(") (binary_expression "uVar9 & 0x30" (identifier "uVar9") (& "&") (number_literal "0x30")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar13 == 0x7800)" (( "(") (binary_expression "uVar13 == 0x7800" (identifier "uVar13") (== "==") (number_literal "0x7800")) () ")"))) () ")")) (; ";")) (labeled_statement "LAB_00012230:\n  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" (statement_identifier "LAB_00012230") (: ":") (if_statement "if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" (if "if") (parenthesized_expression "((param_3 != 0 || param_4 != 0) && (iVar12 != 0))" (( "(") (binary_expression "(param_3 != 0 || param_4 != 0) && (iVar12 != 0)" (parenthesized_expression "(param_3 != 0 || param_4 != 0)" (( "(") (binary_expression "param_3 != 0 || param_4 != 0" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    puVar6 = *(undefined1 **)(param_2 + 0x14);\n    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }\n    uVar9 = *param_1;\n  }" ({ "{") (expression_statement "puVar6 = *(undefined1 **)(param_2 + 0x14);" (assignment_expression "puVar6 = *(undefined1 **)(param_2 + 0x14)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined1 **)(param_2 + 0x14)" (* "*") (cast_expression "(undefined1 **)(param_2 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }\n    else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" (if "if") (parenthesized_expression "(puVar6 < *(undefined1 **)(param_2 + 0x18))" (( "(") (binary_expression "puVar6 < *(undefined1 **)(param_2 + 0x18)" (identifier "puVar6") (< "<") (pointer_expression "*(undefined1 **)(param_2 + 0x18)" (* "*") (cast_expression "(undefined1 **)(param_2 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;\n      *puVar6 = 10;\n    }" ({ "{") (expression_statement "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1;" (assignment_expression "*(undefined1 **)(param_2 + 0x14) = puVar6 + 1" (pointer_expression "*(undefined1 **)(param_2 + 0x14)" (* "*") (cast_expression "(undefined1 **)(param_2 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar6 = 10;" (assignment_expression "*puVar6 = 10" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "10")) (; ";")) (} "}")) (else_clause "else {\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" (else "else") (compound_statement "{\n      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);\n      if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }\n    }" ({ "{") (expression_statement "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);" (assignment_expression "iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10)" (identifier "iVar12") (= "=") (call_expression "(*(code *)PTR___overflow_0002b23c)(param_2,10)" (parenthesized_expression "(*(code *)PTR___overflow_0002b23c)" (( "(") (pointer_expression "*(code *)PTR___overflow_0002b23c" (* "*") (cast_expression "(code *)PTR___overflow_0002b23c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___overflow_0002b23c"))) () ")")) (argument_list "(param_2,10)" (( "(") (identifier "param_2") (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (iVar12 == -1) {\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" (if "if") (parenthesized_expression "(iVar12 == -1)" (( "(") (binary_expression "iVar12 == -1" (identifier "iVar12") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n        uVar11 = *puVar8;\n        puVar10 = PTR_DAT_0002b108 + -0x70f0;\n        goto LAB_0001247c;\n      }" ({ "{") (labeled_statement "LAB_00012454:\n        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (statement_identifier "LAB_00012454") (: ":") (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002b260" (* "*") (cast_expression "(code *)PTR___errno_location_0002b260" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002b260"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";"))) (expression_statement "uVar11 = *puVar8;" (assignment_expression "uVar11 = *puVar8" (identifier "uVar11") (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar10 = PTR_DAT_0002b108 + -0x70f0;" (assignment_expression "puVar10 = PTR_DAT_0002b108 + -0x70f0" (identifier "puVar10") (= "=") (binary_expression "PTR_DAT_0002b108 + -0x70f0" (identifier "PTR_DAT_0002b108") (+ "+") (number_literal "-0x70f0"))) (; ";")) (goto_statement "goto LAB_0001247c;" (goto "goto") (statement_identifier "LAB_0001247c") (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" (identifier "uVar9") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")))) (if_statement "if ((uVar9 & 0x20) != 0) goto LAB_000124a8;" (if "if") (parenthesized_expression "((uVar9 & 0x20) != 0)" (( "(") (binary_expression "(uVar9 & 0x20) != 0" (parenthesized_expression "(uVar9 & 0x20)" (( "(") (binary_expression "uVar9 & 0x20" (identifier "uVar9") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000124a8;" (goto "goto") (statement_identifier "LAB_000124a8") (; ";"))) (if_statement "if (local_2c != *(int *)puVar10) {\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar10)" (( "(") (binary_expression "local_2c != *(int *)puVar10" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar10" (* "*") (cast_expression "(int *)puVar10" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10")))) () ")")) (compound_statement "{\n    do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );\n  }" ({ "{") (do_statement "do {\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    } while( true );" (do "do") (compound_statement "{\n      (*(code *)PTR___stack_chk_fail_0002b2b8)();\nLAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();\n      uVar11 = *puVar8;\n      puVar10 = PTR_DAT_0002b108 + -0x70fc;\nLAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);\n      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);\n    }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_0002b2b8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002b2b8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0002b2b8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0002b2b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0002b2b8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_000124a8:\n      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (statement_identifier "LAB_000124a8") (: ":") (expression_statement "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();" (assignment_expression "puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)()" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002b260)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002b260)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002b260)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002b260" (* "*") (cast_expression "(code *)PTR___errno_location_0002b260" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002b260"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";"))) (expression_statement "uVar11 = *puVar8;" (assignment_expression "uVar11 = *puVar8" (identifier "uVar11") (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar10 = PTR_DAT_0002b108 + -0x70fc;" (assignment_expression "puVar10 = PTR_DAT_0002b108 + -0x70fc" (identifier "puVar10") (= "=") (binary_expression "PTR_DAT_0002b108 + -0x70fc" (identifier "PTR_DAT_0002b108") (+ "+") (number_literal "-0x70fc"))) (; ";")) (labeled_statement "LAB_0001247c:\n      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);" (statement_identifier "LAB_0001247c") (: ":") (expression_statement "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);" (assignment_expression "uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0002b2bc)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_0002b2bc" (* "*") (cast_expression "(code *)PTR_dcgettext_0002b2bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_0002b2bc"))) () ")")) (argument_list "(0,puVar10,5)" (( "(") (number_literal "0") (, ",") (identifier "puVar10") (, ",") (number_literal "5") () ")")))) (; ";"))) (expression_statement "(*(code *)PTR_error_0002b298)(1,uVar11,uVar7);" (call_expression "(*(code *)PTR_error_0002b298)(1,uVar11,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0002b298)" (( "(") (pointer_expression "*(code *)PTR_error_0002b298" (* "*") (cast_expression "(code *)PTR_error_0002b298" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_0002b298"))) () ")")) (argument_list "(1,uVar11,uVar7)" (( "(") (number_literal "1") (, ",") (identifier "uVar11") (, ",") (identifier "uVar7") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *in,type_1 *out,type_2 wrap_column)

{
  type_3 *puVar1;
  int var_3;
  type_4 var_8;
  type_4 var_10;
  type_4 var_13;
  char *var_11;
  type_5 uVar7;
  type_5 *puVar8;
  int var_15;
  type_4 var_4;
  type_3 *puVar11;
  type_4 var_6;
  type_4 var_7;
  type_5 uVar12;
  int var_9;
  type_4 var_2;
  char var_1 [30720];
  char var_12 [49152];
  
  puVar11 = PTR___stack_chk_guard_0002b2d0;
  var_9 = 0;
  var_15 = *(int *)PTR___stack_chk_guard_0002b2d0;
  do {
    var_2 = 0;
    do {
      var_3 = (*(type_6 *)PTR_fread_unlocked_0002b214)(var_1 + var_2,1,0x7800 - var_2,in);
      var_4 = in->_flags;
      var_2 = var_2 + var_3;
      if ((var_4 & 0x30) != 0) {
        if (var_2 == 0) goto LAB_00012230;
        break;
      }
    } while (var_2 < 0x7800);
    var_4 = ((var_2 + 4) / 5) * 8;
    var_5(var_1,var_2,var_12,var_4);
    puVar1 = PTR_stdout_0002b258;
    if (var_6 == 0 && var_7 == 0) {
      var_8 = (*(type_6 *)PTR_fwrite_unlocked_0002b2c4)
                        (var_12,1,var_4,*(type_5 *)PTR_stdout_0002b258);
      if (var_8 < var_4) goto LAB_00012454;
    }
    else {
      var_8 = 0;
      if (var_4 != 0) {
        do {
          var_10 = 0xffffffff;
          if (var_6 == var_7 < var_7 - var_9) {
            var_10 = var_7 - var_9;
          }
          if (var_4 - var_8 <= var_10) {
            var_10 = var_4 - var_8;
          }
          if (var_10 == 0) {
            var_11 = out->_IO_write_ptr;
            if (var_11 < out->_IO_write_end) {
              var_9 = 0;
              out->_IO_write_ptr = var_11 + 1;
              *var_11 = '\n';
            }
            else {
              var_9 = (*(type_6 *)PTR___overflow_0002b23c)(out,10);
              if (var_9 == -1) goto LAB_00012454;
              var_9 = 0;
            }
          }
          else {
            var_13 = (*(type_6 *)PTR_fwrite_unlocked_0002b2c4)
                              (var_12 + var_8,1,var_10,*(type_5 *)puVar1);
            if (var_13 < var_10) goto LAB_00012454;
            var_9 = var_9 + var_10;
            var_8 = var_8 + var_10;
          }
        } while (var_8 < var_4);
      }
    }
    var_4 = in->_flags;
  } while (((var_4 & 0x30) == 0) && (var_2 == 0x7800));
LAB_00012230:
  if ((var_6 != 0 || var_7 != 0) && (var_9 != 0)) {
    var_11 = out->_IO_write_ptr;
    if (var_11 < out->_IO_write_end) {
      out->_IO_write_ptr = var_11 + 1;
      *var_11 = '\n';
    }
    else {
      var_9 = (*(type_6 *)PTR___overflow_0002b23c)(out,10);
      if (var_9 == -1) {
LAB_00012454:
        puVar8 = (type_5 *)(*(type_6 *)PTR___errno_location_0002b260)();
        uVar12 = *puVar8;
        puVar11 = var_14 + -0x70f0;
        goto LAB_0001247c;
      }
    }
    var_4 = in->_flags;
  }
  if ((var_4 & 0x20) != 0) goto LAB_000124a8;
  if (var_15 != *(int *)puVar11) {
    do {
      (*(type_6 *)PTR___stack_chk_fail_0002b2b8)();
LAB_000124a8:
      puVar8 = (type_5 *)(*(type_6 *)PTR___errno_location_0002b260)();
      uVar12 = *puVar8;
      puVar11 = var_14 + -0x70fc;
LAB_0001247c:
      uVar7 = (*(type_6 *)PTR_dcgettext_0002b2bc)(0,puVar11,5);
      (*(type_6 *)PTR_error_0002b298)(1,uVar12,uVar7);
    } while( true );
  }
  return;
}


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

void MASKED(uint *param_1,int param_2,uint param_3,uint param_4)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  undefined1 *puVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  uint uVar9;
  undefined *puVar10;
  undefined4 uVar11;
  int iVar12;
  uint uVar13;
  undefined1 auStack_1382c [30720];
  undefined1 auStack_c02c [49152];
  int local_2c;
  
  puVar10 = PTR___stack_chk_guard_0002b2d0;
  iVar12 = 0;
  local_2c = *(int *)PTR___stack_chk_guard_0002b2d0;
  do {
    uVar13 = 0;
    do {
      iVar2 = (*(code *)PTR_fread_unlocked_0002b214)
                        (auStack_1382c + uVar13,1,0x7800 - uVar13,param_1);
      uVar9 = *param_1;
      uVar13 = uVar13 + iVar2;
      if ((uVar9 & 0x30) != 0) {
        if (uVar13 == 0) goto LAB_00012230;
        break;
      }
    } while (uVar13 < 0x7800);
    uVar9 = ((uVar13 + 4) / 5) * 8;
    base32_encode(auStack_1382c,uVar13,auStack_c02c,uVar9);
    puVar1 = PTR_stdout_0002b258;
    if (param_3 == 0 && param_4 == 0) {
      uVar3 = (*(code *)PTR_fwrite_unlocked_0002b2c4)
                        (auStack_c02c,1,uVar9,*(undefined4 *)PTR_stdout_0002b258);
      if (uVar3 < uVar9) goto LAB_00012454;
    }
    else {
      uVar3 = 0;
      if (uVar9 != 0) {
        do {
          uVar4 = 0xffffffff;
          if (param_3 == param_4 < param_4 - iVar12) {
            uVar4 = param_4 - iVar12;
          }
          if (uVar9 - uVar3 <= uVar4) {
            uVar4 = uVar9 - uVar3;
          }
          if (uVar4 == 0) {
            puVar6 = *(undefined1 **)(param_2 + 0x14);
            if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {
              iVar12 = 0;
              *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;
              *puVar6 = 10;
            }
            else {
              iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);
              if (iVar12 == -1) goto LAB_00012454;
              iVar12 = 0;
            }
          }
          else {
            uVar5 = (*(code *)PTR_fwrite_unlocked_0002b2c4)
                              (auStack_c02c + uVar3,1,uVar4,*(undefined4 *)puVar1);
            if (uVar5 < uVar4) goto LAB_00012454;
            iVar12 = iVar12 + uVar4;
            uVar3 = uVar3 + uVar4;
          }
        } while (uVar3 < uVar9);
      }
    }
    uVar9 = *param_1;
  } while (((uVar9 & 0x30) == 0) && (uVar13 == 0x7800));
LAB_00012230:
  if ((param_3 != 0 || param_4 != 0) && (iVar12 != 0)) {
    puVar6 = *(undefined1 **)(param_2 + 0x14);
    if (puVar6 < *(undefined1 **)(param_2 + 0x18)) {
      *(undefined1 **)(param_2 + 0x14) = puVar6 + 1;
      *puVar6 = 10;
    }
    else {
      iVar12 = (*(code *)PTR___overflow_0002b23c)(param_2,10);
      if (iVar12 == -1) {
LAB_00012454:
        puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();
        uVar11 = *puVar8;
        puVar10 = PTR_DAT_0002b108 + -0x70f0;
        goto LAB_0001247c;
      }
    }
    uVar9 = *param_1;
  }
  if ((uVar9 & 0x20) != 0) goto LAB_000124a8;
  if (local_2c != *(int *)puVar10) {
    do {
      (*(code *)PTR___stack_chk_fail_0002b2b8)();
LAB_000124a8:
      puVar8 = (undefined4 *)(*(code *)PTR___errno_location_0002b260)();
      uVar11 = *puVar8;
      puVar10 = PTR_DAT_0002b108 + -0x70fc;
LAB_0001247c:
      uVar7 = (*(code *)PTR_dcgettext_0002b2bc)(0,puVar10,5);
      (*(code *)PTR_error_0002b298)(1,uVar11,uVar7);
    } while( true );
  }
  return;
}

