
int mem_cd_iconv(char *src,size_t srclen,iconv_t cd,char **resultp,size_t *lengthp)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  char *pcVar5;
  char *pcVar6;
  undefined4 uVar7;
  char *inptr;
  size_t insize;
  char *outptr;
  size_t outsize;
  anon_union_4096_2_06ea782f tmp;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0005b58c;
  pcVar6 = (char *)0x0;
  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;
  (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);
  inptr = src;
  insize = srclen;
  if (srclen != 0) {
    do {
      outsize = 0x1000;
      outptr = (char *)&tmp;
      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);
      if (iVar2 == -1) {
        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();
        if (*piVar3 != 7) {
          iVar2 = -1;
          if (*piVar3 != 0x16) goto LAB_0004265c;
          break;
        }
      }
      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);
    } while (insize != 0);
  }
  outsize = 0x1000;
  outptr = (char *)&tmp;
  iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);
  if (iVar2 == -1) {
LAB_00042744:
    iVar2 = -1;
  }
  else {
    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);
    if (pcVar6 == (char *)0x0) {
      iVar2 = 0;
      *lengthp = 0;
    }
    else {
      pcVar5 = *resultp;
      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&
         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {
        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();
        iVar2 = -1;
        *puVar4 = 0xc;
      }
      else {
        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);
        inptr = src;
        insize = srclen;
        outptr = pcVar5;
        outsize = (size_t)pcVar6;
        do {
          if (insize == 0) goto LAB_00042618;
          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);
        } while (iVar2 != -1);
        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();
        if (*piVar3 == 0x16) {
LAB_00042618:
          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);
          if (iVar2 != -1) {
            if (outsize != 0) goto LAB_00042760;
            iVar2 = 0;
            *resultp = pcVar5;
            *lengthp = (size_t)pcVar6;
            goto LAB_0004265c;
          }
        }
        if (*resultp == pcVar5) goto LAB_00042744;
        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();
        uVar7 = *puVar4;
        (*(code *)PTR_free_0005b59c)(pcVar5);
        iVar2 = -1;
        *puVar4 = uVar7;
      }
    }
  }
LAB_0004265c:
  if (local_2c == *(int *)puVar1) {
    return iVar2;
  }
  (*(code *)PTR___stack_chk_fail_0005b564)();
LAB_00042760:
  iVar2 = (*(code *)PTR_abort_0005b42c)();
  return iVar2;
}



undefined4
mem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined1 *puVar6;
  undefined1 *puVar7;
  undefined4 uVar8;
  undefined4 local_103c;
  int local_1038;
  undefined1 *local_1034;
  undefined1 *local_1030;
  undefined1 auStack_102c [4096];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0005b58c;
  puVar7 = (undefined1 *)0x0;
  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;
  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);
  local_103c = param_1;
  local_1038 = param_2;
  if (param_2 != 0) {
    do {
      local_1030 = (undefined1 *)0x1000;
      local_1034 = auStack_102c;
      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)
      ;
      if (iVar2 == -1) {
        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();
        if (*piVar3 != 7) {
          uVar5 = 0xffffffff;
          if (*piVar3 != 0x16) goto LAB_0004265c;
          break;
        }
      }
      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);
    } while (local_1038 != 0);
  }
  local_1030 = (undefined1 *)0x1000;
  local_1034 = auStack_102c;
  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);
  if (iVar2 == -1) {
LAB_00042744:
    uVar5 = 0xffffffff;
  }
  else {
    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);
    if (puVar7 == (undefined1 *)0x0) {
      uVar5 = 0;
      *param_5 = 0;
    }
    else {
      puVar6 = (undefined1 *)*param_4;
      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&
         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0
         )) {
        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();
        uVar5 = 0xffffffff;
        *puVar4 = 0xc;
      }
      else {
        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);
        local_103c = param_1;
        local_1038 = param_2;
        local_1034 = puVar6;
        local_1030 = puVar7;
        do {
          if (local_1038 == 0) goto LAB_00042618;
          iVar2 = (*(code *)PTR_iconv_0005b5cc)
                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);
        } while (iVar2 != -1);
        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();
        if (*piVar3 == 0x16) {
LAB_00042618:
          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);
          if (iVar2 != -1) {
            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;
            uVar5 = 0;
            *param_4 = (int)puVar6;
            *param_5 = (uint)puVar7;
            goto LAB_0004265c;
          }
        }
        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;
        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();
        uVar8 = *puVar4;
        (*(code *)PTR_free_0005b59c)(puVar6);
        uVar5 = 0xffffffff;
        *puVar4 = uVar8;
      }
    }
  }
LAB_0004265c:
  if (local_2c == *(int *)puVar1) {
    return uVar5;
  }
  (*(code *)PTR___stack_chk_fail_0005b564)();
LAB_00042760:
  uVar5 = (*(code *)PTR_abort_0005b42c)();
  return uVar5;
}


lui gp,0x2
addiu gp,gp,0xcd0
addu gp,gp,t9
addiu sp,sp,-0x1070
lw v0,-0x7b64(gp)
lw t9,-0x7b24(gp)
lw v1,0x1080(sp)
sw zero,0x10(sp)
sw v0,0x28(sp)
sw s5,0x105c(sp)
or s5,a1,zero
sw s2,0x1050(sp)
or a1,zero,zero
sw a3,0x20(sp)
or s2,a2,zero
sw gp,0x18(sp)
or a3,zero,zero
sw s3,0x1054(sp)
or a2,zero,zero
sw s1,0x104c(sp)
addiu s3,sp,0x3c
sw s0,0x1048(sp)
or s0,a0,zero
sw a0,0x2c(sp)
or a0,s2,zero
sw ra,0x106c(sp)
or s1,zero,zero
sw s8,0x1068(sp)
sw s7,0x1064(sp)
sw s6,0x1060(sp)
sw s4,0x1058(sp)
sw v1,0x24(sp)
lw v0,0x0(v0)
sw v0,0x1044(sp)
jalr t9
_nop
lw gp,0x18(sp)
sw s0,0x34(sp)
addiu s0,sp,0x44
beq s5,zero,0x0004274c
_sw s5,0x38(sp)
addiu s6,sp,0x38
addiu s8,sp,0x34
addiu s4,sp,0x40
b 0x000424ec
_li s7,0x1000
lw v0,0x3c(sp)
lw v1,0x38(sp)
subu v0,v0,s0
beq v1,zero,0x00042544
_addu s1,s1,v0
lw t9,-0x7b24(gp)
or a3,s3,zero
sw s4,0x10(sp)
or a2,s6,zero
or a1,s8,zero
sw s0,0x3c(sp)
or a0,s2,zero
jalr t9
_sw s7,0x40(sp)
li v1,-0x1
bne v0,v1,0x000424d8
_lw gp,0x18(sp)
lw t9,-0x7c3c(gp)
jalr t9
_nop
li v1,0x7
lw v0,0x0(v0)
beq v0,v1,0x000424d8
_lw gp,0x18(sp)
li v1,0x16
bne v0,v1,0x0004265c
_li v1,-0x1
lw t9,-0x7b24(gp)
li v0,0x1000
or a2,zero,zero
sw s4,0x10(sp)
or a1,zero,zero
sw s0,0x3c(sp)
or a3,s3,zero
sw v0,0x40(sp)
jalr t9
_or a0,s2,zero
li v1,-0x1
beq v0,v1,0x00042744
_lw gp,0x18(sp)
lw v0,0x3c(sp)
subu s0,v0,s0
addu s1,s0,s1
beq s1,zero,0x000426d8
_lw v0,0x20(sp)
lw s0,0x0(v0)
beq s0,zero,0x000426a0
_lw v0,0x24(sp)
lw v0,0x0(v0)
sltu v0,v0,s1
bne v0,zero,0x000426a4
_lw t9,-0x7be8(gp)
lw t9,-0x7b24(gp)
or a3,zero,zero
or a2,zero,zero
sw zero,0x10(sp)
or a1,zero,zero
jalr t9
_or a0,s2,zero
addiu s8,sp,0x38
lw v0,0x2c(sp)
addiu s7,sp,0x34
lw gp,0x18(sp)
li s6,-0x1
sw s5,0x38(sp)
sw v0,0x34(sp)
sw s0,0x3c(sp)
b 0x00042610
_sw s1,0x40(sp)
or a3,s3,zero
sw s4,0x10(sp)
or a2,s8,zero
or a1,s7,zero
jalr t9
_or a0,s2,zero
beq v0,s6,0x000426e8
_lw gp,0x18(sp)
lw s5,0x38(sp)
bne s5,zero,0x000425ec
_lw t9,-0x7b24(gp)
lw t9,-0x7b24(gp)
or a2,zero,zero
or a1,zero,zero
sw s4,0x10(sp)
or a3,s3,zero
jalr t9
_or a0,s2,zero
li v1,-0x1
beq v0,v1,0x00042704
_lw gp,0x18(sp)
lw v0,0x40(sp)
bne v0,zero,0x00042760
_lw v0,0x20(sp)
or v1,zero,zero
sw s0,0x0(v0)
lw v0,0x24(sp)
sw s1,0x0(v0)
or v0,v1,zero
lw v1,0x28(sp)
lw a0,0x1044(sp)
lw v1,0x0(v1)
bne a0,v1,0x00042754
_lw ra,0x106c(sp)
lw s8,0x1068(sp)
lw s7,0x1064(sp)
lw s6,0x1060(sp)
lw s5,0x105c(sp)
lw s4,0x1058(sp)
lw s3,0x1054(sp)
lw s2,0x1050(sp)
lw s1,0x104c(sp)
lw s0,0x1048(sp)
jr ra
_addiu sp,sp,0x1070
lw t9,-0x7be8(gp)
jalr t9
_or a0,s1,zero
lw gp,0x18(sp)
bne v0,zero,0x000425a8
_or s0,v0,zero
lw t9,-0x7c3c(gp)
jalr t9
_nop
li a0,0xc
lw gp,0x18(sp)
li v1,-0x1
b 0x0004265c
_sw a0,0x0(v0)
lw v0,0x24(sp)
or v1,zero,zero
b 0x0004265c
_sw zero,0x0(v0)
lw t9,-0x7c3c(gp)
jalr t9
_nop
li v1,0x16
lw v0,0x0(v0)
beq v0,v1,0x00042618
_lw gp,0x18(sp)
lw v0,0x20(sp)
lw v0,0x0(v0)
beq v0,s0,0x00042744
_lw t9,-0x7c3c(gp)
jalr t9
_nop
or a0,s0,zero
lw gp,0x18(sp)
or s0,v0,zero
lw t9,-0x7b54(gp)
jalr t9
_lw s1,0x0(v0)
li v1,-0x1
lw gp,0x18(sp)
b 0x0004265c
_sw s1,0x0(s0)
b 0x0004265c
_li v1,-0x1
b 0x00042544
_addiu s4,sp,0x40
lw t9,-0x7b8c(gp)
jalr t9
_nop
lw t9,-0x7cc4(gp)
jalr t9
_nop
(translation_unit "undefined4\nmem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}\n\n" (function_definition "undefined4\nmem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}" type_identifier (function_declarator "mem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 local_103c;" type_identifier identifier ;) (declaration "int local_1038;" primitive_type identifier ;) (declaration "undefined1 *local_1034;" type_identifier (pointer_declarator "*local_1034" * identifier) ;) (declaration "undefined1 *local_1030;" type_identifier (pointer_declarator "*local_1030" * identifier) ;) (declaration "undefined1 auStack_102c [4096];" type_identifier (array_declarator "auStack_102c [4096]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0005b58c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0005b58c" identifier = identifier) ;) (expression_statement "puVar7 = (undefined1 *)0x0;" (assignment_expression "puVar7 = (undefined1 *)0x0" identifier = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0005b58c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0005b58c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0005b58c" * (cast_expression "(int *)PTR___stack_chk_guard_0005b58c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_103c = param_1;" (assignment_expression "local_103c = param_1" identifier = identifier) ;) (expression_statement "local_1038 = param_2;" (assignment_expression "local_1038 = param_2" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }" { (do_statement "do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);" do (compound_statement "{\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    }" { (expression_statement "local_1030 = (undefined1 *)0x1000;" (assignment_expression "local_1030 = (undefined1 *)0x1000" identifier = (cast_expression "(undefined1 *)0x1000" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1034 = auStack_102c;" (assignment_expression "local_1034 = auStack_102c" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" ( identifier , (pointer_expression "&local_103c" & identifier) , (pointer_expression "&local_1038" & identifier) , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" if (parenthesized_expression "(*piVar3 != 7)" ( (binary_expression "*piVar3 != 7" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*piVar3 != 0x16) goto LAB_0004265c;" if (parenthesized_expression "(*piVar3 != 0x16)" ( (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" * identifier) != number_literal) )) (goto_statement "goto LAB_0004265c;" goto statement_identifier ;)) (break_statement "break;" break ;) })) })) (expression_statement "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);" (assignment_expression "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier = (binary_expression "local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier + (parenthesized_expression "((int)puVar7 - (int)auStack_102c)" ( (binary_expression "(int)puVar7 - (int)auStack_102c" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)auStack_102c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) }) while (parenthesized_expression "(local_1038 != 0)" ( (binary_expression "local_1038 != 0" identifier != number_literal) )) ;) })) (expression_statement "local_1030 = (undefined1 *)0x1000;" (assignment_expression "local_1030 = (undefined1 *)0x1000" identifier = (cast_expression "(undefined1 *)0x1000" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1034 = auStack_102c;" (assignment_expression "local_1034 = auStack_102c" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,&local_1034,&local_1030)" ( identifier , number_literal , number_literal , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }" { (labeled_statement "LAB_00042744:\n    uVar5 = 0xffffffff;" statement_identifier : (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;)) }) (else_clause "else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" else (compound_statement "{\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" { (expression_statement "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);" (assignment_expression "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier = (binary_expression "local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier + (parenthesized_expression "((int)puVar7 - (int)auStack_102c)" ( (binary_expression "(int)puVar7 - (int)auStack_102c" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)auStack_102c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" if (parenthesized_expression "(puVar7 == (undefined1 *)0x0)" ( (binary_expression "puVar7 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = 0;\n      *param_5 = 0;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) }) (else_clause "else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" else (compound_statement "{\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" { (expression_statement "puVar6 = (undefined1 *)*param_4;" (assignment_expression "puVar6 = (undefined1 *)*param_4" identifier = (cast_expression "(undefined1 *)*param_4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier))) ;) (if_statement "if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" if (parenthesized_expression "(((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         ))" ( (binary_expression "((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )" (parenthesized_expression "((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7))" ( (binary_expression "(puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)" (parenthesized_expression "(puVar6 == (undefined1 *)0x0)" ( (binary_expression "puVar6 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((undefined1 *)*param_5 < puVar7)" ( (binary_expression "(undefined1 *)*param_5 < puVar7" (cast_expression "(undefined1 *)*param_5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_5" * identifier)) < identifier) ))) )) && (parenthesized_expression "(puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )" ( (comma_expression "puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0005b508)(puVar7)" (parenthesized_expression "(*(code *)PTR_malloc_0005b508)" ( (pointer_expression "*(code *)PTR_malloc_0005b508" * (cast_expression "(code *)PTR_malloc_0005b508" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))))) , (binary_expression "puVar6 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" else (compound_statement "{\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" { (expression_statement "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_103c = param_1;" (assignment_expression "local_103c = param_1" identifier = identifier) ;) (expression_statement "local_1038 = param_2;" (assignment_expression "local_1038 = param_2" identifier = identifier) ;) (expression_statement "local_1034 = puVar6;" (assignment_expression "local_1034 = puVar6" identifier = identifier) ;) (expression_statement "local_1030 = puVar7;" (assignment_expression "local_1030 = puVar7" identifier = identifier) ;) (do_statement "do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);" do (compound_statement "{\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        }" { (if_statement "if (local_1038 == 0) goto LAB_00042618;" if (parenthesized_expression "(local_1038 == 0)" ( (binary_expression "local_1038 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00042618;" goto statement_identifier ;)) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" ( identifier , (pointer_expression "&local_103c" & identifier) , (pointer_expression "&local_1038" & identifier) , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }" if (parenthesized_expression "(*piVar3 == 0x16)" ( (binary_expression "*piVar3 == 0x16" (pointer_expression "*piVar3" * identifier) == number_literal) )) (compound_statement "{\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }" { (labeled_statement "LAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,&local_1034,&local_1030)" ( identifier , number_literal , number_literal , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;)) (if_statement "if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }" { (if_statement "if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;" if (parenthesized_expression "(local_1030 != (undefined1 *)0x0)" ( (binary_expression "local_1030 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00042760;" goto statement_identifier ;)) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*param_4 = (int)puVar6;" (assignment_expression "*param_4 = (int)puVar6" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = (uint)puVar7;" (assignment_expression "*param_5 = (uint)puVar7" (pointer_expression "*param_5" * identifier) = (cast_expression "(uint)puVar7" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_0004265c;" goto statement_identifier ;) })) })) (if_statement "if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;" if (parenthesized_expression "((undefined1 *)*param_4 == puVar6)" ( (binary_expression "(undefined1 *)*param_4 == puVar6" (cast_expression "(undefined1 *)*param_4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) == identifier) )) (goto_statement "goto LAB_00042744;" goto statement_identifier ;)) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar8 = *puVar4;" (assignment_expression "uVar8 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "(*(code *)PTR_free_0005b59c)(puVar6);" (call_expression "(*(code *)PTR_free_0005b59c)(puVar6)" (parenthesized_expression "(*(code *)PTR_free_0005b59c)" ( (pointer_expression "*(code *)PTR_free_0005b59c" * (cast_expression "(code *)PTR_free_0005b59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*puVar4 = uVar8;" (assignment_expression "*puVar4 = uVar8" (pointer_expression "*puVar4" * identifier) = identifier) ;) }))) }))) }))) (labeled_statement "LAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0005b564)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005b564)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005b564)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0005b564" * (cast_expression "(code *)PTR___stack_chk_fail_0005b564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();" statement_identifier : (expression_statement "uVar5 = (*(code *)PTR_abort_0005b42c)();" (assignment_expression "uVar5 = (*(code *)PTR_abort_0005b42c)()" identifier = (call_expression "(*(code *)PTR_abort_0005b42c)()" (parenthesized_expression "(*(code *)PTR_abort_0005b42c)" ( (pointer_expression "*(code *)PTR_abort_0005b42c" * (cast_expression "(code *)PTR_abort_0005b42c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;)) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "int mem_cd_iconv(char *src,size_t srclen,iconv_t cd,char **resultp,size_t *lengthp)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  char *inptr;\n  size_t insize;\n  char *outptr;\n  size_t outsize;\n  anon_union_4096_2_06ea782f tmp;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  pcVar6 = (char *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n  inptr = src;\n  insize = srclen;\n  if (srclen != 0) {\n    do {\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    } while (insize != 0);\n  }\n  outsize = 0x1000;\n  outptr = (char *)&tmp;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n  if (iVar2 == -1) {\nLAB_00042744:\n    iVar2 = -1;\n  }\n  else {\n    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return iVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  iVar2 = (*(code *)PTR_abort_0005b42c)();\n  return iVar2;\n}\n\n" (function_definition "int mem_cd_iconv(char *src,size_t srclen,iconv_t cd,char **resultp,size_t *lengthp)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  char *inptr;\n  size_t insize;\n  char *outptr;\n  size_t outsize;\n  anon_union_4096_2_06ea782f tmp;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  pcVar6 = (char *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n  inptr = src;\n  insize = srclen;\n  if (srclen != 0) {\n    do {\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    } while (insize != 0);\n  }\n  outsize = 0x1000;\n  outptr = (char *)&tmp;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n  if (iVar2 == -1) {\nLAB_00042744:\n    iVar2 = -1;\n  }\n  else {\n    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return iVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  iVar2 = (*(code *)PTR_abort_0005b42c)();\n  return iVar2;\n}" primitive_type (function_declarator "mem_cd_iconv(char *src,size_t srclen,iconv_t cd,char **resultp,size_t *lengthp)" identifier (parameter_list "(char *src,size_t srclen,iconv_t cd,char **resultp,size_t *lengthp)" ( (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) , (parameter_declaration "size_t srclen" primitive_type identifier) , (parameter_declaration "iconv_t cd" type_identifier identifier) , (parameter_declaration "char **resultp" primitive_type (pointer_declarator "**resultp" * (pointer_declarator "*resultp" * identifier))) , (parameter_declaration "size_t *lengthp" primitive_type (pointer_declarator "*lengthp" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  char *inptr;\n  size_t insize;\n  char *outptr;\n  size_t outsize;\n  anon_union_4096_2_06ea782f tmp;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  pcVar6 = (char *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n  inptr = src;\n  insize = srclen;\n  if (srclen != 0) {\n    do {\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    } while (insize != 0);\n  }\n  outsize = 0x1000;\n  outptr = (char *)&tmp;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n  if (iVar2 == -1) {\nLAB_00042744:\n    iVar2 = -1;\n  }\n  else {\n    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return iVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  iVar2 = (*(code *)PTR_abort_0005b42c)();\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *inptr;" primitive_type (pointer_declarator "*inptr" * identifier) ;) (declaration "size_t insize;" primitive_type identifier ;) (declaration "char *outptr;" primitive_type (pointer_declarator "*outptr" * identifier) ;) (declaration "size_t outsize;" primitive_type identifier ;) (declaration "anon_union_4096_2_06ea782f tmp;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0005b58c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0005b58c" identifier = identifier) ;) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0005b58c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0005b58c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0005b58c" * (cast_expression "(int *)PTR___stack_chk_guard_0005b58c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cd,0,0,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "inptr = src;" (assignment_expression "inptr = src" identifier = identifier) ;) (expression_statement "insize = srclen;" (assignment_expression "insize = srclen" identifier = identifier) ;) (if_statement "if (srclen != 0) {\n    do {\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    } while (insize != 0);\n  }" if (parenthesized_expression "(srclen != 0)" ( (binary_expression "srclen != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    } while (insize != 0);\n  }" { (do_statement "do {\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    } while (insize != 0);" do (compound_statement "{\n      outsize = 0x1000;\n      outptr = (char *)&tmp;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    }" { (expression_statement "outsize = 0x1000;" (assignment_expression "outsize = 0x1000" identifier = number_literal) ;) (expression_statement "outptr = (char *)&tmp;" (assignment_expression "outptr = (char *)&tmp" identifier = (cast_expression "(char *)&tmp" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&tmp" & identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cd,&inptr,&insize,&outptr,&outsize)" ( identifier , (pointer_expression "&inptr" & identifier) , (pointer_expression "&insize" & identifier) , (pointer_expression "&outptr" & identifier) , (pointer_expression "&outsize" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar3 != 7) {\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" if (parenthesized_expression "(*piVar3 != 7)" ( (binary_expression "*piVar3 != 7" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n          iVar2 = -1;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (if_statement "if (*piVar3 != 0x16) goto LAB_0004265c;" if (parenthesized_expression "(*piVar3 != 0x16)" ( (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" * identifier) != number_literal) )) (goto_statement "goto LAB_0004265c;" goto statement_identifier ;)) (break_statement "break;" break ;) })) })) (expression_statement "pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);" (assignment_expression "pcVar6 = outptr + ((int)pcVar6 - (int)&tmp)" identifier = (binary_expression "outptr + ((int)pcVar6 - (int)&tmp)" identifier + (parenthesized_expression "((int)pcVar6 - (int)&tmp)" ( (binary_expression "(int)pcVar6 - (int)&tmp" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)&tmp" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&tmp" & identifier))) )))) ;) }) while (parenthesized_expression "(insize != 0)" ( (binary_expression "insize != 0" identifier != number_literal) )) ;) })) (expression_statement "outsize = 0x1000;" (assignment_expression "outsize = 0x1000" identifier = number_literal) ;) (expression_statement "outptr = (char *)&tmp;" (assignment_expression "outptr = (char *)&tmp" identifier = (cast_expression "(char *)&tmp" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&tmp" & identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cd,0,0,&outptr,&outsize)" ( identifier , number_literal , number_literal , (pointer_expression "&outptr" & identifier) , (pointer_expression "&outsize" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\nLAB_00042744:\n    iVar2 = -1;\n  }\n  else {\n    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00042744:\n    iVar2 = -1;\n  }" { (labeled_statement "LAB_00042744:\n    iVar2 = -1;" statement_identifier : (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;)) }) (else_clause "else {\n    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }\n  }" else (compound_statement "{\n    pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);\n    if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }\n  }" { (expression_statement "pcVar6 = outptr + ((int)pcVar6 - (int)&tmp);" (assignment_expression "pcVar6 = outptr + ((int)pcVar6 - (int)&tmp)" identifier = (binary_expression "outptr + ((int)pcVar6 - (int)&tmp)" identifier + (parenthesized_expression "((int)pcVar6 - (int)&tmp)" ( (binary_expression "(int)pcVar6 - (int)&tmp" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)&tmp" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&tmp" & identifier))) )))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n      iVar2 = 0;\n      *lengthp = 0;\n    }\n    else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = 0;\n      *lengthp = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "*lengthp = 0;" (assignment_expression "*lengthp = 0" (pointer_expression "*lengthp" * identifier) = number_literal) ;) }) (else_clause "else {\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }" else (compound_statement "{\n      pcVar5 = *resultp;\n      if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }\n    }" { (expression_statement "pcVar5 = *resultp;" (assignment_expression "pcVar5 = *resultp" identifier = (pointer_expression "*resultp" * identifier)) ;) (if_statement "if (((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }" if (parenthesized_expression "(((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0))" ( (binary_expression "((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)) &&\n         (pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)" (parenthesized_expression "((pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6))" ( (binary_expression "(pcVar5 == (char *)0x0) || ((char *)*lengthp < pcVar6)" (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((char *)*lengthp < pcVar6)" ( (binary_expression "(char *)*lengthp < pcVar6" (cast_expression "(char *)*lengthp" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*lengthp" * identifier)) < identifier) ))) )) && (parenthesized_expression "(pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0)" ( (comma_expression "pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_malloc_0005b508)(pcVar6)" identifier = (cast_expression "(char *)(*(code *)PTR_malloc_0005b508)(pcVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0005b508)(pcVar6)" (parenthesized_expression "(*(code *)PTR_malloc_0005b508)" ( (pointer_expression "*(code *)PTR_malloc_0005b508" * (cast_expression "(code *)PTR_malloc_0005b508" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))))) , (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        iVar2 = -1;\n        *puVar4 = 0xc;\n      }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }" else (compound_statement "{\n        (*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);\n        inptr = src;\n        insize = srclen;\n        outptr = pcVar5;\n        outsize = (size_t)pcVar6;\n        do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }\n        if (*resultp == pcVar5) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar7 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(pcVar5);\n        iVar2 = -1;\n        *puVar4 = uVar7;\n      }" { (expression_statement "(*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(cd,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cd,0,0,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "inptr = src;" (assignment_expression "inptr = src" identifier = identifier) ;) (expression_statement "insize = srclen;" (assignment_expression "insize = srclen" identifier = identifier) ;) (expression_statement "outptr = pcVar5;" (assignment_expression "outptr = pcVar5" identifier = identifier) ;) (expression_statement "outsize = (size_t)pcVar6;" (assignment_expression "outsize = (size_t)pcVar6" identifier = (cast_expression "(size_t)pcVar6" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (do_statement "do {\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        } while (iVar2 != -1);" do (compound_statement "{\n          if (insize == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);\n        }" { (if_statement "if (insize == 0) goto LAB_00042618;" if (parenthesized_expression "(insize == 0)" ( (binary_expression "insize == 0" identifier == number_literal) )) (goto_statement "goto LAB_00042618;" goto statement_identifier ;)) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(cd,&inptr,&insize,&outptr,&outsize)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cd,&inptr,&insize,&outptr,&outsize)" ( identifier , (pointer_expression "&inptr" & identifier) , (pointer_expression "&insize" & identifier) , (pointer_expression "&outptr" & identifier) , (pointer_expression "&outsize" & identifier) )))) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }" if (parenthesized_expression "(*piVar3 == 0x16)" ( (binary_expression "*piVar3 == 0x16" (pointer_expression "*piVar3" * identifier) == number_literal) )) (compound_statement "{\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);\n          if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }\n        }" { (labeled_statement "LAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(cd,0,0,&outptr,&outsize)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cd,0,0,&outptr,&outsize)" ( identifier , number_literal , number_literal , (pointer_expression "&outptr" & identifier) , (pointer_expression "&outsize" & identifier) )))) ;)) (if_statement "if (iVar2 != -1) {\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n            if (outsize != 0) goto LAB_00042760;\n            iVar2 = 0;\n            *resultp = pcVar5;\n            *lengthp = (size_t)pcVar6;\n            goto LAB_0004265c;\n          }" { (if_statement "if (outsize != 0) goto LAB_00042760;" if (parenthesized_expression "(outsize != 0)" ( (binary_expression "outsize != 0" identifier != number_literal) )) (goto_statement "goto LAB_00042760;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "*resultp = pcVar5;" (assignment_expression "*resultp = pcVar5" (pointer_expression "*resultp" * identifier) = identifier) ;) (expression_statement "*lengthp = (size_t)pcVar6;" (assignment_expression "*lengthp = (size_t)pcVar6" (pointer_expression "*lengthp" * identifier) = (cast_expression "(size_t)pcVar6" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_0004265c;" goto statement_identifier ;) })) })) (if_statement "if (*resultp == pcVar5) goto LAB_00042744;" if (parenthesized_expression "(*resultp == pcVar5)" ( (binary_expression "*resultp == pcVar5" (pointer_expression "*resultp" * identifier) == identifier) )) (goto_statement "goto LAB_00042744;" goto statement_identifier ;)) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar4;" (assignment_expression "uVar7 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "(*(code *)PTR_free_0005b59c)(pcVar5);" (call_expression "(*(code *)PTR_free_0005b59c)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0005b59c)" ( (pointer_expression "*(code *)PTR_free_0005b59c" * (cast_expression "(code *)PTR_free_0005b59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "*puVar4 = uVar7;" (assignment_expression "*puVar4 = uVar7" (pointer_expression "*puVar4" * identifier) = identifier) ;) }))) }))) }))) (labeled_statement "LAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0005b564)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005b564)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005b564)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0005b564" * (cast_expression "(code *)PTR___stack_chk_fail_0005b564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00042760:\n  iVar2 = (*(code *)PTR_abort_0005b42c)();" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_abort_0005b42c)();" (assignment_expression "iVar2 = (*(code *)PTR_abort_0005b42c)()" identifier = (call_expression "(*(code *)PTR_abort_0005b42c)()" (parenthesized_expression "(*(code *)PTR_abort_0005b42c)" ( (pointer_expression "*(code *)PTR_abort_0005b42c" * (cast_expression "(code *)PTR_abort_0005b42c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;)) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4\nmem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}\n\n" (function_definition "undefined4\nmem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}" type_identifier (function_declarator "mem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 local_103c;" type_identifier identifier ;) (declaration "int local_1038;" primitive_type identifier ;) (declaration "undefined1 *local_1034;" type_identifier (pointer_declarator "*local_1034" * identifier) ;) (declaration "undefined1 *local_1030;" type_identifier (pointer_declarator "*local_1030" * identifier) ;) (declaration "undefined1 auStack_102c [4096];" type_identifier (array_declarator "auStack_102c [4096]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0005b58c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0005b58c" identifier = identifier) ;) (expression_statement "puVar7 = (undefined1 *)0x0;" (assignment_expression "puVar7 = (undefined1 *)0x0" identifier = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0005b58c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0005b58c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0005b58c" * (cast_expression "(int *)PTR___stack_chk_guard_0005b58c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_103c = param_1;" (assignment_expression "local_103c = param_1" identifier = identifier) ;) (expression_statement "local_1038 = param_2;" (assignment_expression "local_1038 = param_2" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }" { (do_statement "do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);" do (compound_statement "{\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    }" { (expression_statement "local_1030 = (undefined1 *)0x1000;" (assignment_expression "local_1030 = (undefined1 *)0x1000" identifier = (cast_expression "(undefined1 *)0x1000" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1034 = auStack_102c;" (assignment_expression "local_1034 = auStack_102c" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" ( identifier , (pointer_expression "&local_103c" & identifier) , (pointer_expression "&local_1038" & identifier) , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" if (parenthesized_expression "(*piVar3 != 7)" ( (binary_expression "*piVar3 != 7" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (*piVar3 != 0x16) goto LAB_0004265c;" if (parenthesized_expression "(*piVar3 != 0x16)" ( (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" * identifier) != number_literal) )) (goto_statement "goto LAB_0004265c;" goto statement_identifier ;)) (break_statement "break;" break ;) })) })) (expression_statement "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);" (assignment_expression "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier = (binary_expression "local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier + (parenthesized_expression "((int)puVar7 - (int)auStack_102c)" ( (binary_expression "(int)puVar7 - (int)auStack_102c" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)auStack_102c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) }) while (parenthesized_expression "(local_1038 != 0)" ( (binary_expression "local_1038 != 0" identifier != number_literal) )) ;) })) (expression_statement "local_1030 = (undefined1 *)0x1000;" (assignment_expression "local_1030 = (undefined1 *)0x1000" identifier = (cast_expression "(undefined1 *)0x1000" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1034 = auStack_102c;" (assignment_expression "local_1034 = auStack_102c" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,&local_1034,&local_1030)" ( identifier , number_literal , number_literal , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }" { (labeled_statement "LAB_00042744:\n    uVar5 = 0xffffffff;" statement_identifier : (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;)) }) (else_clause "else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" else (compound_statement "{\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" { (expression_statement "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);" (assignment_expression "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier = (binary_expression "local_1034 + ((int)puVar7 - (int)auStack_102c)" identifier + (parenthesized_expression "((int)puVar7 - (int)auStack_102c)" ( (binary_expression "(int)puVar7 - (int)auStack_102c" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)auStack_102c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" if (parenthesized_expression "(puVar7 == (undefined1 *)0x0)" ( (binary_expression "puVar7 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = 0;\n      *param_5 = 0;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) }) (else_clause "else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" else (compound_statement "{\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" { (expression_statement "puVar6 = (undefined1 *)*param_4;" (assignment_expression "puVar6 = (undefined1 *)*param_4" identifier = (cast_expression "(undefined1 *)*param_4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier))) ;) (if_statement "if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" if (parenthesized_expression "(((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         ))" ( (binary_expression "((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )" (parenthesized_expression "((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7))" ( (binary_expression "(puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)" (parenthesized_expression "(puVar6 == (undefined1 *)0x0)" ( (binary_expression "puVar6 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((undefined1 *)*param_5 < puVar7)" ( (binary_expression "(undefined1 *)*param_5 < puVar7" (cast_expression "(undefined1 *)*param_5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_5" * identifier)) < identifier) ))) )) && (parenthesized_expression "(puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )" ( (comma_expression "puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0005b508)(puVar7)" (parenthesized_expression "(*(code *)PTR_malloc_0005b508)" ( (pointer_expression "*(code *)PTR_malloc_0005b508" * (cast_expression "(code *)PTR_malloc_0005b508" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))))) , (binary_expression "puVar6 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }" { (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" else (compound_statement "{\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" { (expression_statement "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,0,0)" ( identifier , number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "local_103c = param_1;" (assignment_expression "local_103c = param_1" identifier = identifier) ;) (expression_statement "local_1038 = param_2;" (assignment_expression "local_1038 = param_2" identifier = identifier) ;) (expression_statement "local_1034 = puVar6;" (assignment_expression "local_1034 = puVar6" identifier = identifier) ;) (expression_statement "local_1030 = puVar7;" (assignment_expression "local_1030 = puVar7" identifier = identifier) ;) (do_statement "do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);" do (compound_statement "{\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        }" { (if_statement "if (local_1038 == 0) goto LAB_00042618;" if (parenthesized_expression "(local_1038 == 0)" ( (binary_expression "local_1038 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00042618;" goto statement_identifier ;)) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" ( identifier , (pointer_expression "&local_103c" & identifier) , (pointer_expression "&local_1038" & identifier) , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }" if (parenthesized_expression "(*piVar3 == 0x16)" ( (binary_expression "*piVar3 == 0x16" (pointer_expression "*piVar3" * identifier) == number_literal) )) (compound_statement "{\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }" { (labeled_statement "LAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" identifier = (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" ( (pointer_expression "*(code *)PTR_iconv_0005b5cc" * (cast_expression "(code *)PTR_iconv_0005b5cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0,0,&local_1034,&local_1030)" ( identifier , number_literal , number_literal , (pointer_expression "&local_1034" & identifier) , (pointer_expression "&local_1030" & identifier) )))) ;)) (if_statement "if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }" { (if_statement "if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;" if (parenthesized_expression "(local_1030 != (undefined1 *)0x0)" ( (binary_expression "local_1030 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00042760;" goto statement_identifier ;)) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*param_4 = (int)puVar6;" (assignment_expression "*param_4 = (int)puVar6" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*param_5 = (uint)puVar7;" (assignment_expression "*param_5 = (uint)puVar7" (pointer_expression "*param_5" * identifier) = (cast_expression "(uint)puVar7" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_0004265c;" goto statement_identifier ;) })) })) (if_statement "if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;" if (parenthesized_expression "((undefined1 *)*param_4 == puVar6)" ( (binary_expression "(undefined1 *)*param_4 == puVar6" (cast_expression "(undefined1 *)*param_4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) == identifier) )) (goto_statement "goto LAB_00042744;" goto statement_identifier ;)) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" ( (pointer_expression "*(code *)PTR___errno_location_0005b4b4" * (cast_expression "(code *)PTR___errno_location_0005b4b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar8 = *puVar4;" (assignment_expression "uVar8 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "(*(code *)PTR_free_0005b59c)(puVar6);" (call_expression "(*(code *)PTR_free_0005b59c)(puVar6)" (parenthesized_expression "(*(code *)PTR_free_0005b59c)" ( (pointer_expression "*(code *)PTR_free_0005b59c" * (cast_expression "(code *)PTR_free_0005b59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*puVar4 = uVar8;" (assignment_expression "*puVar4 = uVar8" (pointer_expression "*puVar4" * identifier) = identifier) ;) }))) }))) }))) (labeled_statement "LAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0005b564)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005b564)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005b564)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0005b564" * (cast_expression "(code *)PTR___stack_chk_fail_0005b564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();" statement_identifier : (expression_statement "uVar5 = (*(code *)PTR_abort_0005b42c)();" (assignment_expression "uVar5 = (*(code *)PTR_abort_0005b42c)()" identifier = (call_expression "(*(code *)PTR_abort_0005b42c)()" (parenthesized_expression "(*(code *)PTR_abort_0005b42c)" ( (pointer_expression "*(code *)PTR_abort_0005b42c" * (cast_expression "(code *)PTR_abort_0005b42c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;)) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) < IDENT) ))) )) && (parenthesized_expression ( (comma_expression (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 ( IDENT ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (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 = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (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 ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (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 ( IDENT , LIT , LIT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == IDENT) )) (goto_statement goto 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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) }))) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;)) (return_statement return IDENT ;) })))
(function_definition "undefined4\nmem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}" (type_identifier "undefined4") (function_declarator "mem_cd_iconv(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)" (identifier "mem_cd_iconv") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int *param_4,uint *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  undefined4 uVar8;\n  undefined4 local_103c;\n  int local_1038;\n  undefined1 *local_1034;\n  undefined1 *local_1030;\n  undefined1 auStack_102c [4096];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_0005b58c;\n  puVar7 = (undefined1 *)0x0;\n  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;\n  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n  local_103c = param_1;\n  local_1038 = param_2;\n  if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }\n  local_1030 = (undefined1 *)0x1000;\n  local_1034 = auStack_102c;\n  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n  if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }\nLAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }\n  (*(code *)PTR___stack_chk_fail_0005b564)();\nLAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();\n  return uVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined1 *puVar7;" (type_identifier "undefined1") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 local_103c;" (type_identifier "undefined4") (identifier "local_103c") (; ";")) (declaration "int local_1038;" (primitive_type "int") (identifier "local_1038") (; ";")) (declaration "undefined1 *local_1034;" (type_identifier "undefined1") (pointer_declarator "*local_1034" (* "*") (identifier "local_1034")) (; ";")) (declaration "undefined1 *local_1030;" (type_identifier "undefined1") (pointer_declarator "*local_1030" (* "*") (identifier "local_1030")) (; ";")) (declaration "undefined1 auStack_102c [4096];" (type_identifier "undefined1") (array_declarator "auStack_102c [4096]" (identifier "auStack_102c") ([ "[") (number_literal "4096") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_0005b58c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0005b58c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_0005b58c")) (; ";")) (expression_statement "puVar7 = (undefined1 *)0x0;" (assignment_expression "puVar7 = (undefined1 *)0x0" (identifier "puVar7") (= "=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0005b58c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0005b58c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0005b58c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0005b58c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0005b58c")))) (; ";")) (expression_statement "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" (( "(") (pointer_expression "*(code *)PTR_iconv_0005b5cc" (* "*") (cast_expression "(code *)PTR_iconv_0005b5cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iconv_0005b5cc"))) () ")")) (argument_list "(param_3,0,0,0,0)" (( "(") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_103c = param_1;" (assignment_expression "local_103c = param_1" (identifier "local_103c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_1038 = param_2;" (assignment_expression "local_1038 = param_2" (identifier "local_1038") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 != 0) {\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);\n  }" ({ "{") (do_statement "do {\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    } while (local_1038 != 0);" (do "do") (compound_statement "{\n      local_1030 = (undefined1 *)0x1000;\n      local_1034 = auStack_102c;\n      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;\n      if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }\n      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    }" ({ "{") (expression_statement "local_1030 = (undefined1 *)0x1000;" (assignment_expression "local_1030 = (undefined1 *)0x1000" (identifier "local_1030") (= "=") (cast_expression "(undefined1 *)0x1000" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1000"))) (; ";")) (expression_statement "local_1034 = auStack_102c;" (assignment_expression "local_1034 = auStack_102c" (identifier "local_1034") (= "=") (identifier "auStack_102c")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)\n      ;" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" (( "(") (pointer_expression "*(code *)PTR_iconv_0005b5cc" (* "*") (cast_expression "(code *)PTR_iconv_0005b5cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iconv_0005b5cc"))) () ")")) (argument_list "(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (( "(") (identifier "param_3") (, ",") (pointer_expression "&local_103c" (& "&") (identifier "local_103c")) (, ",") (pointer_expression "&local_1038" (& "&") (identifier "local_1038")) (, ",") (pointer_expression "&local_1034" (& "&") (identifier "local_1034")) (, ",") (pointer_expression "&local_1030" (& "&") (identifier "local_1030")) () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }\n      }" ({ "{") (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0005b4b4" (* "*") (cast_expression "(code *)PTR___errno_location_0005b4b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0005b4b4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*piVar3 != 7) {\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" (if "if") (parenthesized_expression "(*piVar3 != 7)" (( "(") (binary_expression "*piVar3 != 7" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "7")) () ")")) (compound_statement "{\n          uVar5 = 0xffffffff;\n          if (*piVar3 != 0x16) goto LAB_0004265c;\n          break;\n        }" ({ "{") (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (*piVar3 != 0x16) goto LAB_0004265c;" (if "if") (parenthesized_expression "(*piVar3 != 0x16)" (( "(") (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0x16")) () ")")) (goto_statement "goto LAB_0004265c;" (goto "goto") (statement_identifier "LAB_0004265c") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);" (assignment_expression "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c)" (identifier "puVar7") (= "=") (binary_expression "local_1034 + ((int)puVar7 - (int)auStack_102c)" (identifier "local_1034") (+ "+") (parenthesized_expression "((int)puVar7 - (int)auStack_102c)" (( "(") (binary_expression "(int)puVar7 - (int)auStack_102c" (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")) (- "-") (cast_expression "(int)auStack_102c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "auStack_102c"))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_1038 != 0)" (( "(") (binary_expression "local_1038 != 0" (identifier "local_1038") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "local_1030 = (undefined1 *)0x1000;" (assignment_expression "local_1030 = (undefined1 *)0x1000" (identifier "local_1030") (= "=") (cast_expression "(undefined1 *)0x1000" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1000"))) (; ";")) (expression_statement "local_1034 = auStack_102c;" (assignment_expression "local_1034 = auStack_102c" (identifier "local_1034") (= "=") (identifier "auStack_102c")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" (( "(") (pointer_expression "*(code *)PTR_iconv_0005b5cc" (* "*") (cast_expression "(code *)PTR_iconv_0005b5cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iconv_0005b5cc"))) () ")")) (argument_list "(param_3,0,0,&local_1034,&local_1030)" (( "(") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_1034" (& "&") (identifier "local_1034")) (, ",") (pointer_expression "&local_1030" (& "&") (identifier "local_1030")) () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }\n  else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_00042744:\n    uVar5 = 0xffffffff;\n  }" ({ "{") (labeled_statement "LAB_00042744:\n    uVar5 = 0xffffffff;" (statement_identifier "LAB_00042744") (: ":") (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";"))) (} "}")) (else_clause "else {\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);\n    if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }\n  }" ({ "{") (expression_statement "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);" (assignment_expression "puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c)" (identifier "puVar7") (= "=") (binary_expression "local_1034 + ((int)puVar7 - (int)auStack_102c)" (identifier "local_1034") (+ "+") (parenthesized_expression "((int)puVar7 - (int)auStack_102c)" (( "(") (binary_expression "(int)puVar7 - (int)auStack_102c" (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")) (- "-") (cast_expression "(int)auStack_102c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "auStack_102c"))) () ")")))) (; ";")) (if_statement "if (puVar7 == (undefined1 *)0x0) {\n      uVar5 = 0;\n      *param_5 = 0;\n    }\n    else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" (if "if") (parenthesized_expression "(puVar7 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar7 == (undefined1 *)0x0" (identifier "puVar7") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar5 = 0;\n      *param_5 = 0;\n    }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" (else "else") (compound_statement "{\n      puVar6 = (undefined1 *)*param_4;\n      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }\n    }" ({ "{") (expression_statement "puVar6 = (undefined1 *)*param_4;" (assignment_expression "puVar6 = (undefined1 *)*param_4" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)*param_4" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_4" (* "*") (identifier "param_4")))) (; ";")) (if_statement "if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )) {\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }\n      else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" (if "if") (parenthesized_expression "(((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         ))" (( "(") (binary_expression "((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&\n         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )" (parenthesized_expression "((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7))" (( "(") (binary_expression "(puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)" (parenthesized_expression "(puVar6 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar6 == (undefined1 *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "((undefined1 *)*param_5 < puVar7)" (( "(") (binary_expression "(undefined1 *)*param_5 < puVar7" (cast_expression "(undefined1 *)*param_5" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (< "<") (identifier "puVar7")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0\n         )" (( "(") (comma_expression "puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_0005b508)(puVar7)" (parenthesized_expression "(*(code *)PTR_malloc_0005b508)" (( "(") (pointer_expression "*(code *)PTR_malloc_0005b508" (* "*") (cast_expression "(code *)PTR_malloc_0005b508" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0005b508"))) () ")")) (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")"))))) (, ",") (binary_expression "puVar6 == (undefined1 *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar5 = 0xffffffff;\n        *puVar4 = 0xc;\n      }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0005b4b4" (* "*") (cast_expression "(code *)PTR___errno_location_0005b4b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0005b4b4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0xc")) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);\n        local_103c = param_1;\n        local_1038 = param_2;\n        local_1034 = puVar6;\n        local_1030 = puVar7;\n        do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);\n        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();\n        if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }\n        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;\n        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();\n        uVar8 = *puVar4;\n        (*(code *)PTR_free_0005b59c)(puVar6);\n        uVar5 = 0xffffffff;\n        *puVar4 = uVar8;\n      }" ({ "{") (expression_statement "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);" (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" (( "(") (pointer_expression "*(code *)PTR_iconv_0005b5cc" (* "*") (cast_expression "(code *)PTR_iconv_0005b5cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iconv_0005b5cc"))) () ")")) (argument_list "(param_3,0,0,0,0)" (( "(") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_103c = param_1;" (assignment_expression "local_103c = param_1" (identifier "local_103c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_1038 = param_2;" (assignment_expression "local_1038 = param_2" (identifier "local_1038") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_1034 = puVar6;" (assignment_expression "local_1034 = puVar6" (identifier "local_1034") (= "=") (identifier "puVar6")) (; ";")) (expression_statement "local_1030 = puVar7;" (assignment_expression "local_1030 = puVar7" (identifier "local_1030") (= "=") (identifier "puVar7")) (; ";")) (do_statement "do {\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        } while (iVar2 != -1);" (do "do") (compound_statement "{\n          if (local_1038 == 0) goto LAB_00042618;\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);\n        }" ({ "{") (if_statement "if (local_1038 == 0) goto LAB_00042618;" (if "if") (parenthesized_expression "(local_1038 == 0)" (( "(") (binary_expression "local_1038 == 0" (identifier "local_1038") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00042618;" (goto "goto") (statement_identifier "LAB_00042618") (; ";"))) (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_iconv_0005b5cc)\n                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" (( "(") (pointer_expression "*(code *)PTR_iconv_0005b5cc" (* "*") (cast_expression "(code *)PTR_iconv_0005b5cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iconv_0005b5cc"))) () ")")) (argument_list "(param_3,&local_103c,&local_1038,&local_1034,&local_1030)" (( "(") (identifier "param_3") (, ",") (pointer_expression "&local_103c" (& "&") (identifier "local_103c")) (, ",") (pointer_expression "&local_1038" (& "&") (identifier "local_1038")) (, ",") (pointer_expression "&local_1034" (& "&") (identifier "local_1034")) (, ",") (pointer_expression "&local_1030" (& "&") (identifier "local_1030")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (expression_statement "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0005b4b4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0005b4b4" (* "*") (cast_expression "(code *)PTR___errno_location_0005b4b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0005b4b4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*piVar3 == 0x16) {\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }" (if "if") (parenthesized_expression "(*piVar3 == 0x16)" (( "(") (binary_expression "*piVar3 == 0x16" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (number_literal "0x16")) () ")")) (compound_statement "{\nLAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);\n          if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }\n        }" ({ "{") (labeled_statement "LAB_00042618:\n          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (statement_identifier "LAB_00042618") (: ":") (expression_statement "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);" (assignment_expression "iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030)" (parenthesized_expression "(*(code *)PTR_iconv_0005b5cc)" (( "(") (pointer_expression "*(code *)PTR_iconv_0005b5cc" (* "*") (cast_expression "(code *)PTR_iconv_0005b5cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iconv_0005b5cc"))) () ")")) (argument_list "(param_3,0,0,&local_1034,&local_1030)" (( "(") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_1034" (& "&") (identifier "local_1034")) (, ",") (pointer_expression "&local_1030" (& "&") (identifier "local_1030")) () ")")))) (; ";"))) (if_statement "if (iVar2 != -1) {\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }" (if "if") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;\n            uVar5 = 0;\n            *param_4 = (int)puVar6;\n            *param_5 = (uint)puVar7;\n            goto LAB_0004265c;\n          }" ({ "{") (if_statement "if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;" (if "if") (parenthesized_expression "(local_1030 != (undefined1 *)0x0)" (( "(") (binary_expression "local_1030 != (undefined1 *)0x0" (identifier "local_1030") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00042760;" (goto "goto") (statement_identifier "LAB_00042760") (; ";"))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_4 = (int)puVar6;" (assignment_expression "*param_4 = (int)puVar6" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6"))) (; ";")) (expression_statement "*param_5 = (uint)puVar7;" (assignment_expression "*param_5 = (uint)puVar7" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (cast_expression "(uint)puVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar7"))) (; ";")) (goto_statement "goto LAB_0004265c;" (goto "goto") (statement_identifier "LAB_0004265c") (; ";")) (} "}"))) (} "}"))) (if_statement "if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;" (if "if") (parenthesized_expression "((undefined1 *)*param_4 == puVar6)" (( "(") (binary_expression "(undefined1 *)*param_4 == puVar6" (cast_expression "(undefined1 *)*param_4" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (== "==") (identifier "puVar6")) () ")")) (goto_statement "goto LAB_00042744;" (goto "goto") (statement_identifier "LAB_00042744") (; ";"))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0005b4b4)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0005b4b4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0005b4b4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0005b4b4" (* "*") (cast_expression "(code *)PTR___errno_location_0005b4b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0005b4b4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar8 = *puVar4;" (assignment_expression "uVar8 = *puVar4" (identifier "uVar8") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "(*(code *)PTR_free_0005b59c)(puVar6);" (call_expression "(*(code *)PTR_free_0005b59c)(puVar6)" (parenthesized_expression "(*(code *)PTR_free_0005b59c)" (( "(") (pointer_expression "*(code *)PTR_free_0005b59c" (* "*") (cast_expression "(code *)PTR_free_0005b59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0005b59c"))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*puVar4 = uVar8;" (assignment_expression "*puVar4 = uVar8" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar8")) (; ";")) (} "}")))) (} "}")))) (} "}")))) (labeled_statement "LAB_0004265c:\n  if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" (statement_identifier "LAB_0004265c") (: ":") (if_statement "if (local_2c == *(int *)puVar1) {\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar1)" (( "(") (binary_expression "local_2c == *(int *)puVar1" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return uVar5;\n  }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_0005b564)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005b564)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005b564)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0005b564" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0005b564" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0005b564"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00042760:\n  uVar5 = (*(code *)PTR_abort_0005b42c)();" (statement_identifier "LAB_00042760") (: ":") (expression_statement "uVar5 = (*(code *)PTR_abort_0005b42c)();" (assignment_expression "uVar5 = (*(code *)PTR_abort_0005b42c)()" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_abort_0005b42c)()" (parenthesized_expression "(*(code *)PTR_abort_0005b42c)" (( "(") (pointer_expression "*(code *)PTR_abort_0005b42c" (* "*") (cast_expression "(code *)PTR_abort_0005b42c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_0005b42c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

int function_1(char *src,size_t var_1,type_1 cd,char **resultp,size_t *lengthp)

{
  type_2 *puVar1;
  int var_2;
  int *piVar3;
  type_3 *puVar4;
  char *var_6;
  char *var_5;
  type_3 uVar7;
  char *inptr;
  size_t var_4;
  char *var_3;
  size_t var_7;
  type_4 tmp;
  int var_8;
  
  puVar1 = PTR___stack_chk_guard_0005b58c;
  var_5 = (char *)0x0;
  var_8 = *(int *)PTR___stack_chk_guard_0005b58c;
  (*(type_5 *)PTR_iconv_0005b5cc)(cd,0,0,0,0);
  inptr = src;
  var_4 = var_1;
  if (var_1 != 0) {
    do {
      var_7 = 0x1000;
      var_3 = (char *)&tmp;
      var_2 = (*(type_5 *)PTR_iconv_0005b5cc)(cd,&inptr,&var_4,&var_3,&var_7);
      if (var_2 == -1) {
        piVar3 = (int *)(*(type_5 *)PTR___errno_location_0005b4b4)();
        if (*piVar3 != 7) {
          var_2 = -1;
          if (*piVar3 != 0x16) goto LAB_0004265c;
          break;
        }
      }
      var_5 = var_3 + ((int)var_5 - (int)&tmp);
    } while (var_4 != 0);
  }
  var_7 = 0x1000;
  var_3 = (char *)&tmp;
  var_2 = (*(type_5 *)PTR_iconv_0005b5cc)(cd,0,0,&var_3,&var_7);
  if (var_2 == -1) {
LAB_00042744:
    var_2 = -1;
  }
  else {
    var_5 = var_3 + ((int)var_5 - (int)&tmp);
    if (var_5 == (char *)0x0) {
      var_2 = 0;
      *lengthp = 0;
    }
    else {
      var_6 = *resultp;
      if (((var_6 == (char *)0x0) || ((char *)*lengthp < var_5)) &&
         (var_6 = (char *)(*(type_5 *)PTR_malloc_0005b508)(var_5), var_6 == (char *)0x0)) {
        puVar4 = (type_3 *)(*(type_5 *)PTR___errno_location_0005b4b4)();
        var_2 = -1;
        *puVar4 = 0xc;
      }
      else {
        (*(type_5 *)PTR_iconv_0005b5cc)(cd,0,0,0,0);
        inptr = src;
        var_4 = var_1;
        var_3 = var_6;
        var_7 = (size_t)var_5;
        do {
          if (var_4 == 0) goto LAB_00042618;
          var_2 = (*(type_5 *)PTR_iconv_0005b5cc)(cd,&inptr,&var_4,&var_3,&var_7);
        } while (var_2 != -1);
        piVar3 = (int *)(*(type_5 *)PTR___errno_location_0005b4b4)();
        if (*piVar3 == 0x16) {
LAB_00042618:
          var_2 = (*(type_5 *)PTR_iconv_0005b5cc)(cd,0,0,&var_3,&var_7);
          if (var_2 != -1) {
            if (var_7 != 0) goto LAB_00042760;
            var_2 = 0;
            *resultp = var_6;
            *lengthp = (size_t)var_5;
            goto LAB_0004265c;
          }
        }
        if (*resultp == var_6) goto LAB_00042744;
        puVar4 = (type_3 *)(*(type_5 *)PTR___errno_location_0005b4b4)();
        uVar7 = *puVar4;
        (*(type_5 *)PTR_free_0005b59c)(var_6);
        var_2 = -1;
        *puVar4 = uVar7;
      }
    }
  }
LAB_0004265c:
  if (var_8 == *(int *)puVar1) {
    return var_2;
  }
  (*(type_5 *)PTR___stack_chk_fail_0005b564)();
LAB_00042760:
  var_2 = (*(type_5 *)PTR_abort_0005b42c)();
  return var_2;
}


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

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

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined1 *puVar6;
  undefined1 *puVar7;
  undefined4 uVar8;
  undefined4 local_103c;
  int local_1038;
  undefined1 *local_1034;
  undefined1 *local_1030;
  undefined1 auStack_102c [4096];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_0005b58c;
  puVar7 = (undefined1 *)0x0;
  local_2c = *(int *)PTR___stack_chk_guard_0005b58c;
  (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);
  local_103c = param_1;
  local_1038 = param_2;
  if (param_2 != 0) {
    do {
      local_1030 = (undefined1 *)0x1000;
      local_1034 = auStack_102c;
      iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,&local_103c,&local_1038,&local_1034,&local_1030)
      ;
      if (iVar2 == -1) {
        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();
        if (*piVar3 != 7) {
          uVar5 = 0xffffffff;
          if (*piVar3 != 0x16) goto LAB_0004265c;
          break;
        }
      }
      puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);
    } while (local_1038 != 0);
  }
  local_1030 = (undefined1 *)0x1000;
  local_1034 = auStack_102c;
  iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);
  if (iVar2 == -1) {
LAB_00042744:
    uVar5 = 0xffffffff;
  }
  else {
    puVar7 = local_1034 + ((int)puVar7 - (int)auStack_102c);
    if (puVar7 == (undefined1 *)0x0) {
      uVar5 = 0;
      *param_5 = 0;
    }
    else {
      puVar6 = (undefined1 *)*param_4;
      if (((puVar6 == (undefined1 *)0x0) || ((undefined1 *)*param_5 < puVar7)) &&
         (puVar6 = (undefined1 *)(*(code *)PTR_malloc_0005b508)(puVar7), puVar6 == (undefined1 *)0x0
         )) {
        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();
        uVar5 = 0xffffffff;
        *puVar4 = 0xc;
      }
      else {
        (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,0,0);
        local_103c = param_1;
        local_1038 = param_2;
        local_1034 = puVar6;
        local_1030 = puVar7;
        do {
          if (local_1038 == 0) goto LAB_00042618;
          iVar2 = (*(code *)PTR_iconv_0005b5cc)
                            (param_3,&local_103c,&local_1038,&local_1034,&local_1030);
        } while (iVar2 != -1);
        piVar3 = (int *)(*(code *)PTR___errno_location_0005b4b4)();
        if (*piVar3 == 0x16) {
LAB_00042618:
          iVar2 = (*(code *)PTR_iconv_0005b5cc)(param_3,0,0,&local_1034,&local_1030);
          if (iVar2 != -1) {
            if (local_1030 != (undefined1 *)0x0) goto LAB_00042760;
            uVar5 = 0;
            *param_4 = (int)puVar6;
            *param_5 = (uint)puVar7;
            goto LAB_0004265c;
          }
        }
        if ((undefined1 *)*param_4 == puVar6) goto LAB_00042744;
        puVar4 = (undefined4 *)(*(code *)PTR___errno_location_0005b4b4)();
        uVar8 = *puVar4;
        (*(code *)PTR_free_0005b59c)(puVar6);
        uVar5 = 0xffffffff;
        *puVar4 = uVar8;
      }
    }
  }
LAB_0004265c:
  if (local_2c == *(int *)puVar1) {
    return uVar5;
  }
  (*(code *)PTR___stack_chk_fail_0005b564)();
LAB_00042760:
  uVar5 = (*(code *)PTR_abort_0005b42c)();
  return uVar5;
}

