
int Curl_getaddrinfo_ex(char *nodename,char *servname,addrinfo *hints,Curl_addrinfo **result)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 *puVar4;
  Curl_addrinfo *pCVar5;
  int iVar6;
  char *pcVar7;
  sockaddr *psVar8;
  curl_socklen_t cVar9;
  int iVar10;
  undefined2 uVar12;
  uint uVar11;
  uint uVar13;
  int iVar14;
  Curl_addrinfo *pCVar15;
  Curl_addrinfo *pCVar16;
  uint uVar17;
  undefined4 *puVar18;
  addrinfo *paVar19;
  uint *puVar20;
  code *pcVar21;
  undefined *puVar22;
  undefined4 *puVar23;
  int local_3c;
  addrinfo *aihead;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar22 = PTR_getaddrinfo_000a6bb4;
  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;
  *result = (Curl_addrinfo *)0x0;
  local_3c = (*(code *)puVar22)();
  puVar2 = PTR_Curl_cstrdup_000a6230;
  puVar22 = PTR_Curl_cmalloc_000a6198;
  uVar12 = SUB42(servname,0);
  if (local_3c != 0) goto LAB_00054994;
  if (aihead == (addrinfo *)0x0) {
LAB_00054980:
    pCVar15 = (Curl_addrinfo *)0x0;
    local_3c = -2;
  }
  else {
    pCVar15 = (Curl_addrinfo *)0x0;
    pCVar16 = (Curl_addrinfo *)0x0;
    paVar19 = aihead;
    do {
      uVar12 = SUB42(servname,0);
      uVar17 = 0x10;
      pCVar5 = pCVar16;
      if (paVar19->ai_family == 2) {
        psVar8 = paVar19->ai_addr;
LAB_00054880:
        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&
           (uVar17 <= paVar19->ai_addrlen)) {
          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);
          if (pCVar5 != (Curl_addrinfo *)0x0) {
            iVar14 = paVar19->ai_flags;
            iVar10 = paVar19->ai_socktype;
            iVar6 = paVar19->ai_protocol;
            pcVar21 = *(code **)puVar22;
            pCVar5->ai_family = paVar19->ai_family;
            pCVar5->ai_flags = iVar14;
            pCVar5->ai_socktype = iVar10;
            pCVar5->ai_protocol = iVar6;
            pCVar5->ai_addrlen = uVar17;
            pCVar5->ai_addr = (sockaddr *)0x0;
            pCVar5->ai_canonname = (char *)0x0;
            pCVar5->ai_next = (Curl_addrinfo *)0x0;
            psVar8 = (sockaddr *)(*pcVar21)(uVar17);
            uVar12 = (undefined2)iVar10;
            pCVar5->ai_addr = psVar8;
            if (psVar8 != (sockaddr *)0x0) {
              servname = (char *)paVar19->ai_addr;
              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);
              if (paVar19->ai_canonname != (char *)0x0) {
                pcVar7 = (char *)(**(code **)puVar2)();
                uVar12 = SUB42(servname,0);
                pCVar5->ai_canonname = pcVar7;
                puVar1 = PTR_Curl_cfree_000a6144;
                if (pcVar7 == (char *)0x0) {
                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);
                  (**(code **)puVar1)(pCVar5);
                  goto LAB_000549f4;
                }
              }
              if (pCVar15 == (Curl_addrinfo *)0x0) {
                pCVar15 = pCVar5;
              }
              if (pCVar16 != (Curl_addrinfo *)0x0) {
                pCVar16->ai_next = pCVar5;
              }
              goto LAB_00054944;
            }
            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);
          }
LAB_000549f4:
          if (aihead != (addrinfo *)0x0) {
            (*(code *)PTR_freeaddrinfo_000a6c20)();
          }
          Curl_freeaddrinfo(pCVar15);
          local_3c = -10;
          *result = (Curl_addrinfo *)0x0;
          goto LAB_00054994;
        }
      }
      else if (paVar19->ai_family == 10) {
        uVar17 = 0x1c;
        psVar8 = paVar19->ai_addr;
        goto LAB_00054880;
      }
LAB_00054944:
      uVar12 = SUB42(servname,0);
      paVar19 = paVar19->ai_next;
      pCVar16 = pCVar5;
    } while (paVar19 != (addrinfo *)0x0);
    if (aihead != (addrinfo *)0x0) {
      (*(code *)PTR_freeaddrinfo_000a6c20)();
    }
    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;
  }
  *result = pCVar15;
LAB_00054994:
  if (puVar4 == *(undefined4 **)puVar3) {
    return local_3c;
  }
  puVar22 = PTR___stack_chk_fail_000a6c54;
  (*(code *)PTR___stack_chk_fail_000a6c54)();
  if ((puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)) {
    return 0;
  }
  iVar10 = puVar4[2];
  puVar18 = *(undefined4 **)(puVar22 + 0x516dc);
  iVar6 = 4;
  puVar23 = *(undefined4 **)(puVar22 + 0x517cc);
  pCVar15 = (Curl_addrinfo *)0x0;
  pCVar16 = (Curl_addrinfo *)0x0;
  while( true ) {
    cVar9 = 0x10;
    if (iVar10 == 10) {
      cVar9 = 0x1c;
    }
    pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);
    if (pCVar5 == (Curl_addrinfo *)0x0) break;
    pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);
    pCVar5->ai_canonname = pcVar7;
    if (pcVar7 == (char *)0x0) {
      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);
      break;
    }
    psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);
    pCVar5->ai_addr = psVar8;
    if (psVar8 == (sockaddr *)0x0) {
      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);
      (*(code *)*puVar4)(pCVar5->ai_canonname);
      (*(code *)*puVar4)(pCVar5);
      Curl_freeaddrinfo(pCVar15);
      return 0;
    }
    if (pCVar15 == (Curl_addrinfo *)0x0) {
      pCVar15 = pCVar5;
    }
    if (pCVar16 != (Curl_addrinfo *)0x0) {
      pCVar16->ai_next = pCVar5;
    }
    iVar10 = puVar4[2];
    pCVar5->ai_addrlen = cVar9;
    pCVar5->ai_socktype = 2;
    pCVar5->ai_family = iVar10;
    if (iVar10 == 2) {
      uVar11 = *puVar20;
      pcVar7 = psVar8->sa_data + 2;
      uVar17 = (uint)pcVar7 & 3;
      *(uint *)(pcVar7 + -uVar17) =
           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;
      pcVar7 = psVar8->sa_data + 5;
      uVar17 = (uint)pcVar7 & 3;
      *(uint *)(pcVar7 + -uVar17) =
           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |
           uVar11 << (3 - uVar17) * 8;
      iVar10 = puVar4[2];
      *(undefined2 *)psVar8->sa_data = uVar12;
      psVar8->sa_family = (sa_family_t)iVar10;
      puVar20 = *(uint **)(puVar4[4] + iVar6);
    }
    else {
      if (iVar10 == 10) {
        uVar13 = puVar20[1];
        uVar11 = puVar20[2];
        uVar17 = puVar20[3];
        *(uint *)(psVar8->sa_data + 6) = *puVar20;
        *(uint *)(psVar8->sa_data + 10) = uVar13;
        psVar8[1].sa_family = (short)(uVar11 >> 0x10);
        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);
        psVar8[1].sa_data[1] = (char)uVar11;
        *(uint *)(psVar8[1].sa_data + 2) = uVar17;
        iVar10 = puVar4[2];
        psVar8->sa_family = (sa_family_t)iVar10;
        *(undefined2 *)psVar8->sa_data = uVar12;
      }
      puVar20 = *(uint **)(puVar4[4] + iVar6);
    }
    iVar6 = iVar6 + 4;
    pCVar16 = pCVar5;
    if (puVar20 == (uint *)0x0) {
      return (int)pCVar15;
    }
  }
  Curl_freeaddrinfo(pCVar15);
  return 0;
}



int FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  undefined2 *puVar9;
  undefined4 uVar10;
  undefined2 uVar12;
  uint uVar11;
  int iVar13;
  uint uVar14;
  undefined4 uVar15;
  undefined4 *puVar16;
  int iVar17;
  int iVar18;
  uint uVar19;
  undefined4 *puVar20;
  uint *puVar21;
  code *pcVar22;
  undefined *puVar23;
  undefined4 *puVar24;
  int local_3c;
  undefined4 *local_30;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar23 = PTR_getaddrinfo_000a6bb4;
  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;
  *param_4 = 0;
  local_3c = (*(code *)puVar23)();
  puVar2 = PTR_PTR_strdup_000a6230;
  puVar23 = PTR_PTR_malloc_000a6198;
  uVar12 = (undefined2)param_2;
  if (local_3c != 0) goto LAB_00054994;
  if (local_30 == (undefined4 *)0x0) {
LAB_00054980:
    puVar16 = (undefined4 *)0x0;
    local_3c = -2;
  }
  else {
    puVar16 = (undefined4 *)0x0;
    puVar24 = (undefined4 *)0x0;
    puVar20 = local_30;
    do {
      uVar12 = (undefined2)param_2;
      uVar19 = 0x10;
      puVar5 = puVar24;
      if (puVar20[1] == 2) {
        iVar7 = puVar20[5];
LAB_00054880:
        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {
          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);
          if (puVar5 != (undefined4 *)0x0) {
            uVar15 = *puVar20;
            uVar10 = puVar20[2];
            uVar6 = puVar20[3];
            pcVar22 = *(code **)puVar23;
            puVar5[1] = puVar20[1];
            *puVar5 = uVar15;
            puVar5[2] = uVar10;
            puVar5[3] = uVar6;
            puVar5[4] = uVar19;
            puVar5[6] = 0;
            puVar5[5] = 0;
            puVar5[7] = 0;
            iVar7 = (*pcVar22)(uVar19);
            uVar12 = (undefined2)uVar10;
            puVar5[6] = iVar7;
            if (iVar7 != 0) {
              param_2 = puVar20[5];
              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);
              if (puVar20[6] != 0) {
                iVar7 = (**(code **)puVar2)();
                uVar12 = (undefined2)param_2;
                puVar5[5] = iVar7;
                puVar1 = PTR_PTR_free_000a6144;
                if (iVar7 == 0) {
                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);
                  (**(code **)puVar1)(puVar5);
                  goto LAB_000549f4;
                }
              }
              if (puVar16 == (undefined4 *)0x0) {
                puVar16 = puVar5;
              }
              if (puVar24 != (undefined4 *)0x0) {
                puVar24[7] = puVar5;
              }
              goto LAB_00054944;
            }
            (**(code **)PTR_PTR_free_000a6144)(puVar5);
          }
LAB_000549f4:
          if (local_30 != (undefined4 *)0x0) {
            (*(code *)PTR_freeaddrinfo_000a6c20)();
          }
          FUN_00054760(puVar16);
          local_3c = -10;
          *param_4 = 0;
          goto LAB_00054994;
        }
      }
      else if (puVar20[1] == 10) {
        uVar19 = 0x1c;
        iVar7 = puVar20[5];
        goto LAB_00054880;
      }
LAB_00054944:
      uVar12 = (undefined2)param_2;
      puVar20 = (undefined4 *)puVar20[7];
      puVar24 = puVar5;
    } while (puVar20 != (undefined4 *)0x0);
    if (local_30 != (undefined4 *)0x0) {
      (*(code *)PTR_freeaddrinfo_000a6c20)();
    }
    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;
  }
  *param_4 = puVar16;
LAB_00054994:
  if (puVar4 == *(undefined4 **)puVar3) {
    return local_3c;
  }
  puVar23 = PTR___stack_chk_fail_000a6c54;
  (*(code *)PTR___stack_chk_fail_000a6c54)();
  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {
    return 0;
  }
  iVar13 = puVar4[2];
  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);
  iVar7 = 4;
  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);
  iVar17 = 0;
  iVar18 = 0;
  while( true ) {
    uVar6 = 0x10;
    if (iVar13 == 10) {
      uVar6 = 0x1c;
    }
    iVar8 = (*(code *)*puVar16)(1,0x20);
    if (iVar8 == 0) break;
    iVar13 = (*(code *)*puVar24)(*puVar4);
    *(int *)(iVar8 + 0x14) = iVar13;
    if (iVar13 == 0) {
      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);
      break;
    }
    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);
    *(undefined2 **)(iVar8 + 0x18) = puVar9;
    if (puVar9 == (undefined2 *)0x0) {
      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);
      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));
      (*(code *)*puVar4)(iVar8);
      FUN_00054760(iVar17);
      return 0;
    }
    if (iVar17 == 0) {
      iVar17 = iVar8;
    }
    if (iVar18 != 0) {
      *(int *)(iVar18 + 0x1c) = iVar8;
    }
    iVar13 = puVar4[2];
    *(undefined4 *)(iVar8 + 0x10) = uVar6;
    *(undefined4 *)(iVar8 + 8) = 2;
    *(int *)(iVar8 + 4) = iVar13;
    if (iVar13 == 2) {
      uVar11 = *puVar21;
      uVar19 = (uint)(puVar9 + 2) & 3;
      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);
      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;
      uVar19 = (int)puVar9 + 7U & 3;
      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);
      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;
      iVar13 = puVar4[2];
      puVar9[1] = uVar12;
      *puVar9 = (short)iVar13;
      puVar21 = *(uint **)(puVar4[4] + iVar7);
    }
    else {
      if (iVar13 == 10) {
        uVar14 = puVar21[1];
        uVar11 = puVar21[2];
        uVar19 = puVar21[3];
        *(uint *)(puVar9 + 4) = *puVar21;
        *(uint *)(puVar9 + 6) = uVar14;
        *(uint *)(puVar9 + 8) = uVar11;
        *(uint *)(puVar9 + 10) = uVar19;
        iVar13 = puVar4[2];
        *puVar9 = (short)iVar13;
        puVar9[1] = uVar12;
      }
      puVar21 = *(uint **)(puVar4[4] + iVar7);
    }
    iVar7 = iVar7 + 4;
    iVar18 = iVar8;
    if (puVar21 == (uint *)0x0) {
      return iVar17;
    }
  }
  FUN_00054760(iVar17);
  return 0;
}


lui gp,0x6
addiu gp,gp,-0x66c8
addu gp,gp,t9
lw v0,-0x7130(gp)
addiu sp,sp,-0x58
or v1,a3,zero
lw t9,-0x755c(gp)
sw v0,0x20(sp)
sw gp,0x10(sp)
sw a3,0x24(sp)
addiu a3,sp,0x28
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
lw v0,0x0(v0)
sw zero,0x0(v1)
sw v0,0x2c(sp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x00054994
_sw v0,0x1c(sp)
lw s6,0x28(sp)
beq s6,zero,0x00054980
_lw s4,-0x7f78(gp)
or s3,zero,zero
lw s7,-0x7ee0(gp)
or s1,zero,zero
li s0,0x2
b 0x00054950
_li s2,0xa
bne v0,s2,0x00054944
_nop
li s5,0x1c
lw v0,0x14(s6)
beq v0,zero,0x00054944
_nop
lw v0,0x10(s6)
beq v0,zero,0x00054944
_sltu v0,v0,s5
bne v0,zero,0x00054944
_nop
lw t9,0x0(s4)
jalr t9
_li a0,0x20
lw gp,0x10(sp)
beq v0,zero,0x000549f4
_or s8,v0,zero
lw t1,0x0(s6)
or a0,s5,zero
lw t0,0x4(s6)
lw a1,0x8(s6)
lw v0,0xc(s6)
lw t9,0x0(s4)
sw t0,0x4(s8)
sw t1,0x0(s8)
sw a1,0x8(s8)
sw v0,0xc(s8)
sw s5,0x10(s8)
sw zero,0x18(s8)
sw zero,0x14(s8)
jalr t9
_sw zero,0x1c(s8)
lw gp,0x10(sp)
beq v0,zero,0x000549e0
_sw v0,0x18(s8)
lw t9,-0x7224(gp)
or a0,v0,zero
lw a1,0x14(s6)
jalr t9
_or a2,s5,zero
lw a0,0x18(s6)
beq a0,zero,0x00054934
_lw gp,0x10(sp)
lw t9,0x0(s7)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00054a34
_sw v0,0x14(s8)
beq s3,zero,0x000549d8
_movz s1,s8,s1
sw s8,0x1c(s3)
or s3,s8,zero
lw s6,0x1c(s6)
beq s6,zero,0x00054964
_lw a0,0x28(sp)
lw v0,0x4(s6)
bne v0,s0,0x00054870
_li s5,0x10
b 0x00054880
_lw v0,0x14(s6)
beq a0,zero,0x00054978
_lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne s1,zero,0x00054990
_lw v0,0x24(sp)
li v0,-0x2
or s1,zero,zero
sw v0,0x1c(sp)
lw v0,0x24(sp)
sw s1,0x0(v0)
lw v1,0x20(sp)
lw a0,0x2c(sp)
lw v0,0x1c(sp)
lw v1,0x0(v1)
bne a0,v1,0x00054a58
_lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
b 0x00054944
_or s3,s8,zero
lw v0,-0x7fcc(gp)
lw t9,0x0(v0)
jalr t9
_or a0,s8,zero
lw gp,0x10(sp)
lw a0,0x28(sp)
beq a0,zero,0x00054a0c
_lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7f6c(gp)
or a0,s1,zero
bal 0x00054760
_or s1,zero,zero
li v0,-0xa
lw gp,0x10(sp)
sw v0,0x1c(sp)
lw v0,0x24(sp)
b 0x00054994
_sw s1,0x0(v0)
lw s0,-0x7fcc(gp)
lw t9,0x0(s0)
jalr t9
_lw a0,0x18(s8)
lw t9,0x0(s0)
jalr t9
_or a0,s8,zero
b 0x000549f4
_lw gp,0x10(sp)
lw t9,-0x74bc(gp)
jalr t9
_nop
(translation_unit "int FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}\n\n" (function_definition "int FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}" primitive_type (function_declarator "FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined2 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined2 uVar12;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "undefined4 uVar15;" type_identifier identifier ;) (declaration "undefined4 *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "undefined4 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "uint *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "code *pcVar22;" type_identifier (pointer_declarator "*pcVar22" * identifier) ;) (declaration "undefined *puVar23;" type_identifier (pointer_declarator "*puVar23" * identifier) ;) (declaration "undefined4 *puVar24;" type_identifier (pointer_declarator "*puVar24" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined4 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "puVar23 = PTR_getaddrinfo_000a6bb4;" (assignment_expression "puVar23 = PTR_getaddrinfo_000a6bb4" identifier = identifier) ;) (expression_statement "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "local_3c = (*(code *)puVar23)();" (assignment_expression "local_3c = (*(code *)puVar23)()" identifier = (call_expression "(*(code *)puVar23)()" (parenthesized_expression "(*(code *)puVar23)" ( (pointer_expression "*(code *)puVar23" * (cast_expression "(code *)puVar23" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_PTR_strdup_000a6230;" (assignment_expression "puVar2 = PTR_PTR_strdup_000a6230" identifier = identifier) ;) (expression_statement "puVar23 = PTR_PTR_malloc_000a6198;" (assignment_expression "puVar23 = PTR_PTR_malloc_000a6198" identifier = identifier) ;) (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (local_3c != 0) goto LAB_00054994;" if (parenthesized_expression "(local_3c != 0)" ( (binary_expression "local_3c != 0" identifier != number_literal) )) (goto_statement "goto LAB_00054994;" goto statement_identifier ;)) (if_statement "if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" if (parenthesized_expression "(local_30 == (undefined4 *)0x0)" ( (binary_expression "local_30 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }" { (labeled_statement "LAB_00054980:\n    puVar16 = (undefined4 *)0x0;" statement_identifier : (expression_statement "puVar16 = (undefined4 *)0x0;" (assignment_expression "puVar16 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_3c = -2;" (assignment_expression "local_3c = -2" identifier = number_literal) ;) }) (else_clause "else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" else (compound_statement "{\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" { (expression_statement "puVar16 = (undefined4 *)0x0;" (assignment_expression "puVar16 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar24 = (undefined4 *)0x0;" (assignment_expression "puVar24 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar20 = local_30;" (assignment_expression "puVar20 = local_30" identifier = identifier) ;) (do_statement "do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);" do (compound_statement "{\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    }" { (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "uVar19 = 0x10;" (assignment_expression "uVar19 = 0x10" identifier = number_literal) ;) (expression_statement "puVar5 = puVar24;" (assignment_expression "puVar5 = puVar24" identifier = identifier) ;) (if_statement "if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" if (parenthesized_expression "(puVar20[1] == 2)" ( (binary_expression "puVar20[1] == 2" (subscript_expression "puVar20[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }" { (expression_statement "iVar7 = puVar20[5];" (assignment_expression "iVar7 = puVar20[5]" identifier = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" statement_identifier : (if_statement "if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" if (parenthesized_expression "(((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4]))" ( (binary_expression "((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])" (parenthesized_expression "((iVar7 != 0) && (puVar20[4] != 0))" ( (binary_expression "(iVar7 != 0) && (puVar20[4] != 0)" (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar20[4] != 0)" ( (binary_expression "puVar20[4] != 0" (subscript_expression "puVar20[4]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "(uVar19 <= (uint)puVar20[4])" ( (binary_expression "uVar19 <= (uint)puVar20[4]" identifier <= (cast_expression "(uint)puVar20[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar20[4]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" { (expression_statement "puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);" (assignment_expression "puVar5 = (undefined4 *)(**(code **)puVar23)(0x20)" identifier = (cast_expression "(undefined4 *)(**(code **)puVar23)(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar23)(0x20)" (parenthesized_expression "(**(code **)puVar23)" ( (pointer_expression "**(code **)puVar23" * (pointer_expression "*(code **)puVar23" * (cast_expression "(code **)puVar23" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(0x20)" ( number_literal ))))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }" { (expression_statement "uVar15 = *puVar20;" (assignment_expression "uVar15 = *puVar20" identifier = (pointer_expression "*puVar20" * identifier)) ;) (expression_statement "uVar10 = puVar20[2];" (assignment_expression "uVar10 = puVar20[2]" identifier = (subscript_expression "puVar20[2]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = puVar20[3];" (assignment_expression "uVar6 = puVar20[3]" identifier = (subscript_expression "puVar20[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar22 = *(code **)puVar23;" (assignment_expression "pcVar22 = *(code **)puVar23" identifier = (pointer_expression "*(code **)puVar23" * (cast_expression "(code **)puVar23" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar5[1] = puVar20[1];" (assignment_expression "puVar5[1] = puVar20[1]" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (subscript_expression "puVar20[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar5 = uVar15;" (assignment_expression "*puVar5 = uVar15" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5[2] = uVar10;" (assignment_expression "puVar5[2] = uVar10" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[3] = uVar6;" (assignment_expression "puVar5[3] = uVar6" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[4] = uVar19;" (assignment_expression "puVar5[4] = uVar19" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[7] = 0;" (assignment_expression "puVar5[7] = 0" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = (*pcVar22)(uVar19);" (assignment_expression "iVar7 = (*pcVar22)(uVar19)" identifier = (call_expression "(*pcVar22)(uVar19)" (parenthesized_expression "(*pcVar22)" ( (pointer_expression "*pcVar22" * identifier) )) (argument_list "(uVar19)" ( identifier )))) ;) (expression_statement "uVar12 = (undefined2)uVar10;" (assignment_expression "uVar12 = (undefined2)uVar10" identifier = (cast_expression "(undefined2)uVar10" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "puVar5[6] = iVar7;" (assignment_expression "puVar5[6] = iVar7" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }" { (expression_statement "param_2 = puVar20[5];" (assignment_expression "param_2 = puVar20[5]" identifier = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,param_2,uVar19)" ( identifier , identifier , identifier ))) ;) (if_statement "if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }" if (parenthesized_expression "(puVar20[6] != 0)" ( (binary_expression "puVar20[6] != 0" (subscript_expression "puVar20[6]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }" { (expression_statement "iVar7 = (**(code **)puVar2)();" (assignment_expression "iVar7 = (**(code **)puVar2)()" identifier = (call_expression "(**(code **)puVar2)()" (parenthesized_expression "(**(code **)puVar2)" ( (pointer_expression "**(code **)puVar2" * (pointer_expression "*(code **)puVar2" * (cast_expression "(code **)puVar2" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "puVar5[5] = iVar7;" (assignment_expression "puVar5[5] = iVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar5[6]);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar5[6])" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5[6])" ( (subscript_expression "puVar5[6]" identifier [ number_literal ]) ))) ;) (expression_statement "(**(code **)puVar1)(puVar5);" (call_expression "(**(code **)puVar1)(puVar5)" (parenthesized_expression "(**(code **)puVar1)" ( (pointer_expression "**(code **)puVar1" * (pointer_expression "*(code **)puVar1" * (cast_expression "(code **)puVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5)" ( identifier ))) ;) (goto_statement "goto LAB_000549f4;" goto statement_identifier ;) })) })) (if_statement "if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }" if (parenthesized_expression "(puVar16 == (undefined4 *)0x0)" ( (binary_expression "puVar16 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                puVar16 = puVar5;\n              }" { (expression_statement "puVar16 = puVar5;" (assignment_expression "puVar16 = puVar5" identifier = identifier) ;) })) (if_statement "if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }" if (parenthesized_expression "(puVar24 != (undefined4 *)0x0)" ( (binary_expression "puVar24 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                puVar24[7] = puVar5;\n              }" { (expression_statement "puVar24[7] = puVar5;" (assignment_expression "puVar24[7] = puVar5" (subscript_expression "puVar24[7]" identifier [ number_literal ]) = identifier) ;) })) (goto_statement "goto LAB_00054944;" goto statement_identifier ;) })) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar5);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar5)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5)" ( identifier ))) ;) })) (labeled_statement "LAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" statement_identifier : (if_statement "if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" if (parenthesized_expression "(local_30 != (undefined4 *)0x0)" ( (binary_expression "local_30 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" { (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" ( (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" * (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (expression_statement "FUN_00054760(puVar16);" (call_expression "FUN_00054760(puVar16)" identifier (argument_list "(puVar16)" ( identifier ))) ;) (expression_statement "local_3c = -10;" (assignment_expression "local_3c = -10" identifier = number_literal) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (goto_statement "goto LAB_00054994;" goto statement_identifier ;) }))) }) (else_clause "else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" else (if_statement "if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" if (parenthesized_expression "(puVar20[1] == 10)" ( (binary_expression "puVar20[1] == 10" (subscript_expression "puVar20[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" { (expression_statement "uVar19 = 0x1c;" (assignment_expression "uVar19 = 0x1c" identifier = number_literal) ;) (expression_statement "iVar7 = puVar20[5];" (assignment_expression "iVar7 = puVar20[5]" identifier = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00054880;" goto statement_identifier ;) })))) (labeled_statement "LAB_00054944:\n      uVar12 = (undefined2)param_2;" statement_identifier : (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;)) (expression_statement "puVar20 = (undefined4 *)puVar20[7];" (assignment_expression "puVar20 = (undefined4 *)puVar20[7]" identifier = (cast_expression "(undefined4 *)puVar20[7]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar20[7]" identifier [ number_literal ]))) ;) (expression_statement "puVar24 = puVar5;" (assignment_expression "puVar24 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar20 != (undefined4 *)0x0)" ( (binary_expression "puVar20 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" if (parenthesized_expression "(local_30 != (undefined4 *)0x0)" ( (binary_expression "local_30 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" { (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" ( (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" * (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;" if (parenthesized_expression "(puVar16 == (undefined4 *)0x0)" ( (binary_expression "puVar16 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00054980;" goto statement_identifier ;)) }))) (expression_statement "*param_4 = puVar16;" (assignment_expression "*param_4 = puVar16" (pointer_expression "*param_4" * identifier) = identifier) ;) (labeled_statement "LAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" statement_identifier : (if_statement "if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" if (parenthesized_expression "(puVar4 == *(undefined4 **)puVar3)" ( (binary_expression "puVar4 == *(undefined4 **)puVar3" identifier == (pointer_expression "*(undefined4 **)puVar3" * (cast_expression "(undefined4 **)puVar3" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return local_3c;\n  }" { (return_statement "return local_3c;" return identifier ;) }))) (expression_statement "puVar23 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar23 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }" if (parenthesized_expression "((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0))" ( (binary_expression "(puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)" (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)" ( (comma_expression "puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0" (assignment_expression "puVar21 = *(uint **)puVar4[4]" identifier = (pointer_expression "*(uint **)puVar4[4]" * (cast_expression "(uint **)puVar4[4]" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar4[4]" identifier [ number_literal ])))) , (binary_expression "puVar21 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "puVar16 = *(undefined4 **)(puVar23 + 0x516dc);" (assignment_expression "puVar16 = *(undefined4 **)(puVar23 + 0x516dc)" identifier = (pointer_expression "*(undefined4 **)(puVar23 + 0x516dc)" * (cast_expression "(undefined4 **)(puVar23 + 0x516dc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x516dc)" ( (binary_expression "puVar23 + 0x516dc" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" identifier = number_literal) ;) (expression_statement "puVar24 = *(undefined4 **)(puVar23 + 0x517cc);" (assignment_expression "puVar24 = *(undefined4 **)(puVar23 + 0x517cc)" identifier = (pointer_expression "*(undefined4 **)(puVar23 + 0x517cc)" * (cast_expression "(undefined4 **)(puVar23 + 0x517cc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x517cc)" ( (binary_expression "puVar23 + 0x517cc" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar18 = 0;" (assignment_expression "iVar18 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }" { (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" identifier = number_literal) ;) (if_statement "if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }" if (parenthesized_expression "(iVar13 == 10)" ( (binary_expression "iVar13 == 10" identifier == number_literal) )) (compound_statement "{\n      uVar6 = 0x1c;\n    }" { (expression_statement "uVar6 = 0x1c;" (assignment_expression "uVar6 = 0x1c" identifier = number_literal) ;) })) (expression_statement "iVar8 = (*(code *)*puVar16)(1,0x20);" (assignment_expression "iVar8 = (*(code *)*puVar16)(1,0x20)" identifier = (call_expression "(*(code *)*puVar16)(1,0x20)" (parenthesized_expression "(*(code *)*puVar16)" ( (pointer_expression "*(code *)*puVar16" * (cast_expression "(code *)*puVar16" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar16" * identifier))) )) (argument_list "(1,0x20)" ( number_literal , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar13 = (*(code *)*puVar24)(*puVar4);" (assignment_expression "iVar13 = (*(code *)*puVar24)(*puVar4)" identifier = (call_expression "(*(code *)*puVar24)(*puVar4)" (parenthesized_expression "(*(code *)*puVar24)" ( (pointer_expression "*(code *)*puVar24" * (cast_expression "(code *)*puVar24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar24" * identifier))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "*(int *)(iVar8 + 0x14) = iVar13;" (assignment_expression "*(int *)(iVar8 + 0x14) = iVar13" (pointer_expression "*(int *)(iVar8 + 0x14)" * (cast_expression "(int *)(iVar8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x14)" ( (binary_expression "iVar8 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }" { (expression_statement "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);" (call_expression "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8)" (parenthesized_expression "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))" ( (pointer_expression "*(code *)**(undefined4 **)(puVar23 + 0x516e0)" * (cast_expression "(code *)**(undefined4 **)(puVar23 + 0x516e0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(puVar23 + 0x516e0)" * (pointer_expression "*(undefined4 **)(puVar23 + 0x516e0)" * (cast_expression "(undefined4 **)(puVar23 + 0x516e0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x516e0)" ( (binary_expression "puVar23 + 0x516e0" identifier + number_literal) ))))))) )) (argument_list "(iVar8)" ( identifier ))) ;) (break_statement "break;" break ;) })) (expression_statement "puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);" (assignment_expression "puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6)" identifier = (cast_expression "(undefined2 *)(*(code *)*puVar16)(1,uVar6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar16)(1,uVar6)" (parenthesized_expression "(*(code *)*puVar16)" ( (pointer_expression "*(code *)*puVar16" * (cast_expression "(code *)*puVar16" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar16" * identifier))) )) (argument_list "(1,uVar6)" ( number_literal , identifier ))))) ;) (expression_statement "*(undefined2 **)(iVar8 + 0x18) = puVar9;" (assignment_expression "*(undefined2 **)(iVar8 + 0x18) = puVar9" (pointer_expression "*(undefined2 **)(iVar8 + 0x18)" * (cast_expression "(undefined2 **)(iVar8 + 0x18)" ( (type_descriptor "undefined2 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 0x18)" ( (binary_expression "iVar8 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }" if (parenthesized_expression "(puVar9 == (undefined2 *)0x0)" ( (binary_expression "puVar9 == (undefined2 *)0x0" identifier == (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }" { (expression_statement "puVar4 = *(undefined4 **)(puVar23 + 0x516e0);" (assignment_expression "puVar4 = *(undefined4 **)(puVar23 + 0x516e0)" identifier = (pointer_expression "*(undefined4 **)(puVar23 + 0x516e0)" * (cast_expression "(undefined4 **)(puVar23 + 0x516e0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x516e0)" ( (binary_expression "puVar23 + 0x516e0" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));" (call_expression "(*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14))" (parenthesized_expression "(*(code *)*puVar4)" ( (pointer_expression "*(code *)*puVar4" * (cast_expression "(code *)*puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) )) (argument_list "(*(undefined4 *)(iVar8 + 0x14))" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x14)" * (cast_expression "(undefined4 *)(iVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x14)" ( (binary_expression "iVar8 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)*puVar4)(iVar8);" (call_expression "(*(code *)*puVar4)(iVar8)" (parenthesized_expression "(*(code *)*puVar4)" ( (pointer_expression "*(code *)*puVar4" * (cast_expression "(code *)*puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "FUN_00054760(iVar17);" (call_expression "FUN_00054760(iVar17)" identifier (argument_list "(iVar17)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar17 = iVar8;\n    }" { (expression_statement "iVar17 = iVar8;" (assignment_expression "iVar17 = iVar8" identifier = identifier) ;) })) (if_statement "if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }" { (expression_statement "*(int *)(iVar18 + 0x1c) = iVar8;" (assignment_expression "*(int *)(iVar18 + 0x1c) = iVar8" (pointer_expression "*(int *)(iVar18 + 0x1c)" * (cast_expression "(int *)(iVar18 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar18 + 0x1c)" ( (binary_expression "iVar18 + 0x1c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar8 + 0x10) = uVar6;" (assignment_expression "*(undefined4 *)(iVar8 + 0x10) = uVar6" (pointer_expression "*(undefined4 *)(iVar8 + 0x10)" * (cast_expression "(undefined4 *)(iVar8 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x10)" ( (binary_expression "iVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar8 + 8) = 2;" (assignment_expression "*(undefined4 *)(iVar8 + 8) = 2" (pointer_expression "*(undefined4 *)(iVar8 + 8)" * (cast_expression "(undefined4 *)(iVar8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar8 + 4) = iVar13;" (assignment_expression "*(int *)(iVar8 + 4) = iVar13" (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" if (parenthesized_expression "(iVar13 == 2)" ( (binary_expression "iVar13 == 2" identifier == number_literal) )) (compound_statement "{\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" { (expression_statement "uVar11 = *puVar21;" (assignment_expression "uVar11 = *puVar21" identifier = (pointer_expression "*puVar21" * identifier)) ;) (expression_statement "uVar19 = (uint)(puVar9 + 2) & 3;" (assignment_expression "uVar19 = (uint)(puVar9 + 2) & 3" identifier = (binary_expression "(uint)(puVar9 + 2) & 3" (call_expression "(uint)(puVar9 + 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar9 + 2)" ( (binary_expression "puVar9 + 2" identifier + number_literal) ))) & number_literal)) ;) (expression_statement "puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);" (assignment_expression "puVar21 = (uint *)((int)(puVar9 + 2) - uVar19)" identifier = (cast_expression "(uint *)((int)(puVar9 + 2) - uVar19)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(puVar9 + 2) - uVar19)" ( (binary_expression "(int)(puVar9 + 2) - uVar19" (cast_expression "(int)(puVar9 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar9 + 2)" ( (binary_expression "puVar9 + 2" identifier + number_literal) ))) - identifier) )))) ;) (expression_statement "*puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;" (assignment_expression "*puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8" (pointer_expression "*puVar21" * identifier) = (binary_expression "*puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8" (binary_expression "*puVar21 & -1 << (4 - uVar19) * 8" (pointer_expression "*puVar21" * identifier) & (binary_expression "-1 << (4 - uVar19) * 8" number_literal << (binary_expression "(4 - uVar19) * 8" (parenthesized_expression "(4 - uVar19)" ( (binary_expression "4 - uVar19" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar11 >> uVar19 * 8" identifier >> (binary_expression "uVar19 * 8" identifier * number_literal)))) ;) (expression_statement "uVar19 = (int)puVar9 + 7U & 3;" (assignment_expression "uVar19 = (int)puVar9 + 7U & 3" identifier = (binary_expression "(int)puVar9 + 7U & 3" (binary_expression "(int)puVar9 + 7U" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);" (assignment_expression "puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19)" identifier = (cast_expression "(uint *)(((int)puVar9 + 7U) - uVar19)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar9 + 7U) - uVar19)" ( (binary_expression "((int)puVar9 + 7U) - uVar19" (parenthesized_expression "((int)puVar9 + 7U)" ( (binary_expression "(int)puVar9 + 7U" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - identifier) )))) ;) (expression_statement "*puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;" (assignment_expression "*puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8" (pointer_expression "*puVar21" * identifier) = (binary_expression "*puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8" (binary_expression "*puVar21 & 0xffffffffU >> (uVar19 + 1) * 8" (pointer_expression "*puVar21" * identifier) & (binary_expression "0xffffffffU >> (uVar19 + 1) * 8" number_literal >> (binary_expression "(uVar19 + 1) * 8" (parenthesized_expression "(uVar19 + 1)" ( (binary_expression "uVar19 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar11 << (3 - uVar19) * 8" identifier << (binary_expression "(3 - uVar19) * 8" (parenthesized_expression "(3 - uVar19)" ( (binary_expression "3 - uVar19" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "puVar9[1] = uVar12;" (assignment_expression "puVar9[1] = uVar12" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar9 = (short)iVar13;" (assignment_expression "*puVar9 = (short)iVar13" (pointer_expression "*puVar9" * identifier) = (cast_expression "(short)iVar13" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "puVar21 = *(uint **)(puVar4[4] + iVar7);" (assignment_expression "puVar21 = *(uint **)(puVar4[4] + iVar7)" identifier = (pointer_expression "*(uint **)(puVar4[4] + iVar7)" * (cast_expression "(uint **)(puVar4[4] + iVar7)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[4] + iVar7)" ( (binary_expression "puVar4[4] + iVar7" (subscript_expression "puVar4[4]" identifier [ number_literal ]) + identifier) ))))) ;) }) (else_clause "else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" else (compound_statement "{\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" { (if_statement "if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }" if (parenthesized_expression "(iVar13 == 10)" ( (binary_expression "iVar13 == 10" identifier == number_literal) )) (compound_statement "{\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }" { (expression_statement "uVar14 = puVar21[1];" (assignment_expression "uVar14 = puVar21[1]" identifier = (subscript_expression "puVar21[1]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar21[2];" (assignment_expression "uVar11 = puVar21[2]" identifier = (subscript_expression "puVar21[2]" identifier [ number_literal ])) ;) (expression_statement "uVar19 = puVar21[3];" (assignment_expression "uVar19 = puVar21[3]" identifier = (subscript_expression "puVar21[3]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(puVar9 + 4) = *puVar21;" (assignment_expression "*(uint *)(puVar9 + 4) = *puVar21" (pointer_expression "*(uint *)(puVar9 + 4)" * (cast_expression "(uint *)(puVar9 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 4)" ( (binary_expression "puVar9 + 4" identifier + number_literal) )))) = (pointer_expression "*puVar21" * identifier)) ;) (expression_statement "*(uint *)(puVar9 + 6) = uVar14;" (assignment_expression "*(uint *)(puVar9 + 6) = uVar14" (pointer_expression "*(uint *)(puVar9 + 6)" * (cast_expression "(uint *)(puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 6)" ( (binary_expression "puVar9 + 6" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar9 + 8) = uVar11;" (assignment_expression "*(uint *)(puVar9 + 8) = uVar11" (pointer_expression "*(uint *)(puVar9 + 8)" * (cast_expression "(uint *)(puVar9 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 8)" ( (binary_expression "puVar9 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar9 + 10) = uVar19;" (assignment_expression "*(uint *)(puVar9 + 10) = uVar19" (pointer_expression "*(uint *)(puVar9 + 10)" * (cast_expression "(uint *)(puVar9 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 10)" ( (binary_expression "puVar9 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*puVar9 = (short)iVar13;" (assignment_expression "*puVar9 = (short)iVar13" (pointer_expression "*puVar9" * identifier) = (cast_expression "(short)iVar13" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "puVar9[1] = uVar12;" (assignment_expression "puVar9[1] = uVar12" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "puVar21 = *(uint **)(puVar4[4] + iVar7);" (assignment_expression "puVar21 = *(uint **)(puVar4[4] + iVar7)" identifier = (pointer_expression "*(uint **)(puVar4[4] + iVar7)" * (cast_expression "(uint **)(puVar4[4] + iVar7)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[4] + iVar7)" ( (binary_expression "puVar4[4] + iVar7" (subscript_expression "puVar4[4]" identifier [ number_literal ]) + identifier) ))))) ;) }))) (expression_statement "iVar7 = iVar7 + 4;" (assignment_expression "iVar7 = iVar7 + 4" identifier = (binary_expression "iVar7 + 4" identifier + number_literal)) ;) (expression_statement "iVar18 = iVar8;" (assignment_expression "iVar18 = iVar8" identifier = identifier) ;) (if_statement "if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }" if (parenthesized_expression "(puVar21 == (uint *)0x0)" ( (binary_expression "puVar21 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return iVar17;\n    }" { (return_statement "return iVar17;" return identifier ;) })) })) (expression_statement "FUN_00054760(iVar17);" (call_expression "FUN_00054760(iVar17)" identifier (argument_list "(iVar17)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int Curl_getaddrinfo_ex(char *nodename,char *servname,addrinfo *hints,Curl_addrinfo **result)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  Curl_addrinfo *pCVar5;\n  int iVar6;\n  char *pcVar7;\n  sockaddr *psVar8;\n  curl_socklen_t cVar9;\n  int iVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  uint uVar13;\n  int iVar14;\n  Curl_addrinfo *pCVar15;\n  Curl_addrinfo *pCVar16;\n  uint uVar17;\n  undefined4 *puVar18;\n  addrinfo *paVar19;\n  uint *puVar20;\n  code *pcVar21;\n  undefined *puVar22;\n  undefined4 *puVar23;\n  int local_3c;\n  addrinfo *aihead;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar22 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *result = (Curl_addrinfo *)0x0;\n  local_3c = (*(code *)puVar22)();\n  puVar2 = PTR_Curl_cstrdup_000a6230;\n  puVar22 = PTR_Curl_cmalloc_000a6198;\n  uVar12 = SUB42(servname,0);\n  if (local_3c != 0) goto LAB_00054994;\n  if (aihead == (addrinfo *)0x0) {\nLAB_00054980:\n    pCVar15 = (Curl_addrinfo *)0x0;\n    local_3c = -2;\n  }\n  else {\n    pCVar15 = (Curl_addrinfo *)0x0;\n    pCVar16 = (Curl_addrinfo *)0x0;\n    paVar19 = aihead;\n    do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);\n    if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;\n  }\n  *result = pCVar15;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar22 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar10 = puVar4[2];\n  puVar18 = *(undefined4 **)(puVar22 + 0x516dc);\n  iVar6 = 4;\n  puVar23 = *(undefined4 **)(puVar22 + 0x517cc);\n  pCVar15 = (Curl_addrinfo *)0x0;\n  pCVar16 = (Curl_addrinfo *)0x0;\n  while( true ) {\n    cVar9 = 0x10;\n    if (iVar10 == 10) {\n      cVar9 = 0x1c;\n    }\n    pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);\n    if (pCVar5 == (Curl_addrinfo *)0x0) break;\n    pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);\n    pCVar5->ai_canonname = pcVar7;\n    if (pcVar7 == (char *)0x0) {\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }\n    psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);\n    pCVar5->ai_addr = psVar8;\n    if (psVar8 == (sockaddr *)0x0) {\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) {\n      pCVar15 = pCVar5;\n    }\n    if (pCVar16 != (Curl_addrinfo *)0x0) {\n      pCVar16->ai_next = pCVar5;\n    }\n    iVar10 = puVar4[2];\n    pCVar5->ai_addrlen = cVar9;\n    pCVar5->ai_socktype = 2;\n    pCVar5->ai_family = iVar10;\n    if (iVar10 == 2) {\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    iVar6 = iVar6 + 4;\n    pCVar16 = pCVar5;\n    if (puVar20 == (uint *)0x0) {\n      return (int)pCVar15;\n    }\n  }\n  Curl_freeaddrinfo(pCVar15);\n  return 0;\n}\n\n" (function_definition "int Curl_getaddrinfo_ex(char *nodename,char *servname,addrinfo *hints,Curl_addrinfo **result)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  Curl_addrinfo *pCVar5;\n  int iVar6;\n  char *pcVar7;\n  sockaddr *psVar8;\n  curl_socklen_t cVar9;\n  int iVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  uint uVar13;\n  int iVar14;\n  Curl_addrinfo *pCVar15;\n  Curl_addrinfo *pCVar16;\n  uint uVar17;\n  undefined4 *puVar18;\n  addrinfo *paVar19;\n  uint *puVar20;\n  code *pcVar21;\n  undefined *puVar22;\n  undefined4 *puVar23;\n  int local_3c;\n  addrinfo *aihead;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar22 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *result = (Curl_addrinfo *)0x0;\n  local_3c = (*(code *)puVar22)();\n  puVar2 = PTR_Curl_cstrdup_000a6230;\n  puVar22 = PTR_Curl_cmalloc_000a6198;\n  uVar12 = SUB42(servname,0);\n  if (local_3c != 0) goto LAB_00054994;\n  if (aihead == (addrinfo *)0x0) {\nLAB_00054980:\n    pCVar15 = (Curl_addrinfo *)0x0;\n    local_3c = -2;\n  }\n  else {\n    pCVar15 = (Curl_addrinfo *)0x0;\n    pCVar16 = (Curl_addrinfo *)0x0;\n    paVar19 = aihead;\n    do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);\n    if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;\n  }\n  *result = pCVar15;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar22 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar10 = puVar4[2];\n  puVar18 = *(undefined4 **)(puVar22 + 0x516dc);\n  iVar6 = 4;\n  puVar23 = *(undefined4 **)(puVar22 + 0x517cc);\n  pCVar15 = (Curl_addrinfo *)0x0;\n  pCVar16 = (Curl_addrinfo *)0x0;\n  while( true ) {\n    cVar9 = 0x10;\n    if (iVar10 == 10) {\n      cVar9 = 0x1c;\n    }\n    pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);\n    if (pCVar5 == (Curl_addrinfo *)0x0) break;\n    pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);\n    pCVar5->ai_canonname = pcVar7;\n    if (pcVar7 == (char *)0x0) {\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }\n    psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);\n    pCVar5->ai_addr = psVar8;\n    if (psVar8 == (sockaddr *)0x0) {\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) {\n      pCVar15 = pCVar5;\n    }\n    if (pCVar16 != (Curl_addrinfo *)0x0) {\n      pCVar16->ai_next = pCVar5;\n    }\n    iVar10 = puVar4[2];\n    pCVar5->ai_addrlen = cVar9;\n    pCVar5->ai_socktype = 2;\n    pCVar5->ai_family = iVar10;\n    if (iVar10 == 2) {\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    iVar6 = iVar6 + 4;\n    pCVar16 = pCVar5;\n    if (puVar20 == (uint *)0x0) {\n      return (int)pCVar15;\n    }\n  }\n  Curl_freeaddrinfo(pCVar15);\n  return 0;\n}" primitive_type (function_declarator "Curl_getaddrinfo_ex(char *nodename,char *servname,addrinfo *hints,Curl_addrinfo **result)" identifier (parameter_list "(char *nodename,char *servname,addrinfo *hints,Curl_addrinfo **result)" ( (parameter_declaration "char *nodename" primitive_type (pointer_declarator "*nodename" * identifier)) , (parameter_declaration "char *servname" primitive_type (pointer_declarator "*servname" * identifier)) , (parameter_declaration "addrinfo *hints" type_identifier (pointer_declarator "*hints" * identifier)) , (parameter_declaration "Curl_addrinfo **result" type_identifier (pointer_declarator "**result" * (pointer_declarator "*result" * identifier))) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  Curl_addrinfo *pCVar5;\n  int iVar6;\n  char *pcVar7;\n  sockaddr *psVar8;\n  curl_socklen_t cVar9;\n  int iVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  uint uVar13;\n  int iVar14;\n  Curl_addrinfo *pCVar15;\n  Curl_addrinfo *pCVar16;\n  uint uVar17;\n  undefined4 *puVar18;\n  addrinfo *paVar19;\n  uint *puVar20;\n  code *pcVar21;\n  undefined *puVar22;\n  undefined4 *puVar23;\n  int local_3c;\n  addrinfo *aihead;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar22 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *result = (Curl_addrinfo *)0x0;\n  local_3c = (*(code *)puVar22)();\n  puVar2 = PTR_Curl_cstrdup_000a6230;\n  puVar22 = PTR_Curl_cmalloc_000a6198;\n  uVar12 = SUB42(servname,0);\n  if (local_3c != 0) goto LAB_00054994;\n  if (aihead == (addrinfo *)0x0) {\nLAB_00054980:\n    pCVar15 = (Curl_addrinfo *)0x0;\n    local_3c = -2;\n  }\n  else {\n    pCVar15 = (Curl_addrinfo *)0x0;\n    pCVar16 = (Curl_addrinfo *)0x0;\n    paVar19 = aihead;\n    do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);\n    if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;\n  }\n  *result = pCVar15;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar22 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar10 = puVar4[2];\n  puVar18 = *(undefined4 **)(puVar22 + 0x516dc);\n  iVar6 = 4;\n  puVar23 = *(undefined4 **)(puVar22 + 0x517cc);\n  pCVar15 = (Curl_addrinfo *)0x0;\n  pCVar16 = (Curl_addrinfo *)0x0;\n  while( true ) {\n    cVar9 = 0x10;\n    if (iVar10 == 10) {\n      cVar9 = 0x1c;\n    }\n    pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);\n    if (pCVar5 == (Curl_addrinfo *)0x0) break;\n    pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);\n    pCVar5->ai_canonname = pcVar7;\n    if (pcVar7 == (char *)0x0) {\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }\n    psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);\n    pCVar5->ai_addr = psVar8;\n    if (psVar8 == (sockaddr *)0x0) {\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) {\n      pCVar15 = pCVar5;\n    }\n    if (pCVar16 != (Curl_addrinfo *)0x0) {\n      pCVar16->ai_next = pCVar5;\n    }\n    iVar10 = puVar4[2];\n    pCVar5->ai_addrlen = cVar9;\n    pCVar5->ai_socktype = 2;\n    pCVar5->ai_family = iVar10;\n    if (iVar10 == 2) {\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    iVar6 = iVar6 + 4;\n    pCVar16 = pCVar5;\n    if (puVar20 == (uint *)0x0) {\n      return (int)pCVar15;\n    }\n  }\n  Curl_freeaddrinfo(pCVar15);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "Curl_addrinfo *pCVar5;" type_identifier (pointer_declarator "*pCVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "sockaddr *psVar8;" type_identifier (pointer_declarator "*psVar8" * identifier) ;) (declaration "curl_socklen_t cVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined2 uVar12;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "Curl_addrinfo *pCVar15;" type_identifier (pointer_declarator "*pCVar15" * identifier) ;) (declaration "Curl_addrinfo *pCVar16;" type_identifier (pointer_declarator "*pCVar16" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "undefined4 *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "addrinfo *paVar19;" type_identifier (pointer_declarator "*paVar19" * identifier) ;) (declaration "uint *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "code *pcVar21;" type_identifier (pointer_declarator "*pcVar21" * identifier) ;) (declaration "undefined *puVar22;" type_identifier (pointer_declarator "*puVar22" * identifier) ;) (declaration "undefined4 *puVar23;" type_identifier (pointer_declarator "*puVar23" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "addrinfo *aihead;" type_identifier (pointer_declarator "*aihead" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "puVar22 = PTR_getaddrinfo_000a6bb4;" (assignment_expression "puVar22 = PTR_getaddrinfo_000a6bb4" identifier = identifier) ;) (expression_statement "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*result = (Curl_addrinfo *)0x0;" (assignment_expression "*result = (Curl_addrinfo *)0x0" (pointer_expression "*result" * identifier) = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_3c = (*(code *)puVar22)();" (assignment_expression "local_3c = (*(code *)puVar22)()" identifier = (call_expression "(*(code *)puVar22)()" (parenthesized_expression "(*(code *)puVar22)" ( (pointer_expression "*(code *)puVar22" * (cast_expression "(code *)puVar22" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_Curl_cstrdup_000a6230;" (assignment_expression "puVar2 = PTR_Curl_cstrdup_000a6230" identifier = identifier) ;) (expression_statement "puVar22 = PTR_Curl_cmalloc_000a6198;" (assignment_expression "puVar22 = PTR_Curl_cmalloc_000a6198" identifier = identifier) ;) (expression_statement "uVar12 = SUB42(servname,0);" (assignment_expression "uVar12 = SUB42(servname,0)" identifier = (call_expression "SUB42(servname,0)" identifier (argument_list "(servname,0)" ( identifier , number_literal )))) ;) (if_statement "if (local_3c != 0) goto LAB_00054994;" if (parenthesized_expression "(local_3c != 0)" ( (binary_expression "local_3c != 0" identifier != number_literal) )) (goto_statement "goto LAB_00054994;" goto statement_identifier ;)) (if_statement "if (aihead == (addrinfo *)0x0) {\nLAB_00054980:\n    pCVar15 = (Curl_addrinfo *)0x0;\n    local_3c = -2;\n  }\n  else {\n    pCVar15 = (Curl_addrinfo *)0x0;\n    pCVar16 = (Curl_addrinfo *)0x0;\n    paVar19 = aihead;\n    do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);\n    if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;\n  }" if (parenthesized_expression "(aihead == (addrinfo *)0x0)" ( (binary_expression "aihead == (addrinfo *)0x0" identifier == (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00054980:\n    pCVar15 = (Curl_addrinfo *)0x0;\n    local_3c = -2;\n  }" { (labeled_statement "LAB_00054980:\n    pCVar15 = (Curl_addrinfo *)0x0;" statement_identifier : (expression_statement "pCVar15 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar15 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_3c = -2;" (assignment_expression "local_3c = -2" identifier = number_literal) ;) }) (else_clause "else {\n    pCVar15 = (Curl_addrinfo *)0x0;\n    pCVar16 = (Curl_addrinfo *)0x0;\n    paVar19 = aihead;\n    do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);\n    if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;\n  }" else (compound_statement "{\n    pCVar15 = (Curl_addrinfo *)0x0;\n    pCVar16 = (Curl_addrinfo *)0x0;\n    paVar19 = aihead;\n    do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);\n    if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;\n  }" { (expression_statement "pCVar15 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar15 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCVar16 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar16 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "paVar19 = aihead;" (assignment_expression "paVar19 = aihead" identifier = identifier) ;) (do_statement "do {\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    } while (paVar19 != (addrinfo *)0x0);" do (compound_statement "{\n      uVar12 = SUB42(servname,0);\n      uVar17 = 0x10;\n      pCVar5 = pCVar16;\n      if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = SUB42(servname,0);\n      paVar19 = paVar19->ai_next;\n      pCVar16 = pCVar5;\n    }" { (expression_statement "uVar12 = SUB42(servname,0);" (assignment_expression "uVar12 = SUB42(servname,0)" identifier = (call_expression "SUB42(servname,0)" identifier (argument_list "(servname,0)" ( identifier , number_literal )))) ;) (expression_statement "uVar17 = 0x10;" (assignment_expression "uVar17 = 0x10" identifier = number_literal) ;) (expression_statement "pCVar5 = pCVar16;" (assignment_expression "pCVar5 = pCVar16" identifier = identifier) ;) (if_statement "if (paVar19->ai_family == 2) {\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }\n      else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }" if (parenthesized_expression "(paVar19->ai_family == 2)" ( (binary_expression "paVar19->ai_family == 2" (field_expression "paVar19->ai_family" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        psVar8 = paVar19->ai_addr;\nLAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }\n      }" { (expression_statement "psVar8 = paVar19->ai_addr;" (assignment_expression "psVar8 = paVar19->ai_addr" identifier = (field_expression "paVar19->ai_addr" identifier -> field_identifier)) ;) (labeled_statement "LAB_00054880:\n        if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }" statement_identifier : (if_statement "if (((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)) {\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }" if (parenthesized_expression "(((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen))" ( (binary_expression "((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)) &&\n           (uVar17 <= paVar19->ai_addrlen)" (parenthesized_expression "((psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0))" ( (binary_expression "(psVar8 != (sockaddr *)0x0) && (paVar19->ai_addrlen != 0)" (parenthesized_expression "(psVar8 != (sockaddr *)0x0)" ( (binary_expression "psVar8 != (sockaddr *)0x0" identifier != (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(paVar19->ai_addrlen != 0)" ( (binary_expression "paVar19->ai_addrlen != 0" (field_expression "paVar19->ai_addrlen" identifier -> field_identifier) != number_literal) ))) )) && (parenthesized_expression "(uVar17 <= paVar19->ai_addrlen)" ( (binary_expression "uVar17 <= paVar19->ai_addrlen" identifier <= (field_expression "paVar19->ai_addrlen" identifier -> field_identifier)) ))) )) (compound_statement "{\n          pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);\n          if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }\nLAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          Curl_freeaddrinfo(pCVar15);\n          local_3c = -10;\n          *result = (Curl_addrinfo *)0x0;\n          goto LAB_00054994;\n        }" { (expression_statement "pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20);" (assignment_expression "pCVar5 = (Curl_addrinfo *)(**(code **)puVar22)(0x20)" identifier = (cast_expression "(Curl_addrinfo *)(**(code **)puVar22)(0x20)" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar22)(0x20)" (parenthesized_expression "(**(code **)puVar22)" ( (pointer_expression "**(code **)puVar22" * (pointer_expression "*(code **)puVar22" * (cast_expression "(code **)puVar22" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(0x20)" ( number_literal ))))) ;) (if_statement "if (pCVar5 != (Curl_addrinfo *)0x0) {\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }" if (parenthesized_expression "(pCVar5 != (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar5 != (Curl_addrinfo *)0x0" identifier != (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar14 = paVar19->ai_flags;\n            iVar10 = paVar19->ai_socktype;\n            iVar6 = paVar19->ai_protocol;\n            pcVar21 = *(code **)puVar22;\n            pCVar5->ai_family = paVar19->ai_family;\n            pCVar5->ai_flags = iVar14;\n            pCVar5->ai_socktype = iVar10;\n            pCVar5->ai_protocol = iVar6;\n            pCVar5->ai_addrlen = uVar17;\n            pCVar5->ai_addr = (sockaddr *)0x0;\n            pCVar5->ai_canonname = (char *)0x0;\n            pCVar5->ai_next = (Curl_addrinfo *)0x0;\n            psVar8 = (sockaddr *)(*pcVar21)(uVar17);\n            uVar12 = (undefined2)iVar10;\n            pCVar5->ai_addr = psVar8;\n            if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_Curl_cfree_000a6144)(pCVar5);\n          }" { (expression_statement "iVar14 = paVar19->ai_flags;" (assignment_expression "iVar14 = paVar19->ai_flags" identifier = (field_expression "paVar19->ai_flags" identifier -> field_identifier)) ;) (expression_statement "iVar10 = paVar19->ai_socktype;" (assignment_expression "iVar10 = paVar19->ai_socktype" identifier = (field_expression "paVar19->ai_socktype" identifier -> field_identifier)) ;) (expression_statement "iVar6 = paVar19->ai_protocol;" (assignment_expression "iVar6 = paVar19->ai_protocol" identifier = (field_expression "paVar19->ai_protocol" identifier -> field_identifier)) ;) (expression_statement "pcVar21 = *(code **)puVar22;" (assignment_expression "pcVar21 = *(code **)puVar22" identifier = (pointer_expression "*(code **)puVar22" * (cast_expression "(code **)puVar22" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pCVar5->ai_family = paVar19->ai_family;" (assignment_expression "pCVar5->ai_family = paVar19->ai_family" (field_expression "pCVar5->ai_family" identifier -> field_identifier) = (field_expression "paVar19->ai_family" identifier -> field_identifier)) ;) (expression_statement "pCVar5->ai_flags = iVar14;" (assignment_expression "pCVar5->ai_flags = iVar14" (field_expression "pCVar5->ai_flags" identifier -> field_identifier) = identifier) ;) (expression_statement "pCVar5->ai_socktype = iVar10;" (assignment_expression "pCVar5->ai_socktype = iVar10" (field_expression "pCVar5->ai_socktype" identifier -> field_identifier) = identifier) ;) (expression_statement "pCVar5->ai_protocol = iVar6;" (assignment_expression "pCVar5->ai_protocol = iVar6" (field_expression "pCVar5->ai_protocol" identifier -> field_identifier) = identifier) ;) (expression_statement "pCVar5->ai_addrlen = uVar17;" (assignment_expression "pCVar5->ai_addrlen = uVar17" (field_expression "pCVar5->ai_addrlen" identifier -> field_identifier) = identifier) ;) (expression_statement "pCVar5->ai_addr = (sockaddr *)0x0;" (assignment_expression "pCVar5->ai_addr = (sockaddr *)0x0" (field_expression "pCVar5->ai_addr" identifier -> field_identifier) = (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCVar5->ai_canonname = (char *)0x0;" (assignment_expression "pCVar5->ai_canonname = (char *)0x0" (field_expression "pCVar5->ai_canonname" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCVar5->ai_next = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar5->ai_next = (Curl_addrinfo *)0x0" (field_expression "pCVar5->ai_next" identifier -> field_identifier) = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar8 = (sockaddr *)(*pcVar21)(uVar17);" (assignment_expression "psVar8 = (sockaddr *)(*pcVar21)(uVar17)" identifier = (cast_expression "(sockaddr *)(*pcVar21)(uVar17)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar21)(uVar17)" (parenthesized_expression "(*pcVar21)" ( (pointer_expression "*pcVar21" * identifier) )) (argument_list "(uVar17)" ( identifier ))))) ;) (expression_statement "uVar12 = (undefined2)iVar10;" (assignment_expression "uVar12 = (undefined2)iVar10" identifier = (cast_expression "(undefined2)iVar10" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "pCVar5->ai_addr = psVar8;" (assignment_expression "pCVar5->ai_addr = psVar8" (field_expression "pCVar5->ai_addr" identifier -> field_identifier) = identifier) ;) (if_statement "if (psVar8 != (sockaddr *)0x0) {\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }" if (parenthesized_expression "(psVar8 != (sockaddr *)0x0)" ( (binary_expression "psVar8 != (sockaddr *)0x0" identifier != (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              servname = (char *)paVar19->ai_addr;\n              (*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);\n              if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }\n              if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }\n              goto LAB_00054944;\n            }" { (expression_statement "servname = (char *)paVar19->ai_addr;" (assignment_expression "servname = (char *)paVar19->ai_addr" identifier = (cast_expression "(char *)paVar19->ai_addr" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "paVar19->ai_addr" identifier -> field_identifier))) ;) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(psVar8,servname,uVar17)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(psVar8,servname,uVar17)" ( identifier , identifier , identifier ))) ;) (if_statement "if (paVar19->ai_canonname != (char *)0x0) {\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }" if (parenthesized_expression "(paVar19->ai_canonname != (char *)0x0)" ( (binary_expression "paVar19->ai_canonname != (char *)0x0" (field_expression "paVar19->ai_canonname" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                pcVar7 = (char *)(**(code **)puVar2)();\n                uVar12 = SUB42(servname,0);\n                pCVar5->ai_canonname = pcVar7;\n                puVar1 = PTR_Curl_cfree_000a6144;\n                if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }\n              }" { (expression_statement "pcVar7 = (char *)(**(code **)puVar2)();" (assignment_expression "pcVar7 = (char *)(**(code **)puVar2)()" identifier = (cast_expression "(char *)(**(code **)puVar2)()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar2)()" (parenthesized_expression "(**(code **)puVar2)" ( (pointer_expression "**(code **)puVar2" * (pointer_expression "*(code **)puVar2" * (cast_expression "(code **)puVar2" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar12 = SUB42(servname,0);" (assignment_expression "uVar12 = SUB42(servname,0)" identifier = (call_expression "SUB42(servname,0)" identifier (argument_list "(servname,0)" ( identifier , number_literal )))) ;) (expression_statement "pCVar5->ai_canonname = pcVar7;" (assignment_expression "pCVar5->ai_canonname = pcVar7" (field_expression "pCVar5->ai_canonname" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar1 = PTR_Curl_cfree_000a6144;" (assignment_expression "puVar1 = PTR_Curl_cfree_000a6144" identifier = identifier) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                  (**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);\n                  (**(code **)puVar1)(pCVar5);\n                  goto LAB_000549f4;\n                }" { (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(pCVar5->ai_addr)" (parenthesized_expression "(**(code **)PTR_Curl_cfree_000a6144)" ( (pointer_expression "**(code **)PTR_Curl_cfree_000a6144" * (pointer_expression "*(code **)PTR_Curl_cfree_000a6144" * (cast_expression "(code **)PTR_Curl_cfree_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(pCVar5->ai_addr)" ( (field_expression "pCVar5->ai_addr" identifier -> field_identifier) ))) ;) (expression_statement "(**(code **)puVar1)(pCVar5);" (call_expression "(**(code **)puVar1)(pCVar5)" (parenthesized_expression "(**(code **)puVar1)" ( (pointer_expression "**(code **)puVar1" * (pointer_expression "*(code **)puVar1" * (cast_expression "(code **)puVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(pCVar5)" ( identifier ))) ;) (goto_statement "goto LAB_000549f4;" goto statement_identifier ;) })) })) (if_statement "if (pCVar15 == (Curl_addrinfo *)0x0) {\n                pCVar15 = pCVar5;\n              }" if (parenthesized_expression "(pCVar15 == (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar15 == (Curl_addrinfo *)0x0" identifier == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                pCVar15 = pCVar5;\n              }" { (expression_statement "pCVar15 = pCVar5;" (assignment_expression "pCVar15 = pCVar5" identifier = identifier) ;) })) (if_statement "if (pCVar16 != (Curl_addrinfo *)0x0) {\n                pCVar16->ai_next = pCVar5;\n              }" if (parenthesized_expression "(pCVar16 != (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar16 != (Curl_addrinfo *)0x0" identifier != (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                pCVar16->ai_next = pCVar5;\n              }" { (expression_statement "pCVar16->ai_next = pCVar5;" (assignment_expression "pCVar16->ai_next = pCVar5" (field_expression "pCVar16->ai_next" identifier -> field_identifier) = identifier) ;) })) (goto_statement "goto LAB_00054944;" goto statement_identifier ;) })) (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(pCVar5);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(pCVar5)" (parenthesized_expression "(**(code **)PTR_Curl_cfree_000a6144)" ( (pointer_expression "**(code **)PTR_Curl_cfree_000a6144" * (pointer_expression "*(code **)PTR_Curl_cfree_000a6144" * (cast_expression "(code **)PTR_Curl_cfree_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(pCVar5)" ( identifier ))) ;) })) (labeled_statement "LAB_000549f4:\n          if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" statement_identifier : (if_statement "if (aihead != (addrinfo *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" if (parenthesized_expression "(aihead != (addrinfo *)0x0)" ( (binary_expression "aihead != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" { (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" ( (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" * (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (expression_statement "Curl_freeaddrinfo(pCVar15);" (call_expression "Curl_freeaddrinfo(pCVar15)" identifier (argument_list "(pCVar15)" ( identifier ))) ;) (expression_statement "local_3c = -10;" (assignment_expression "local_3c = -10" identifier = number_literal) ;) (expression_statement "*result = (Curl_addrinfo *)0x0;" (assignment_expression "*result = (Curl_addrinfo *)0x0" (pointer_expression "*result" * identifier) = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00054994;" goto statement_identifier ;) }))) }) (else_clause "else if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }" else (if_statement "if (paVar19->ai_family == 10) {\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }" if (parenthesized_expression "(paVar19->ai_family == 10)" ( (binary_expression "paVar19->ai_family == 10" (field_expression "paVar19->ai_family" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        uVar17 = 0x1c;\n        psVar8 = paVar19->ai_addr;\n        goto LAB_00054880;\n      }" { (expression_statement "uVar17 = 0x1c;" (assignment_expression "uVar17 = 0x1c" identifier = number_literal) ;) (expression_statement "psVar8 = paVar19->ai_addr;" (assignment_expression "psVar8 = paVar19->ai_addr" identifier = (field_expression "paVar19->ai_addr" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00054880;" goto statement_identifier ;) })))) (labeled_statement "LAB_00054944:\n      uVar12 = SUB42(servname,0);" statement_identifier : (expression_statement "uVar12 = SUB42(servname,0);" (assignment_expression "uVar12 = SUB42(servname,0)" identifier = (call_expression "SUB42(servname,0)" identifier (argument_list "(servname,0)" ( identifier , number_literal )))) ;)) (expression_statement "paVar19 = paVar19->ai_next;" (assignment_expression "paVar19 = paVar19->ai_next" identifier = (field_expression "paVar19->ai_next" identifier -> field_identifier)) ;) (expression_statement "pCVar16 = pCVar5;" (assignment_expression "pCVar16 = pCVar5" identifier = identifier) ;) }) while (parenthesized_expression "(paVar19 != (addrinfo *)0x0)" ( (binary_expression "paVar19 != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (aihead != (addrinfo *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" if (parenthesized_expression "(aihead != (addrinfo *)0x0)" ( (binary_expression "aihead != (addrinfo *)0x0" identifier != (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" { (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" ( (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" * (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (pCVar15 == (Curl_addrinfo *)0x0) goto LAB_00054980;" if (parenthesized_expression "(pCVar15 == (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar15 == (Curl_addrinfo *)0x0" identifier == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00054980;" goto statement_identifier ;)) }))) (expression_statement "*result = pCVar15;" (assignment_expression "*result = pCVar15" (pointer_expression "*result" * identifier) = identifier) ;) (labeled_statement "LAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" statement_identifier : (if_statement "if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" if (parenthesized_expression "(puVar4 == *(undefined4 **)puVar3)" ( (binary_expression "puVar4 == *(undefined4 **)puVar3" identifier == (pointer_expression "*(undefined4 **)puVar3" * (cast_expression "(undefined4 **)puVar3" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return local_3c;\n  }" { (return_statement "return local_3c;" return identifier ;) }))) (expression_statement "puVar22 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar22 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)) {\n    return 0;\n  }" if (parenthesized_expression "((puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0))" ( (binary_expression "(puVar4 == (undefined4 *)0x0) || (puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)" (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0)" ( (comma_expression "puVar20 = *(uint **)puVar4[4], puVar20 == (uint *)0x0" (assignment_expression "puVar20 = *(uint **)puVar4[4]" identifier = (pointer_expression "*(uint **)puVar4[4]" * (cast_expression "(uint **)puVar4[4]" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar4[4]" identifier [ number_literal ])))) , (binary_expression "puVar20 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar10 = puVar4[2];" (assignment_expression "iVar10 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "puVar18 = *(undefined4 **)(puVar22 + 0x516dc);" (assignment_expression "puVar18 = *(undefined4 **)(puVar22 + 0x516dc)" identifier = (pointer_expression "*(undefined4 **)(puVar22 + 0x516dc)" * (cast_expression "(undefined4 **)(puVar22 + 0x516dc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar22 + 0x516dc)" ( (binary_expression "puVar22 + 0x516dc" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = 4;" (assignment_expression "iVar6 = 4" identifier = number_literal) ;) (expression_statement "puVar23 = *(undefined4 **)(puVar22 + 0x517cc);" (assignment_expression "puVar23 = *(undefined4 **)(puVar22 + 0x517cc)" identifier = (pointer_expression "*(undefined4 **)(puVar22 + 0x517cc)" * (cast_expression "(undefined4 **)(puVar22 + 0x517cc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar22 + 0x517cc)" ( (binary_expression "puVar22 + 0x517cc" identifier + number_literal) ))))) ;) (expression_statement "pCVar15 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar15 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCVar16 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar16 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n    cVar9 = 0x10;\n    if (iVar10 == 10) {\n      cVar9 = 0x1c;\n    }\n    pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);\n    if (pCVar5 == (Curl_addrinfo *)0x0) break;\n    pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);\n    pCVar5->ai_canonname = pcVar7;\n    if (pcVar7 == (char *)0x0) {\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }\n    psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);\n    pCVar5->ai_addr = psVar8;\n    if (psVar8 == (sockaddr *)0x0) {\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) {\n      pCVar15 = pCVar5;\n    }\n    if (pCVar16 != (Curl_addrinfo *)0x0) {\n      pCVar16->ai_next = pCVar5;\n    }\n    iVar10 = puVar4[2];\n    pCVar5->ai_addrlen = cVar9;\n    pCVar5->ai_socktype = 2;\n    pCVar5->ai_family = iVar10;\n    if (iVar10 == 2) {\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    iVar6 = iVar6 + 4;\n    pCVar16 = pCVar5;\n    if (puVar20 == (uint *)0x0) {\n      return (int)pCVar15;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    cVar9 = 0x10;\n    if (iVar10 == 10) {\n      cVar9 = 0x1c;\n    }\n    pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);\n    if (pCVar5 == (Curl_addrinfo *)0x0) break;\n    pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);\n    pCVar5->ai_canonname = pcVar7;\n    if (pcVar7 == (char *)0x0) {\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }\n    psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);\n    pCVar5->ai_addr = psVar8;\n    if (psVar8 == (sockaddr *)0x0) {\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }\n    if (pCVar15 == (Curl_addrinfo *)0x0) {\n      pCVar15 = pCVar5;\n    }\n    if (pCVar16 != (Curl_addrinfo *)0x0) {\n      pCVar16->ai_next = pCVar5;\n    }\n    iVar10 = puVar4[2];\n    pCVar5->ai_addrlen = cVar9;\n    pCVar5->ai_socktype = 2;\n    pCVar5->ai_family = iVar10;\n    if (iVar10 == 2) {\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    iVar6 = iVar6 + 4;\n    pCVar16 = pCVar5;\n    if (puVar20 == (uint *)0x0) {\n      return (int)pCVar15;\n    }\n  }" { (expression_statement "cVar9 = 0x10;" (assignment_expression "cVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (iVar10 == 10) {\n      cVar9 = 0x1c;\n    }" if (parenthesized_expression "(iVar10 == 10)" ( (binary_expression "iVar10 == 10" identifier == number_literal) )) (compound_statement "{\n      cVar9 = 0x1c;\n    }" { (expression_statement "cVar9 = 0x1c;" (assignment_expression "cVar9 = 0x1c" identifier = number_literal) ;) })) (expression_statement "pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20);" (assignment_expression "pCVar5 = (Curl_addrinfo *)(*(code *)*puVar18)(1,0x20)" identifier = (cast_expression "(Curl_addrinfo *)(*(code *)*puVar18)(1,0x20)" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar18)(1,0x20)" (parenthesized_expression "(*(code *)*puVar18)" ( (pointer_expression "*(code *)*puVar18" * (cast_expression "(code *)*puVar18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar18" * identifier))) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (if_statement "if (pCVar5 == (Curl_addrinfo *)0x0) break;" if (parenthesized_expression "(pCVar5 == (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar5 == (Curl_addrinfo *)0x0" identifier == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = (char *)(*(code *)*puVar23)(*puVar4);" (assignment_expression "pcVar7 = (char *)(*(code *)*puVar23)(*puVar4)" identifier = (cast_expression "(char *)(*(code *)*puVar23)(*puVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar23)(*puVar4)" (parenthesized_expression "(*(code *)*puVar23)" ( (pointer_expression "*(code *)*puVar23" * (cast_expression "(code *)*puVar23" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar23" * identifier))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) ))))) ;) (expression_statement "pCVar5->ai_canonname = pcVar7;" (assignment_expression "pCVar5->ai_canonname = pcVar7" (field_expression "pCVar5->ai_canonname" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);\n      break;\n    }" { (expression_statement "(*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5);" (call_expression "(*(code *)**(undefined4 **)(puVar22 + 0x516e0))(pCVar5)" (parenthesized_expression "(*(code *)**(undefined4 **)(puVar22 + 0x516e0))" ( (pointer_expression "*(code *)**(undefined4 **)(puVar22 + 0x516e0)" * (cast_expression "(code *)**(undefined4 **)(puVar22 + 0x516e0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(puVar22 + 0x516e0)" * (pointer_expression "*(undefined4 **)(puVar22 + 0x516e0)" * (cast_expression "(undefined4 **)(puVar22 + 0x516e0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar22 + 0x516e0)" ( (binary_expression "puVar22 + 0x516e0" identifier + number_literal) ))))))) )) (argument_list "(pCVar5)" ( identifier ))) ;) (break_statement "break;" break ;) })) (expression_statement "psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9);" (assignment_expression "psVar8 = (sockaddr *)(*(code *)*puVar18)(1,cVar9)" identifier = (cast_expression "(sockaddr *)(*(code *)*puVar18)(1,cVar9)" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar18)(1,cVar9)" (parenthesized_expression "(*(code *)*puVar18)" ( (pointer_expression "*(code *)*puVar18" * (cast_expression "(code *)*puVar18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar18" * identifier))) )) (argument_list "(1,cVar9)" ( number_literal , identifier ))))) ;) (expression_statement "pCVar5->ai_addr = psVar8;" (assignment_expression "pCVar5->ai_addr = psVar8" (field_expression "pCVar5->ai_addr" identifier -> field_identifier) = identifier) ;) (if_statement "if (psVar8 == (sockaddr *)0x0) {\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }" if (parenthesized_expression "(psVar8 == (sockaddr *)0x0)" ( (binary_expression "psVar8 == (sockaddr *)0x0" identifier == (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = *(undefined4 **)(puVar22 + 0x516e0);\n      (*(code *)*puVar4)(pCVar5->ai_canonname);\n      (*(code *)*puVar4)(pCVar5);\n      Curl_freeaddrinfo(pCVar15);\n      return 0;\n    }" { (expression_statement "puVar4 = *(undefined4 **)(puVar22 + 0x516e0);" (assignment_expression "puVar4 = *(undefined4 **)(puVar22 + 0x516e0)" identifier = (pointer_expression "*(undefined4 **)(puVar22 + 0x516e0)" * (cast_expression "(undefined4 **)(puVar22 + 0x516e0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar22 + 0x516e0)" ( (binary_expression "puVar22 + 0x516e0" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)*puVar4)(pCVar5->ai_canonname);" (call_expression "(*(code *)*puVar4)(pCVar5->ai_canonname)" (parenthesized_expression "(*(code *)*puVar4)" ( (pointer_expression "*(code *)*puVar4" * (cast_expression "(code *)*puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) )) (argument_list "(pCVar5->ai_canonname)" ( (field_expression "pCVar5->ai_canonname" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)*puVar4)(pCVar5);" (call_expression "(*(code *)*puVar4)(pCVar5)" (parenthesized_expression "(*(code *)*puVar4)" ( (pointer_expression "*(code *)*puVar4" * (cast_expression "(code *)*puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) )) (argument_list "(pCVar5)" ( identifier ))) ;) (expression_statement "Curl_freeaddrinfo(pCVar15);" (call_expression "Curl_freeaddrinfo(pCVar15)" identifier (argument_list "(pCVar15)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pCVar15 == (Curl_addrinfo *)0x0) {\n      pCVar15 = pCVar5;\n    }" if (parenthesized_expression "(pCVar15 == (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar15 == (Curl_addrinfo *)0x0" identifier == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pCVar15 = pCVar5;\n    }" { (expression_statement "pCVar15 = pCVar5;" (assignment_expression "pCVar15 = pCVar5" identifier = identifier) ;) })) (if_statement "if (pCVar16 != (Curl_addrinfo *)0x0) {\n      pCVar16->ai_next = pCVar5;\n    }" if (parenthesized_expression "(pCVar16 != (Curl_addrinfo *)0x0)" ( (binary_expression "pCVar16 != (Curl_addrinfo *)0x0" identifier != (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pCVar16->ai_next = pCVar5;\n    }" { (expression_statement "pCVar16->ai_next = pCVar5;" (assignment_expression "pCVar16->ai_next = pCVar5" (field_expression "pCVar16->ai_next" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar10 = puVar4[2];" (assignment_expression "iVar10 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "pCVar5->ai_addrlen = cVar9;" (assignment_expression "pCVar5->ai_addrlen = cVar9" (field_expression "pCVar5->ai_addrlen" identifier -> field_identifier) = identifier) ;) (expression_statement "pCVar5->ai_socktype = 2;" (assignment_expression "pCVar5->ai_socktype = 2" (field_expression "pCVar5->ai_socktype" identifier -> field_identifier) = number_literal) ;) (expression_statement "pCVar5->ai_family = iVar10;" (assignment_expression "pCVar5->ai_family = iVar10" (field_expression "pCVar5->ai_family" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar10 == 2) {\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }\n    else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }" if (parenthesized_expression "(iVar10 == 2)" ( (binary_expression "iVar10 == 2" identifier == number_literal) )) (compound_statement "{\n      uVar11 = *puVar20;\n      pcVar7 = psVar8->sa_data + 2;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;\n      pcVar7 = psVar8->sa_data + 5;\n      uVar17 = (uint)pcVar7 & 3;\n      *(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;\n      iVar10 = puVar4[2];\n      *(undefined2 *)psVar8->sa_data = uVar12;\n      psVar8->sa_family = (sa_family_t)iVar10;\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }" { (expression_statement "uVar11 = *puVar20;" (assignment_expression "uVar11 = *puVar20" identifier = (pointer_expression "*puVar20" * identifier)) ;) (expression_statement "pcVar7 = psVar8->sa_data + 2;" (assignment_expression "pcVar7 = psVar8->sa_data + 2" identifier = (binary_expression "psVar8->sa_data + 2" (field_expression "psVar8->sa_data" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar17 = (uint)pcVar7 & 3;" (assignment_expression "uVar17 = (uint)pcVar7 & 3" identifier = (binary_expression "(uint)pcVar7 & 3" (cast_expression "(uint)pcVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8;" (assignment_expression "*(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8" (pointer_expression "*(uint *)(pcVar7 + -uVar17)" * (cast_expression "(uint *)(pcVar7 + -uVar17)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + -uVar17)" ( (binary_expression "pcVar7 + -uVar17" identifier + (unary_expression "-uVar17" - identifier)) )))) = (binary_expression "*(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8 | uVar11 >> uVar17 * 8" (binary_expression "*(uint *)(pcVar7 + -uVar17) & -1 << (4 - uVar17) * 8" (pointer_expression "*(uint *)(pcVar7 + -uVar17)" * (cast_expression "(uint *)(pcVar7 + -uVar17)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + -uVar17)" ( (binary_expression "pcVar7 + -uVar17" identifier + (unary_expression "-uVar17" - identifier)) )))) & (binary_expression "-1 << (4 - uVar17) * 8" number_literal << (binary_expression "(4 - uVar17) * 8" (parenthesized_expression "(4 - uVar17)" ( (binary_expression "4 - uVar17" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar11 >> uVar17 * 8" identifier >> (binary_expression "uVar17 * 8" identifier * number_literal)))) ;) (expression_statement "pcVar7 = psVar8->sa_data + 5;" (assignment_expression "pcVar7 = psVar8->sa_data + 5" identifier = (binary_expression "psVar8->sa_data + 5" (field_expression "psVar8->sa_data" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar17 = (uint)pcVar7 & 3;" (assignment_expression "uVar17 = (uint)pcVar7 & 3" identifier = (binary_expression "(uint)pcVar7 & 3" (cast_expression "(uint)pcVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8;" (assignment_expression "*(uint *)(pcVar7 + -uVar17) =\n           *(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8" (pointer_expression "*(uint *)(pcVar7 + -uVar17)" * (cast_expression "(uint *)(pcVar7 + -uVar17)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + -uVar17)" ( (binary_expression "pcVar7 + -uVar17" identifier + (unary_expression "-uVar17" - identifier)) )))) = (binary_expression "*(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8 |\n           uVar11 << (3 - uVar17) * 8" (binary_expression "*(uint *)(pcVar7 + -uVar17) & 0xffffffffU >> (uVar17 + 1) * 8" (pointer_expression "*(uint *)(pcVar7 + -uVar17)" * (cast_expression "(uint *)(pcVar7 + -uVar17)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + -uVar17)" ( (binary_expression "pcVar7 + -uVar17" identifier + (unary_expression "-uVar17" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar17 + 1) * 8" number_literal >> (binary_expression "(uVar17 + 1) * 8" (parenthesized_expression "(uVar17 + 1)" ( (binary_expression "uVar17 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar11 << (3 - uVar17) * 8" identifier << (binary_expression "(3 - uVar17) * 8" (parenthesized_expression "(3 - uVar17)" ( (binary_expression "3 - uVar17" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "iVar10 = puVar4[2];" (assignment_expression "iVar10 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)psVar8->sa_data = uVar12;" (assignment_expression "*(undefined2 *)psVar8->sa_data = uVar12" (pointer_expression "*(undefined2 *)psVar8->sa_data" * (cast_expression "(undefined2 *)psVar8->sa_data" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar8->sa_data" identifier -> field_identifier))) = identifier) ;) (expression_statement "psVar8->sa_family = (sa_family_t)iVar10;" (assignment_expression "psVar8->sa_family = (sa_family_t)iVar10" (field_expression "psVar8->sa_family" identifier -> field_identifier) = (cast_expression "(sa_family_t)iVar10" ( (type_descriptor "sa_family_t" type_identifier) ) identifier)) ;) (expression_statement "puVar20 = *(uint **)(puVar4[4] + iVar6);" (assignment_expression "puVar20 = *(uint **)(puVar4[4] + iVar6)" identifier = (pointer_expression "*(uint **)(puVar4[4] + iVar6)" * (cast_expression "(uint **)(puVar4[4] + iVar6)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[4] + iVar6)" ( (binary_expression "puVar4[4] + iVar6" (subscript_expression "puVar4[4]" identifier [ number_literal ]) + identifier) ))))) ;) }) (else_clause "else {\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }" else (compound_statement "{\n      if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }\n      puVar20 = *(uint **)(puVar4[4] + iVar6);\n    }" { (if_statement "if (iVar10 == 10) {\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }" if (parenthesized_expression "(iVar10 == 10)" ( (binary_expression "iVar10 == 10" identifier == number_literal) )) (compound_statement "{\n        uVar13 = puVar20[1];\n        uVar11 = puVar20[2];\n        uVar17 = puVar20[3];\n        *(uint *)(psVar8->sa_data + 6) = *puVar20;\n        *(uint *)(psVar8->sa_data + 10) = uVar13;\n        psVar8[1].sa_family = (short)(uVar11 >> 0x10);\n        psVar8[1].sa_data[0] = (char)(uVar11 >> 8);\n        psVar8[1].sa_data[1] = (char)uVar11;\n        *(uint *)(psVar8[1].sa_data + 2) = uVar17;\n        iVar10 = puVar4[2];\n        psVar8->sa_family = (sa_family_t)iVar10;\n        *(undefined2 *)psVar8->sa_data = uVar12;\n      }" { (expression_statement "uVar13 = puVar20[1];" (assignment_expression "uVar13 = puVar20[1]" identifier = (subscript_expression "puVar20[1]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar20[2];" (assignment_expression "uVar11 = puVar20[2]" identifier = (subscript_expression "puVar20[2]" identifier [ number_literal ])) ;) (expression_statement "uVar17 = puVar20[3];" (assignment_expression "uVar17 = puVar20[3]" identifier = (subscript_expression "puVar20[3]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(psVar8->sa_data + 6) = *puVar20;" (assignment_expression "*(uint *)(psVar8->sa_data + 6) = *puVar20" (pointer_expression "*(uint *)(psVar8->sa_data + 6)" * (cast_expression "(uint *)(psVar8->sa_data + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar8->sa_data + 6)" ( (binary_expression "psVar8->sa_data + 6" (field_expression "psVar8->sa_data" identifier -> field_identifier) + number_literal) )))) = (pointer_expression "*puVar20" * identifier)) ;) (expression_statement "*(uint *)(psVar8->sa_data + 10) = uVar13;" (assignment_expression "*(uint *)(psVar8->sa_data + 10) = uVar13" (pointer_expression "*(uint *)(psVar8->sa_data + 10)" * (cast_expression "(uint *)(psVar8->sa_data + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar8->sa_data + 10)" ( (binary_expression "psVar8->sa_data + 10" (field_expression "psVar8->sa_data" identifier -> field_identifier) + number_literal) )))) = identifier) ;) (expression_statement "psVar8[1].sa_family = (short)(uVar11 >> 0x10);" (assignment_expression "psVar8[1].sa_family = (short)(uVar11 >> 0x10)" (field_expression "psVar8[1].sa_family" (subscript_expression "psVar8[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(short)(uVar11 >> 0x10)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar11 >> 0x10)" ( (binary_expression "uVar11 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "psVar8[1].sa_data[0] = (char)(uVar11 >> 8);" (assignment_expression "psVar8[1].sa_data[0] = (char)(uVar11 >> 8)" (subscript_expression "psVar8[1].sa_data[0]" (field_expression "psVar8[1].sa_data" (subscript_expression "psVar8[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (cast_expression "(char)(uVar11 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar11 >> 8)" ( (binary_expression "uVar11 >> 8" identifier >> number_literal) )))) ;) (expression_statement "psVar8[1].sa_data[1] = (char)uVar11;" (assignment_expression "psVar8[1].sa_data[1] = (char)uVar11" (subscript_expression "psVar8[1].sa_data[1]" (field_expression "psVar8[1].sa_data" (subscript_expression "psVar8[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(uint *)(psVar8[1].sa_data + 2) = uVar17;" (assignment_expression "*(uint *)(psVar8[1].sa_data + 2) = uVar17" (pointer_expression "*(uint *)(psVar8[1].sa_data + 2)" * (cast_expression "(uint *)(psVar8[1].sa_data + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar8[1].sa_data + 2)" ( (binary_expression "psVar8[1].sa_data + 2" (field_expression "psVar8[1].sa_data" (subscript_expression "psVar8[1]" identifier [ number_literal ]) . field_identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar10 = puVar4[2];" (assignment_expression "iVar10 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "psVar8->sa_family = (sa_family_t)iVar10;" (assignment_expression "psVar8->sa_family = (sa_family_t)iVar10" (field_expression "psVar8->sa_family" identifier -> field_identifier) = (cast_expression "(sa_family_t)iVar10" ( (type_descriptor "sa_family_t" type_identifier) ) identifier)) ;) (expression_statement "*(undefined2 *)psVar8->sa_data = uVar12;" (assignment_expression "*(undefined2 *)psVar8->sa_data = uVar12" (pointer_expression "*(undefined2 *)psVar8->sa_data" * (cast_expression "(undefined2 *)psVar8->sa_data" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar8->sa_data" identifier -> field_identifier))) = identifier) ;) })) (expression_statement "puVar20 = *(uint **)(puVar4[4] + iVar6);" (assignment_expression "puVar20 = *(uint **)(puVar4[4] + iVar6)" identifier = (pointer_expression "*(uint **)(puVar4[4] + iVar6)" * (cast_expression "(uint **)(puVar4[4] + iVar6)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[4] + iVar6)" ( (binary_expression "puVar4[4] + iVar6" (subscript_expression "puVar4[4]" identifier [ number_literal ]) + identifier) ))))) ;) }))) (expression_statement "iVar6 = iVar6 + 4;" (assignment_expression "iVar6 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) (expression_statement "pCVar16 = pCVar5;" (assignment_expression "pCVar16 = pCVar5" identifier = identifier) ;) (if_statement "if (puVar20 == (uint *)0x0) {\n      return (int)pCVar15;\n    }" if (parenthesized_expression "(puVar20 == (uint *)0x0)" ( (binary_expression "puVar20 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (int)pCVar15;\n    }" { (return_statement "return (int)pCVar15;" return (cast_expression "(int)pCVar15" ( (type_descriptor "int" primitive_type) ) identifier) ;) })) })) (expression_statement "Curl_freeaddrinfo(pCVar15);" (call_expression "Curl_freeaddrinfo(pCVar15)" identifier (argument_list "(pCVar15)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}\n\n" (function_definition "int FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}" primitive_type (function_declarator "FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined2 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined2 uVar12;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "undefined4 uVar15;" type_identifier identifier ;) (declaration "undefined4 *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "undefined4 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "uint *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "code *pcVar22;" type_identifier (pointer_declarator "*pcVar22" * identifier) ;) (declaration "undefined *puVar23;" type_identifier (pointer_declarator "*puVar23" * identifier) ;) (declaration "undefined4 *puVar24;" type_identifier (pointer_declarator "*puVar24" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined4 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "puVar23 = PTR_getaddrinfo_000a6bb4;" (assignment_expression "puVar23 = PTR_getaddrinfo_000a6bb4" identifier = identifier) ;) (expression_statement "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "local_3c = (*(code *)puVar23)();" (assignment_expression "local_3c = (*(code *)puVar23)()" identifier = (call_expression "(*(code *)puVar23)()" (parenthesized_expression "(*(code *)puVar23)" ( (pointer_expression "*(code *)puVar23" * (cast_expression "(code *)puVar23" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_PTR_strdup_000a6230;" (assignment_expression "puVar2 = PTR_PTR_strdup_000a6230" identifier = identifier) ;) (expression_statement "puVar23 = PTR_PTR_malloc_000a6198;" (assignment_expression "puVar23 = PTR_PTR_malloc_000a6198" identifier = identifier) ;) (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (if_statement "if (local_3c != 0) goto LAB_00054994;" if (parenthesized_expression "(local_3c != 0)" ( (binary_expression "local_3c != 0" identifier != number_literal) )) (goto_statement "goto LAB_00054994;" goto statement_identifier ;)) (if_statement "if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" if (parenthesized_expression "(local_30 == (undefined4 *)0x0)" ( (binary_expression "local_30 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }" { (labeled_statement "LAB_00054980:\n    puVar16 = (undefined4 *)0x0;" statement_identifier : (expression_statement "puVar16 = (undefined4 *)0x0;" (assignment_expression "puVar16 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_3c = -2;" (assignment_expression "local_3c = -2" identifier = number_literal) ;) }) (else_clause "else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" else (compound_statement "{\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" { (expression_statement "puVar16 = (undefined4 *)0x0;" (assignment_expression "puVar16 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar24 = (undefined4 *)0x0;" (assignment_expression "puVar24 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar20 = local_30;" (assignment_expression "puVar20 = local_30" identifier = identifier) ;) (do_statement "do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);" do (compound_statement "{\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    }" { (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "uVar19 = 0x10;" (assignment_expression "uVar19 = 0x10" identifier = number_literal) ;) (expression_statement "puVar5 = puVar24;" (assignment_expression "puVar5 = puVar24" identifier = identifier) ;) (if_statement "if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" if (parenthesized_expression "(puVar20[1] == 2)" ( (binary_expression "puVar20[1] == 2" (subscript_expression "puVar20[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }" { (expression_statement "iVar7 = puVar20[5];" (assignment_expression "iVar7 = puVar20[5]" identifier = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" statement_identifier : (if_statement "if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" if (parenthesized_expression "(((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4]))" ( (binary_expression "((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])" (parenthesized_expression "((iVar7 != 0) && (puVar20[4] != 0))" ( (binary_expression "(iVar7 != 0) && (puVar20[4] != 0)" (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar20[4] != 0)" ( (binary_expression "puVar20[4] != 0" (subscript_expression "puVar20[4]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "(uVar19 <= (uint)puVar20[4])" ( (binary_expression "uVar19 <= (uint)puVar20[4]" identifier <= (cast_expression "(uint)puVar20[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar20[4]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" { (expression_statement "puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);" (assignment_expression "puVar5 = (undefined4 *)(**(code **)puVar23)(0x20)" identifier = (cast_expression "(undefined4 *)(**(code **)puVar23)(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar23)(0x20)" (parenthesized_expression "(**(code **)puVar23)" ( (pointer_expression "**(code **)puVar23" * (pointer_expression "*(code **)puVar23" * (cast_expression "(code **)puVar23" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(0x20)" ( number_literal ))))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }" { (expression_statement "uVar15 = *puVar20;" (assignment_expression "uVar15 = *puVar20" identifier = (pointer_expression "*puVar20" * identifier)) ;) (expression_statement "uVar10 = puVar20[2];" (assignment_expression "uVar10 = puVar20[2]" identifier = (subscript_expression "puVar20[2]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = puVar20[3];" (assignment_expression "uVar6 = puVar20[3]" identifier = (subscript_expression "puVar20[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar22 = *(code **)puVar23;" (assignment_expression "pcVar22 = *(code **)puVar23" identifier = (pointer_expression "*(code **)puVar23" * (cast_expression "(code **)puVar23" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar5[1] = puVar20[1];" (assignment_expression "puVar5[1] = puVar20[1]" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (subscript_expression "puVar20[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar5 = uVar15;" (assignment_expression "*puVar5 = uVar15" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5[2] = uVar10;" (assignment_expression "puVar5[2] = uVar10" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[3] = uVar6;" (assignment_expression "puVar5[3] = uVar6" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[4] = uVar19;" (assignment_expression "puVar5[4] = uVar19" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[7] = 0;" (assignment_expression "puVar5[7] = 0" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = (*pcVar22)(uVar19);" (assignment_expression "iVar7 = (*pcVar22)(uVar19)" identifier = (call_expression "(*pcVar22)(uVar19)" (parenthesized_expression "(*pcVar22)" ( (pointer_expression "*pcVar22" * identifier) )) (argument_list "(uVar19)" ( identifier )))) ;) (expression_statement "uVar12 = (undefined2)uVar10;" (assignment_expression "uVar12 = (undefined2)uVar10" identifier = (cast_expression "(undefined2)uVar10" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "puVar5[6] = iVar7;" (assignment_expression "puVar5[6] = iVar7" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }" { (expression_statement "param_2 = puVar20[5];" (assignment_expression "param_2 = puVar20[5]" identifier = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,param_2,uVar19)" ( identifier , identifier , identifier ))) ;) (if_statement "if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }" if (parenthesized_expression "(puVar20[6] != 0)" ( (binary_expression "puVar20[6] != 0" (subscript_expression "puVar20[6]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }" { (expression_statement "iVar7 = (**(code **)puVar2)();" (assignment_expression "iVar7 = (**(code **)puVar2)()" identifier = (call_expression "(**(code **)puVar2)()" (parenthesized_expression "(**(code **)puVar2)" ( (pointer_expression "**(code **)puVar2" * (pointer_expression "*(code **)puVar2" * (cast_expression "(code **)puVar2" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "puVar5[5] = iVar7;" (assignment_expression "puVar5[5] = iVar7" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar5[6]);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar5[6])" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5[6])" ( (subscript_expression "puVar5[6]" identifier [ number_literal ]) ))) ;) (expression_statement "(**(code **)puVar1)(puVar5);" (call_expression "(**(code **)puVar1)(puVar5)" (parenthesized_expression "(**(code **)puVar1)" ( (pointer_expression "**(code **)puVar1" * (pointer_expression "*(code **)puVar1" * (cast_expression "(code **)puVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5)" ( identifier ))) ;) (goto_statement "goto LAB_000549f4;" goto statement_identifier ;) })) })) (if_statement "if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }" if (parenthesized_expression "(puVar16 == (undefined4 *)0x0)" ( (binary_expression "puVar16 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                puVar16 = puVar5;\n              }" { (expression_statement "puVar16 = puVar5;" (assignment_expression "puVar16 = puVar5" identifier = identifier) ;) })) (if_statement "if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }" if (parenthesized_expression "(puVar24 != (undefined4 *)0x0)" ( (binary_expression "puVar24 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                puVar24[7] = puVar5;\n              }" { (expression_statement "puVar24[7] = puVar5;" (assignment_expression "puVar24[7] = puVar5" (subscript_expression "puVar24[7]" identifier [ number_literal ]) = identifier) ;) })) (goto_statement "goto LAB_00054944;" goto statement_identifier ;) })) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar5);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar5)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5)" ( identifier ))) ;) })) (labeled_statement "LAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" statement_identifier : (if_statement "if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" if (parenthesized_expression "(local_30 != (undefined4 *)0x0)" ( (binary_expression "local_30 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" { (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" ( (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" * (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (expression_statement "FUN_00054760(puVar16);" (call_expression "FUN_00054760(puVar16)" identifier (argument_list "(puVar16)" ( identifier ))) ;) (expression_statement "local_3c = -10;" (assignment_expression "local_3c = -10" identifier = number_literal) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (goto_statement "goto LAB_00054994;" goto statement_identifier ;) }))) }) (else_clause "else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" else (if_statement "if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" if (parenthesized_expression "(puVar20[1] == 10)" ( (binary_expression "puVar20[1] == 10" (subscript_expression "puVar20[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" { (expression_statement "uVar19 = 0x1c;" (assignment_expression "uVar19 = 0x1c" identifier = number_literal) ;) (expression_statement "iVar7 = puVar20[5];" (assignment_expression "iVar7 = puVar20[5]" identifier = (subscript_expression "puVar20[5]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00054880;" goto statement_identifier ;) })))) (labeled_statement "LAB_00054944:\n      uVar12 = (undefined2)param_2;" statement_identifier : (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" identifier = (cast_expression "(undefined2)param_2" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;)) (expression_statement "puVar20 = (undefined4 *)puVar20[7];" (assignment_expression "puVar20 = (undefined4 *)puVar20[7]" identifier = (cast_expression "(undefined4 *)puVar20[7]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar20[7]" identifier [ number_literal ]))) ;) (expression_statement "puVar24 = puVar5;" (assignment_expression "puVar24 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar20 != (undefined4 *)0x0)" ( (binary_expression "puVar20 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" if (parenthesized_expression "(local_30 != (undefined4 *)0x0)" ( (binary_expression "local_30 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" { (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" ( (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" * (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;" if (parenthesized_expression "(puVar16 == (undefined4 *)0x0)" ( (binary_expression "puVar16 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00054980;" goto statement_identifier ;)) }))) (expression_statement "*param_4 = puVar16;" (assignment_expression "*param_4 = puVar16" (pointer_expression "*param_4" * identifier) = identifier) ;) (labeled_statement "LAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" statement_identifier : (if_statement "if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" if (parenthesized_expression "(puVar4 == *(undefined4 **)puVar3)" ( (binary_expression "puVar4 == *(undefined4 **)puVar3" identifier == (pointer_expression "*(undefined4 **)puVar3" * (cast_expression "(undefined4 **)puVar3" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return local_3c;\n  }" { (return_statement "return local_3c;" return identifier ;) }))) (expression_statement "puVar23 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar23 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }" if (parenthesized_expression "((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0))" ( (binary_expression "(puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)" (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)" ( (comma_expression "puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0" (assignment_expression "puVar21 = *(uint **)puVar4[4]" identifier = (pointer_expression "*(uint **)puVar4[4]" * (cast_expression "(uint **)puVar4[4]" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar4[4]" identifier [ number_literal ])))) , (binary_expression "puVar21 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "puVar16 = *(undefined4 **)(puVar23 + 0x516dc);" (assignment_expression "puVar16 = *(undefined4 **)(puVar23 + 0x516dc)" identifier = (pointer_expression "*(undefined4 **)(puVar23 + 0x516dc)" * (cast_expression "(undefined4 **)(puVar23 + 0x516dc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x516dc)" ( (binary_expression "puVar23 + 0x516dc" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" identifier = number_literal) ;) (expression_statement "puVar24 = *(undefined4 **)(puVar23 + 0x517cc);" (assignment_expression "puVar24 = *(undefined4 **)(puVar23 + 0x517cc)" identifier = (pointer_expression "*(undefined4 **)(puVar23 + 0x517cc)" * (cast_expression "(undefined4 **)(puVar23 + 0x517cc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x517cc)" ( (binary_expression "puVar23 + 0x517cc" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar18 = 0;" (assignment_expression "iVar18 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }" { (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" identifier = number_literal) ;) (if_statement "if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }" if (parenthesized_expression "(iVar13 == 10)" ( (binary_expression "iVar13 == 10" identifier == number_literal) )) (compound_statement "{\n      uVar6 = 0x1c;\n    }" { (expression_statement "uVar6 = 0x1c;" (assignment_expression "uVar6 = 0x1c" identifier = number_literal) ;) })) (expression_statement "iVar8 = (*(code *)*puVar16)(1,0x20);" (assignment_expression "iVar8 = (*(code *)*puVar16)(1,0x20)" identifier = (call_expression "(*(code *)*puVar16)(1,0x20)" (parenthesized_expression "(*(code *)*puVar16)" ( (pointer_expression "*(code *)*puVar16" * (cast_expression "(code *)*puVar16" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar16" * identifier))) )) (argument_list "(1,0x20)" ( number_literal , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar13 = (*(code *)*puVar24)(*puVar4);" (assignment_expression "iVar13 = (*(code *)*puVar24)(*puVar4)" identifier = (call_expression "(*(code *)*puVar24)(*puVar4)" (parenthesized_expression "(*(code *)*puVar24)" ( (pointer_expression "*(code *)*puVar24" * (cast_expression "(code *)*puVar24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar24" * identifier))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "*(int *)(iVar8 + 0x14) = iVar13;" (assignment_expression "*(int *)(iVar8 + 0x14) = iVar13" (pointer_expression "*(int *)(iVar8 + 0x14)" * (cast_expression "(int *)(iVar8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x14)" ( (binary_expression "iVar8 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }" { (expression_statement "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);" (call_expression "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8)" (parenthesized_expression "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))" ( (pointer_expression "*(code *)**(undefined4 **)(puVar23 + 0x516e0)" * (cast_expression "(code *)**(undefined4 **)(puVar23 + 0x516e0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(puVar23 + 0x516e0)" * (pointer_expression "*(undefined4 **)(puVar23 + 0x516e0)" * (cast_expression "(undefined4 **)(puVar23 + 0x516e0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x516e0)" ( (binary_expression "puVar23 + 0x516e0" identifier + number_literal) ))))))) )) (argument_list "(iVar8)" ( identifier ))) ;) (break_statement "break;" break ;) })) (expression_statement "puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);" (assignment_expression "puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6)" identifier = (cast_expression "(undefined2 *)(*(code *)*puVar16)(1,uVar6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar16)(1,uVar6)" (parenthesized_expression "(*(code *)*puVar16)" ( (pointer_expression "*(code *)*puVar16" * (cast_expression "(code *)*puVar16" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar16" * identifier))) )) (argument_list "(1,uVar6)" ( number_literal , identifier ))))) ;) (expression_statement "*(undefined2 **)(iVar8 + 0x18) = puVar9;" (assignment_expression "*(undefined2 **)(iVar8 + 0x18) = puVar9" (pointer_expression "*(undefined2 **)(iVar8 + 0x18)" * (cast_expression "(undefined2 **)(iVar8 + 0x18)" ( (type_descriptor "undefined2 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 0x18)" ( (binary_expression "iVar8 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }" if (parenthesized_expression "(puVar9 == (undefined2 *)0x0)" ( (binary_expression "puVar9 == (undefined2 *)0x0" identifier == (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }" { (expression_statement "puVar4 = *(undefined4 **)(puVar23 + 0x516e0);" (assignment_expression "puVar4 = *(undefined4 **)(puVar23 + 0x516e0)" identifier = (pointer_expression "*(undefined4 **)(puVar23 + 0x516e0)" * (cast_expression "(undefined4 **)(puVar23 + 0x516e0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar23 + 0x516e0)" ( (binary_expression "puVar23 + 0x516e0" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));" (call_expression "(*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14))" (parenthesized_expression "(*(code *)*puVar4)" ( (pointer_expression "*(code *)*puVar4" * (cast_expression "(code *)*puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) )) (argument_list "(*(undefined4 *)(iVar8 + 0x14))" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x14)" * (cast_expression "(undefined4 *)(iVar8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x14)" ( (binary_expression "iVar8 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)*puVar4)(iVar8);" (call_expression "(*(code *)*puVar4)(iVar8)" (parenthesized_expression "(*(code *)*puVar4)" ( (pointer_expression "*(code *)*puVar4" * (cast_expression "(code *)*puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "FUN_00054760(iVar17);" (call_expression "FUN_00054760(iVar17)" identifier (argument_list "(iVar17)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar17 = iVar8;\n    }" { (expression_statement "iVar17 = iVar8;" (assignment_expression "iVar17 = iVar8" identifier = identifier) ;) })) (if_statement "if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }" if (parenthesized_expression "(iVar18 != 0)" ( (binary_expression "iVar18 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }" { (expression_statement "*(int *)(iVar18 + 0x1c) = iVar8;" (assignment_expression "*(int *)(iVar18 + 0x1c) = iVar8" (pointer_expression "*(int *)(iVar18 + 0x1c)" * (cast_expression "(int *)(iVar18 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar18 + 0x1c)" ( (binary_expression "iVar18 + 0x1c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar8 + 0x10) = uVar6;" (assignment_expression "*(undefined4 *)(iVar8 + 0x10) = uVar6" (pointer_expression "*(undefined4 *)(iVar8 + 0x10)" * (cast_expression "(undefined4 *)(iVar8 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x10)" ( (binary_expression "iVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar8 + 8) = 2;" (assignment_expression "*(undefined4 *)(iVar8 + 8) = 2" (pointer_expression "*(undefined4 *)(iVar8 + 8)" * (cast_expression "(undefined4 *)(iVar8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar8 + 4) = iVar13;" (assignment_expression "*(int *)(iVar8 + 4) = iVar13" (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" if (parenthesized_expression "(iVar13 == 2)" ( (binary_expression "iVar13 == 2" identifier == number_literal) )) (compound_statement "{\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" { (expression_statement "uVar11 = *puVar21;" (assignment_expression "uVar11 = *puVar21" identifier = (pointer_expression "*puVar21" * identifier)) ;) (expression_statement "uVar19 = (uint)(puVar9 + 2) & 3;" (assignment_expression "uVar19 = (uint)(puVar9 + 2) & 3" identifier = (binary_expression "(uint)(puVar9 + 2) & 3" (call_expression "(uint)(puVar9 + 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar9 + 2)" ( (binary_expression "puVar9 + 2" identifier + number_literal) ))) & number_literal)) ;) (expression_statement "puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);" (assignment_expression "puVar21 = (uint *)((int)(puVar9 + 2) - uVar19)" identifier = (cast_expression "(uint *)((int)(puVar9 + 2) - uVar19)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(puVar9 + 2) - uVar19)" ( (binary_expression "(int)(puVar9 + 2) - uVar19" (cast_expression "(int)(puVar9 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar9 + 2)" ( (binary_expression "puVar9 + 2" identifier + number_literal) ))) - identifier) )))) ;) (expression_statement "*puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;" (assignment_expression "*puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8" (pointer_expression "*puVar21" * identifier) = (binary_expression "*puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8" (binary_expression "*puVar21 & -1 << (4 - uVar19) * 8" (pointer_expression "*puVar21" * identifier) & (binary_expression "-1 << (4 - uVar19) * 8" number_literal << (binary_expression "(4 - uVar19) * 8" (parenthesized_expression "(4 - uVar19)" ( (binary_expression "4 - uVar19" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar11 >> uVar19 * 8" identifier >> (binary_expression "uVar19 * 8" identifier * number_literal)))) ;) (expression_statement "uVar19 = (int)puVar9 + 7U & 3;" (assignment_expression "uVar19 = (int)puVar9 + 7U & 3" identifier = (binary_expression "(int)puVar9 + 7U & 3" (binary_expression "(int)puVar9 + 7U" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);" (assignment_expression "puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19)" identifier = (cast_expression "(uint *)(((int)puVar9 + 7U) - uVar19)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar9 + 7U) - uVar19)" ( (binary_expression "((int)puVar9 + 7U) - uVar19" (parenthesized_expression "((int)puVar9 + 7U)" ( (binary_expression "(int)puVar9 + 7U" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - identifier) )))) ;) (expression_statement "*puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;" (assignment_expression "*puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8" (pointer_expression "*puVar21" * identifier) = (binary_expression "*puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8" (binary_expression "*puVar21 & 0xffffffffU >> (uVar19 + 1) * 8" (pointer_expression "*puVar21" * identifier) & (binary_expression "0xffffffffU >> (uVar19 + 1) * 8" number_literal >> (binary_expression "(uVar19 + 1) * 8" (parenthesized_expression "(uVar19 + 1)" ( (binary_expression "uVar19 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar11 << (3 - uVar19) * 8" identifier << (binary_expression "(3 - uVar19) * 8" (parenthesized_expression "(3 - uVar19)" ( (binary_expression "3 - uVar19" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "puVar9[1] = uVar12;" (assignment_expression "puVar9[1] = uVar12" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar9 = (short)iVar13;" (assignment_expression "*puVar9 = (short)iVar13" (pointer_expression "*puVar9" * identifier) = (cast_expression "(short)iVar13" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "puVar21 = *(uint **)(puVar4[4] + iVar7);" (assignment_expression "puVar21 = *(uint **)(puVar4[4] + iVar7)" identifier = (pointer_expression "*(uint **)(puVar4[4] + iVar7)" * (cast_expression "(uint **)(puVar4[4] + iVar7)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[4] + iVar7)" ( (binary_expression "puVar4[4] + iVar7" (subscript_expression "puVar4[4]" identifier [ number_literal ]) + identifier) ))))) ;) }) (else_clause "else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" else (compound_statement "{\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" { (if_statement "if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }" if (parenthesized_expression "(iVar13 == 10)" ( (binary_expression "iVar13 == 10" identifier == number_literal) )) (compound_statement "{\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }" { (expression_statement "uVar14 = puVar21[1];" (assignment_expression "uVar14 = puVar21[1]" identifier = (subscript_expression "puVar21[1]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar21[2];" (assignment_expression "uVar11 = puVar21[2]" identifier = (subscript_expression "puVar21[2]" identifier [ number_literal ])) ;) (expression_statement "uVar19 = puVar21[3];" (assignment_expression "uVar19 = puVar21[3]" identifier = (subscript_expression "puVar21[3]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(puVar9 + 4) = *puVar21;" (assignment_expression "*(uint *)(puVar9 + 4) = *puVar21" (pointer_expression "*(uint *)(puVar9 + 4)" * (cast_expression "(uint *)(puVar9 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 4)" ( (binary_expression "puVar9 + 4" identifier + number_literal) )))) = (pointer_expression "*puVar21" * identifier)) ;) (expression_statement "*(uint *)(puVar9 + 6) = uVar14;" (assignment_expression "*(uint *)(puVar9 + 6) = uVar14" (pointer_expression "*(uint *)(puVar9 + 6)" * (cast_expression "(uint *)(puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 6)" ( (binary_expression "puVar9 + 6" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar9 + 8) = uVar11;" (assignment_expression "*(uint *)(puVar9 + 8) = uVar11" (pointer_expression "*(uint *)(puVar9 + 8)" * (cast_expression "(uint *)(puVar9 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 8)" ( (binary_expression "puVar9 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar9 + 10) = uVar19;" (assignment_expression "*(uint *)(puVar9 + 10) = uVar19" (pointer_expression "*(uint *)(puVar9 + 10)" * (cast_expression "(uint *)(puVar9 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 10)" ( (binary_expression "puVar9 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "*puVar9 = (short)iVar13;" (assignment_expression "*puVar9 = (short)iVar13" (pointer_expression "*puVar9" * identifier) = (cast_expression "(short)iVar13" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "puVar9[1] = uVar12;" (assignment_expression "puVar9[1] = uVar12" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "puVar21 = *(uint **)(puVar4[4] + iVar7);" (assignment_expression "puVar21 = *(uint **)(puVar4[4] + iVar7)" identifier = (pointer_expression "*(uint **)(puVar4[4] + iVar7)" * (cast_expression "(uint **)(puVar4[4] + iVar7)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[4] + iVar7)" ( (binary_expression "puVar4[4] + iVar7" (subscript_expression "puVar4[4]" identifier [ number_literal ]) + identifier) ))))) ;) }))) (expression_statement "iVar7 = iVar7 + 4;" (assignment_expression "iVar7 = iVar7 + 4" identifier = (binary_expression "iVar7 + 4" identifier + number_literal)) ;) (expression_statement "iVar18 = iVar8;" (assignment_expression "iVar18 = iVar8" identifier = identifier) ;) (if_statement "if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }" if (parenthesized_expression "(puVar21 == (uint *)0x0)" ( (binary_expression "puVar21 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return iVar17;\n    }" { (return_statement "return iVar17;" return identifier ;) })) })) (expression_statement "FUN_00054760(iVar17);" (call_expression "FUN_00054760(iVar17)" identifier (argument_list "(iVar17)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(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)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (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 (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 * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_expression IDENT [ LIT ])))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) )) (argument_list ( IDENT ))) ;) (break_statement break ;) })) (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 *)) ) (pointer_expression * IDENT))) )) (argument_list ( LIT , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) - IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & (binary_expression LIT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT))) | (binary_expression IDENT >> (binary_expression IDENT * LIT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )) - IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & (binary_expression LIT >> (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT))) | (binary_expression IDENT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT)))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_000547d8(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_000547d8") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined2 *puVar9;\n  undefined4 uVar10;\n  undefined2 uVar12;\n  uint uVar11;\n  int iVar13;\n  uint uVar14;\n  undefined4 uVar15;\n  undefined4 *puVar16;\n  int iVar17;\n  int iVar18;\n  uint uVar19;\n  undefined4 *puVar20;\n  uint *puVar21;\n  code *pcVar22;\n  undefined *puVar23;\n  undefined4 *puVar24;\n  int local_3c;\n  undefined4 *local_30;\n  \n  puVar3 = PTR___stack_chk_guard_000a6fe0;\n  puVar23 = PTR_getaddrinfo_000a6bb4;\n  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;\n  *param_4 = 0;\n  local_3c = (*(code *)puVar23)();\n  puVar2 = PTR_PTR_strdup_000a6230;\n  puVar23 = PTR_PTR_malloc_000a6198;\n  uVar12 = (undefined2)param_2;\n  if (local_3c != 0) goto LAB_00054994;\n  if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }\n  *param_4 = puVar16;\nLAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }\n  puVar23 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }\n  iVar13 = puVar4[2];\n  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);\n  iVar7 = 4;\n  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);\n  iVar17 = 0;\n  iVar18 = 0;\n  while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }\n  FUN_00054760(iVar17);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined2 *puVar9;" (type_identifier "undefined2") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "undefined2 uVar12;" (type_identifier "undefined2") (identifier "uVar12") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "undefined4 uVar15;" (type_identifier "undefined4") (identifier "uVar15") (; ";")) (declaration "undefined4 *puVar16;" (type_identifier "undefined4") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "int iVar18;" (primitive_type "int") (identifier "iVar18") (; ";")) (declaration "uint uVar19;" (type_identifier "uint") (identifier "uVar19") (; ";")) (declaration "undefined4 *puVar20;" (type_identifier "undefined4") (pointer_declarator "*puVar20" (* "*") (identifier "puVar20")) (; ";")) (declaration "uint *puVar21;" (type_identifier "uint") (pointer_declarator "*puVar21" (* "*") (identifier "puVar21")) (; ";")) (declaration "code *pcVar22;" (type_identifier "code") (pointer_declarator "*pcVar22" (* "*") (identifier "pcVar22")) (; ";")) (declaration "undefined *puVar23;" (type_identifier "undefined") (pointer_declarator "*puVar23" (* "*") (identifier "puVar23")) (; ";")) (declaration "undefined4 *puVar24;" (type_identifier "undefined4") (pointer_declarator "*puVar24" (* "*") (identifier "puVar24")) (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "undefined4 *local_30;" (type_identifier "undefined4") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000a6fe0" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_000a6fe0")) (; ";")) (expression_statement "puVar23 = PTR_getaddrinfo_000a6bb4;" (assignment_expression "puVar23 = PTR_getaddrinfo_000a6bb4" (identifier "puVar23") (= "=") (identifier "PTR_getaddrinfo_000a6bb4")) (; ";")) (expression_statement "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0" (identifier "puVar4") (= "=") (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000a6fe0" (* "*") (cast_expression "(undefined4 **)PTR___stack_chk_guard_000a6fe0" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000a6fe0")))) (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = (*(code *)puVar23)();" (assignment_expression "local_3c = (*(code *)puVar23)()" (identifier "local_3c") (= "=") (call_expression "(*(code *)puVar23)()" (parenthesized_expression "(*(code *)puVar23)" (( "(") (pointer_expression "*(code *)puVar23" (* "*") (cast_expression "(code *)puVar23" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar23"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2 = PTR_PTR_strdup_000a6230;" (assignment_expression "puVar2 = PTR_PTR_strdup_000a6230" (identifier "puVar2") (= "=") (identifier "PTR_PTR_strdup_000a6230")) (; ";")) (expression_statement "puVar23 = PTR_PTR_malloc_000a6198;" (assignment_expression "puVar23 = PTR_PTR_malloc_000a6198" (identifier "puVar23") (= "=") (identifier "PTR_PTR_malloc_000a6198")) (; ";")) (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" (identifier "uVar12") (= "=") (cast_expression "(undefined2)param_2" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "param_2"))) (; ";")) (if_statement "if (local_3c != 0) goto LAB_00054994;" (if "if") (parenthesized_expression "(local_3c != 0)" (( "(") (binary_expression "local_3c != 0" (identifier "local_3c") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00054994;" (goto "goto") (statement_identifier "LAB_00054994") (; ";"))) (if_statement "if (local_30 == (undefined4 *)0x0) {\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }\n  else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" (if "if") (parenthesized_expression "(local_30 == (undefined4 *)0x0)" (( "(") (binary_expression "local_30 == (undefined4 *)0x0" (identifier "local_30") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00054980:\n    puVar16 = (undefined4 *)0x0;\n    local_3c = -2;\n  }" ({ "{") (labeled_statement "LAB_00054980:\n    puVar16 = (undefined4 *)0x0;" (statement_identifier "LAB_00054980") (: ":") (expression_statement "puVar16 = (undefined4 *)0x0;" (assignment_expression "puVar16 = (undefined4 *)0x0" (identifier "puVar16") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (expression_statement "local_3c = -2;" (assignment_expression "local_3c = -2" (identifier "local_3c") (= "=") (number_literal "-2")) (; ";")) (} "}")) (else_clause "else {\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" (else "else") (compound_statement "{\n    puVar16 = (undefined4 *)0x0;\n    puVar24 = (undefined4 *)0x0;\n    puVar20 = local_30;\n    do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);\n    if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }\n    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;\n  }" ({ "{") (expression_statement "puVar16 = (undefined4 *)0x0;" (assignment_expression "puVar16 = (undefined4 *)0x0" (identifier "puVar16") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar24 = (undefined4 *)0x0;" (assignment_expression "puVar24 = (undefined4 *)0x0" (identifier "puVar24") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar20 = local_30;" (assignment_expression "puVar20 = local_30" (identifier "puVar20") (= "=") (identifier "local_30")) (; ";")) (do_statement "do {\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    } while (puVar20 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n      uVar12 = (undefined2)param_2;\n      uVar19 = 0x10;\n      puVar5 = puVar24;\n      if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }\nLAB_00054944:\n      uVar12 = (undefined2)param_2;\n      puVar20 = (undefined4 *)puVar20[7];\n      puVar24 = puVar5;\n    }" ({ "{") (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" (identifier "uVar12") (= "=") (cast_expression "(undefined2)param_2" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "uVar19 = 0x10;" (assignment_expression "uVar19 = 0x10" (identifier "uVar19") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "puVar5 = puVar24;" (assignment_expression "puVar5 = puVar24" (identifier "puVar5") (= "=") (identifier "puVar24")) (; ";")) (if_statement "if (puVar20[1] == 2) {\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }\n      else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" (if "if") (parenthesized_expression "(puVar20[1] == 2)" (( "(") (binary_expression "puVar20[1] == 2" (subscript_expression "puVar20[1]" (identifier "puVar20") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        iVar7 = puVar20[5];\nLAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }\n      }" ({ "{") (expression_statement "iVar7 = puVar20[5];" (assignment_expression "iVar7 = puVar20[5]" (identifier "iVar7") (= "=") (subscript_expression "puVar20[5]" (identifier "puVar20") ([ "[") (number_literal "5") (] "]"))) (; ";")) (labeled_statement "LAB_00054880:\n        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" (statement_identifier "LAB_00054880") (: ":") (if_statement "if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" (if "if") (parenthesized_expression "(((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4]))" (( "(") (binary_expression "((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])" (parenthesized_expression "((iVar7 != 0) && (puVar20[4] != 0))" (( "(") (binary_expression "(iVar7 != 0) && (puVar20[4] != 0)" (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar20[4] != 0)" (( "(") (binary_expression "puVar20[4] != 0" (subscript_expression "puVar20[4]" (identifier "puVar20") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(uVar19 <= (uint)puVar20[4])" (( "(") (binary_expression "uVar19 <= (uint)puVar20[4]" (identifier "uVar19") (<= "<=") (cast_expression "(uint)puVar20[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "puVar20[4]" (identifier "puVar20") ([ "[") (number_literal "4") (] "]")))) () ")"))) () ")")) (compound_statement "{\n          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);\n          if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }\nLAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }\n          FUN_00054760(puVar16);\n          local_3c = -10;\n          *param_4 = 0;\n          goto LAB_00054994;\n        }" ({ "{") (expression_statement "puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);" (assignment_expression "puVar5 = (undefined4 *)(**(code **)puVar23)(0x20)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(**(code **)puVar23)(0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)puVar23)(0x20)" (parenthesized_expression "(**(code **)puVar23)" (( "(") (pointer_expression "**(code **)puVar23" (* "*") (pointer_expression "*(code **)puVar23" (* "*") (cast_expression "(code **)puVar23" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar23")))) () ")")) (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }" (if "if") (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined4 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            uVar15 = *puVar20;\n            uVar10 = puVar20[2];\n            uVar6 = puVar20[3];\n            pcVar22 = *(code **)puVar23;\n            puVar5[1] = puVar20[1];\n            *puVar5 = uVar15;\n            puVar5[2] = uVar10;\n            puVar5[3] = uVar6;\n            puVar5[4] = uVar19;\n            puVar5[6] = 0;\n            puVar5[5] = 0;\n            puVar5[7] = 0;\n            iVar7 = (*pcVar22)(uVar19);\n            uVar12 = (undefined2)uVar10;\n            puVar5[6] = iVar7;\n            if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }\n            (**(code **)PTR_PTR_free_000a6144)(puVar5);\n          }" ({ "{") (expression_statement "uVar15 = *puVar20;" (assignment_expression "uVar15 = *puVar20" (identifier "uVar15") (= "=") (pointer_expression "*puVar20" (* "*") (identifier "puVar20"))) (; ";")) (expression_statement "uVar10 = puVar20[2];" (assignment_expression "uVar10 = puVar20[2]" (identifier "uVar10") (= "=") (subscript_expression "puVar20[2]" (identifier "puVar20") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar6 = puVar20[3];" (assignment_expression "uVar6 = puVar20[3]" (identifier "uVar6") (= "=") (subscript_expression "puVar20[3]" (identifier "puVar20") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "pcVar22 = *(code **)puVar23;" (assignment_expression "pcVar22 = *(code **)puVar23" (identifier "pcVar22") (= "=") (pointer_expression "*(code **)puVar23" (* "*") (cast_expression "(code **)puVar23" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar23")))) (; ";")) (expression_statement "puVar5[1] = puVar20[1];" (assignment_expression "puVar5[1] = puVar20[1]" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "puVar20[1]" (identifier "puVar20") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar5 = uVar15;" (assignment_expression "*puVar5 = uVar15" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar15")) (; ";")) (expression_statement "puVar5[2] = uVar10;" (assignment_expression "puVar5[2] = uVar10" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "puVar5[3] = uVar6;" (assignment_expression "puVar5[3] = uVar6" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar5[4] = uVar19;" (assignment_expression "puVar5[4] = uVar19" (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar19")) (; ";")) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[5] = 0;" (assignment_expression "puVar5[5] = 0" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[7] = 0;" (assignment_expression "puVar5[7] = 0" (subscript_expression "puVar5[7]" (identifier "puVar5") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = (*pcVar22)(uVar19);" (assignment_expression "iVar7 = (*pcVar22)(uVar19)" (identifier "iVar7") (= "=") (call_expression "(*pcVar22)(uVar19)" (parenthesized_expression "(*pcVar22)" (( "(") (pointer_expression "*pcVar22" (* "*") (identifier "pcVar22")) () ")")) (argument_list "(uVar19)" (( "(") (identifier "uVar19") () ")")))) (; ";")) (expression_statement "uVar12 = (undefined2)uVar10;" (assignment_expression "uVar12 = (undefined2)uVar10" (identifier "uVar12") (= "=") (cast_expression "(undefined2)uVar10" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "uVar10"))) (; ";")) (expression_statement "puVar5[6] = iVar7;" (assignment_expression "puVar5[6] = iVar7" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 != 0) {\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              param_2 = puVar20[5];\n              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);\n              if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }\n              if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }\n              if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }\n              goto LAB_00054944;\n            }" ({ "{") (expression_statement "param_2 = puVar20[5];" (assignment_expression "param_2 = puVar20[5]" (identifier "param_2") (= "=") (subscript_expression "puVar20[5]" (identifier "puVar20") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000a6eec" (* "*") (cast_expression "(code *)PTR_memcpy_000a6eec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000a6eec"))) () ")")) (argument_list "(iVar7,param_2,uVar19)" (( "(") (identifier "iVar7") (, ",") (identifier "param_2") (, ",") (identifier "uVar19") () ")"))) (; ";")) (if_statement "if (puVar20[6] != 0) {\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }" (if "if") (parenthesized_expression "(puVar20[6] != 0)" (( "(") (binary_expression "puVar20[6] != 0" (subscript_expression "puVar20[6]" (identifier "puVar20") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                iVar7 = (**(code **)puVar2)();\n                uVar12 = (undefined2)param_2;\n                puVar5[5] = iVar7;\n                puVar1 = PTR_PTR_free_000a6144;\n                if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }\n              }" ({ "{") (expression_statement "iVar7 = (**(code **)puVar2)();" (assignment_expression "iVar7 = (**(code **)puVar2)()" (identifier "iVar7") (= "=") (call_expression "(**(code **)puVar2)()" (parenthesized_expression "(**(code **)puVar2)" (( "(") (pointer_expression "**(code **)puVar2" (* "*") (pointer_expression "*(code **)puVar2" (* "*") (cast_expression "(code **)puVar2" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" (identifier "uVar12") (= "=") (cast_expression "(undefined2)param_2" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "puVar5[5] = iVar7;" (assignment_expression "puVar5[5] = iVar7" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" (identifier "puVar1") (= "=") (identifier "PTR_PTR_free_000a6144")) (; ";")) (if_statement "if (iVar7 == 0) {\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);\n                  (**(code **)puVar1)(puVar5);\n                  goto LAB_000549f4;\n                }" ({ "{") (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar5[6]);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar5[6])" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" (( "(") (pointer_expression "**(code **)PTR_PTR_free_000a6144" (* "*") (pointer_expression "*(code **)PTR_PTR_free_000a6144" (* "*") (cast_expression "(code **)PTR_PTR_free_000a6144" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_free_000a6144")))) () ")")) (argument_list "(puVar5[6])" (( "(") (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) () ")"))) (; ";")) (expression_statement "(**(code **)puVar1)(puVar5);" (call_expression "(**(code **)puVar1)(puVar5)" (parenthesized_expression "(**(code **)puVar1)" (( "(") (pointer_expression "**(code **)puVar1" (* "*") (pointer_expression "*(code **)puVar1" (* "*") (cast_expression "(code **)puVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1")))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (goto_statement "goto LAB_000549f4;" (goto "goto") (statement_identifier "LAB_000549f4") (; ";")) (} "}"))) (} "}"))) (if_statement "if (puVar16 == (undefined4 *)0x0) {\n                puVar16 = puVar5;\n              }" (if "if") (parenthesized_expression "(puVar16 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar16 == (undefined4 *)0x0" (identifier "puVar16") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                puVar16 = puVar5;\n              }" ({ "{") (expression_statement "puVar16 = puVar5;" (assignment_expression "puVar16 = puVar5" (identifier "puVar16") (= "=") (identifier "puVar5")) (; ";")) (} "}"))) (if_statement "if (puVar24 != (undefined4 *)0x0) {\n                puVar24[7] = puVar5;\n              }" (if "if") (parenthesized_expression "(puVar24 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar24 != (undefined4 *)0x0" (identifier "puVar24") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                puVar24[7] = puVar5;\n              }" ({ "{") (expression_statement "puVar24[7] = puVar5;" (assignment_expression "puVar24[7] = puVar5" (subscript_expression "puVar24[7]" (identifier "puVar24") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "puVar5")) (; ";")) (} "}"))) (goto_statement "goto LAB_00054944;" (goto "goto") (statement_identifier "LAB_00054944") (; ";")) (} "}"))) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar5);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar5)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" (( "(") (pointer_expression "**(code **)PTR_PTR_free_000a6144" (* "*") (pointer_expression "*(code **)PTR_PTR_free_000a6144" (* "*") (cast_expression "(code **)PTR_PTR_free_000a6144" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_free_000a6144")))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_000549f4:\n          if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" (statement_identifier "LAB_000549f4") (: ":") (if_statement "if (local_30 != (undefined4 *)0x0) {\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" (if "if") (parenthesized_expression "(local_30 != (undefined4 *)0x0)" (( "(") (binary_expression "local_30 != (undefined4 *)0x0" (identifier "local_30") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            (*(code *)PTR_freeaddrinfo_000a6c20)();\n          }" ({ "{") (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" (( "(") (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" (* "*") (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_freeaddrinfo_000a6c20"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_00054760(puVar16);" (call_expression "FUN_00054760(puVar16)" (identifier "FUN_00054760") (argument_list "(puVar16)" (( "(") (identifier "puVar16") () ")"))) (; ";")) (expression_statement "local_3c = -10;" (assignment_expression "local_3c = -10" (identifier "local_3c") (= "=") (number_literal "-10")) (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00054994;" (goto "goto") (statement_identifier "LAB_00054994") (; ";")) (} "}")))) (} "}")) (else_clause "else if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" (else "else") (if_statement "if (puVar20[1] == 10) {\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" (if "if") (parenthesized_expression "(puVar20[1] == 10)" (( "(") (binary_expression "puVar20[1] == 10" (subscript_expression "puVar20[1]" (identifier "puVar20") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "10")) () ")")) (compound_statement "{\n        uVar19 = 0x1c;\n        iVar7 = puVar20[5];\n        goto LAB_00054880;\n      }" ({ "{") (expression_statement "uVar19 = 0x1c;" (assignment_expression "uVar19 = 0x1c" (identifier "uVar19") (= "=") (number_literal "0x1c")) (; ";")) (expression_statement "iVar7 = puVar20[5];" (assignment_expression "iVar7 = puVar20[5]" (identifier "iVar7") (= "=") (subscript_expression "puVar20[5]" (identifier "puVar20") ([ "[") (number_literal "5") (] "]"))) (; ";")) (goto_statement "goto LAB_00054880;" (goto "goto") (statement_identifier "LAB_00054880") (; ";")) (} "}"))))) (labeled_statement "LAB_00054944:\n      uVar12 = (undefined2)param_2;" (statement_identifier "LAB_00054944") (: ":") (expression_statement "uVar12 = (undefined2)param_2;" (assignment_expression "uVar12 = (undefined2)param_2" (identifier "uVar12") (= "=") (cast_expression "(undefined2)param_2" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "param_2"))) (; ";"))) (expression_statement "puVar20 = (undefined4 *)puVar20[7];" (assignment_expression "puVar20 = (undefined4 *)puVar20[7]" (identifier "puVar20") (= "=") (cast_expression "(undefined4 *)puVar20[7]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar20[7]" (identifier "puVar20") ([ "[") (number_literal "7") (] "]")))) (; ";")) (expression_statement "puVar24 = puVar5;" (assignment_expression "puVar24 = puVar5" (identifier "puVar24") (= "=") (identifier "puVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar20 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar20 != (undefined4 *)0x0" (identifier "puVar20") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (local_30 != (undefined4 *)0x0) {\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" (if "if") (parenthesized_expression "(local_30 != (undefined4 *)0x0)" (( "(") (binary_expression "local_30 != (undefined4 *)0x0" (identifier "local_30") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*(code *)PTR_freeaddrinfo_000a6c20)();\n    }" ({ "{") (expression_statement "(*(code *)PTR_freeaddrinfo_000a6c20)();" (call_expression "(*(code *)PTR_freeaddrinfo_000a6c20)()" (parenthesized_expression "(*(code *)PTR_freeaddrinfo_000a6c20)" (( "(") (pointer_expression "*(code *)PTR_freeaddrinfo_000a6c20" (* "*") (cast_expression "(code *)PTR_freeaddrinfo_000a6c20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_freeaddrinfo_000a6c20"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;" (if "if") (parenthesized_expression "(puVar16 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar16 == (undefined4 *)0x0" (identifier "puVar16") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00054980;" (goto "goto") (statement_identifier "LAB_00054980") (; ";"))) (} "}")))) (expression_statement "*param_4 = puVar16;" (assignment_expression "*param_4 = puVar16" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "puVar16")) (; ";")) (labeled_statement "LAB_00054994:\n  if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" (statement_identifier "LAB_00054994") (: ":") (if_statement "if (puVar4 == *(undefined4 **)puVar3) {\n    return local_3c;\n  }" (if "if") (parenthesized_expression "(puVar4 == *(undefined4 **)puVar3)" (( "(") (binary_expression "puVar4 == *(undefined4 **)puVar3" (identifier "puVar4") (== "==") (pointer_expression "*(undefined4 **)puVar3" (* "*") (cast_expression "(undefined4 **)puVar3" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return local_3c;\n  }" ({ "{") (return_statement "return local_3c;" (return "return") (identifier "local_3c") (; ";")) (} "}")))) (expression_statement "puVar23 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar23 = PTR___stack_chk_fail_000a6c54" (identifier "puVar23") (= "=") (identifier "PTR___stack_chk_fail_000a6c54")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000a6c54"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0))" (( "(") (binary_expression "(puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)" (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 == (undefined4 *)0x0" (identifier "puVar4") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)" (( "(") (comma_expression "puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0" (assignment_expression "puVar21 = *(uint **)puVar4[4]" (identifier "puVar21") (= "=") (pointer_expression "*(uint **)puVar4[4]" (* "*") (cast_expression "(uint **)puVar4[4]" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]"))))) (, ",") (binary_expression "puVar21 == (uint *)0x0" (identifier "puVar21") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" (identifier "iVar13") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar16 = *(undefined4 **)(puVar23 + 0x516dc);" (assignment_expression "puVar16 = *(undefined4 **)(puVar23 + 0x516dc)" (identifier "puVar16") (= "=") (pointer_expression "*(undefined4 **)(puVar23 + 0x516dc)" (* "*") (cast_expression "(undefined4 **)(puVar23 + 0x516dc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar23 + 0x516dc)" (( "(") (binary_expression "puVar23 + 0x516dc" (identifier "puVar23") (+ "+") (number_literal "0x516dc")) () ")"))))) (; ";")) (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" (identifier "iVar7") (= "=") (number_literal "4")) (; ";")) (expression_statement "puVar24 = *(undefined4 **)(puVar23 + 0x517cc);" (assignment_expression "puVar24 = *(undefined4 **)(puVar23 + 0x517cc)" (identifier "puVar24") (= "=") (pointer_expression "*(undefined4 **)(puVar23 + 0x517cc)" (* "*") (cast_expression "(undefined4 **)(puVar23 + 0x517cc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar23 + 0x517cc)" (( "(") (binary_expression "puVar23 + 0x517cc" (identifier "puVar23") (+ "+") (number_literal "0x517cc")) () ")"))))) (; ";")) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" (identifier "iVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar18 = 0;" (assignment_expression "iVar18 = 0" (identifier "iVar18") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar6 = 0x10;\n    if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }\n    iVar8 = (*(code *)*puVar16)(1,0x20);\n    if (iVar8 == 0) break;\n    iVar13 = (*(code *)*puVar24)(*puVar4);\n    *(int *)(iVar8 + 0x14) = iVar13;\n    if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }\n    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);\n    *(undefined2 **)(iVar8 + 0x18) = puVar9;\n    if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }\n    if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }\n    if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }\n    iVar13 = puVar4[2];\n    *(undefined4 *)(iVar8 + 0x10) = uVar6;\n    *(undefined4 *)(iVar8 + 8) = 2;\n    *(int *)(iVar8 + 4) = iVar13;\n    if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    iVar7 = iVar7 + 4;\n    iVar18 = iVar8;\n    if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }\n  }" ({ "{") (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" (identifier "uVar6") (= "=") (number_literal "0x10")) (; ";")) (if_statement "if (iVar13 == 10) {\n      uVar6 = 0x1c;\n    }" (if "if") (parenthesized_expression "(iVar13 == 10)" (( "(") (binary_expression "iVar13 == 10" (identifier "iVar13") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n      uVar6 = 0x1c;\n    }" ({ "{") (expression_statement "uVar6 = 0x1c;" (assignment_expression "uVar6 = 0x1c" (identifier "uVar6") (= "=") (number_literal "0x1c")) (; ";")) (} "}"))) (expression_statement "iVar8 = (*(code *)*puVar16)(1,0x20);" (assignment_expression "iVar8 = (*(code *)*puVar16)(1,0x20)" (identifier "iVar8") (= "=") (call_expression "(*(code *)*puVar16)(1,0x20)" (parenthesized_expression "(*(code *)*puVar16)" (( "(") (pointer_expression "*(code *)*puVar16" (* "*") (cast_expression "(code *)*puVar16" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar16" (* "*") (identifier "puVar16")))) () ")")) (argument_list "(1,0x20)" (( "(") (number_literal "1") (, ",") (number_literal "0x20") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar13 = (*(code *)*puVar24)(*puVar4);" (assignment_expression "iVar13 = (*(code *)*puVar24)(*puVar4)" (identifier "iVar13") (= "=") (call_expression "(*(code *)*puVar24)(*puVar4)" (parenthesized_expression "(*(code *)*puVar24)" (( "(") (pointer_expression "*(code *)*puVar24" (* "*") (cast_expression "(code *)*puVar24" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar24" (* "*") (identifier "puVar24")))) () ")")) (argument_list "(*puVar4)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")")))) (; ";")) (expression_statement "*(int *)(iVar8 + 0x14) = iVar13;" (assignment_expression "*(int *)(iVar8 + 0x14) = iVar13" (pointer_expression "*(int *)(iVar8 + 0x14)" (* "*") (cast_expression "(int *)(iVar8 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x14)" (( "(") (binary_expression "iVar8 + 0x14" (identifier "iVar8") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar13")) (; ";")) (if_statement "if (iVar13 == 0) {\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }" (if "if") (parenthesized_expression "(iVar13 == 0)" (( "(") (binary_expression "iVar13 == 0" (identifier "iVar13") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);\n      break;\n    }" ({ "{") (expression_statement "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);" (call_expression "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8)" (parenthesized_expression "(*(code *)**(undefined4 **)(puVar23 + 0x516e0))" (( "(") (pointer_expression "*(code *)**(undefined4 **)(puVar23 + 0x516e0)" (* "*") (cast_expression "(code *)**(undefined4 **)(puVar23 + 0x516e0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(puVar23 + 0x516e0)" (* "*") (pointer_expression "*(undefined4 **)(puVar23 + 0x516e0)" (* "*") (cast_expression "(undefined4 **)(puVar23 + 0x516e0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar23 + 0x516e0)" (( "(") (binary_expression "puVar23 + 0x516e0" (identifier "puVar23") (+ "+") (number_literal "0x516e0")) () ")"))))))) () ")")) (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);" (assignment_expression "puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6)" (identifier "puVar9") (= "=") (cast_expression "(undefined2 *)(*(code *)*puVar16)(1,uVar6)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)*puVar16)(1,uVar6)" (parenthesized_expression "(*(code *)*puVar16)" (( "(") (pointer_expression "*(code *)*puVar16" (* "*") (cast_expression "(code *)*puVar16" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar16" (* "*") (identifier "puVar16")))) () ")")) (argument_list "(1,uVar6)" (( "(") (number_literal "1") (, ",") (identifier "uVar6") () ")"))))) (; ";")) (expression_statement "*(undefined2 **)(iVar8 + 0x18) = puVar9;" (assignment_expression "*(undefined2 **)(iVar8 + 0x18) = puVar9" (pointer_expression "*(undefined2 **)(iVar8 + 0x18)" (* "*") (cast_expression "(undefined2 **)(iVar8 + 0x18)" (( "(") (type_descriptor "undefined2 **" (type_identifier "undefined2") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 0x18)" (( "(") (binary_expression "iVar8 + 0x18" (identifier "iVar8") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "puVar9")) (; ";")) (if_statement "if (puVar9 == (undefined2 *)0x0) {\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }" (if "if") (parenthesized_expression "(puVar9 == (undefined2 *)0x0)" (( "(") (binary_expression "puVar9 == (undefined2 *)0x0" (identifier "puVar9") (== "==") (cast_expression "(undefined2 *)0x0" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);\n      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));\n      (*(code *)*puVar4)(iVar8);\n      FUN_00054760(iVar17);\n      return 0;\n    }" ({ "{") (expression_statement "puVar4 = *(undefined4 **)(puVar23 + 0x516e0);" (assignment_expression "puVar4 = *(undefined4 **)(puVar23 + 0x516e0)" (identifier "puVar4") (= "=") (pointer_expression "*(undefined4 **)(puVar23 + 0x516e0)" (* "*") (cast_expression "(undefined4 **)(puVar23 + 0x516e0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar23 + 0x516e0)" (( "(") (binary_expression "puVar23 + 0x516e0" (identifier "puVar23") (+ "+") (number_literal "0x516e0")) () ")"))))) (; ";")) (expression_statement "(*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));" (call_expression "(*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14))" (parenthesized_expression "(*(code *)*puVar4)" (( "(") (pointer_expression "*(code *)*puVar4" (* "*") (cast_expression "(code *)*puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) () ")")) (argument_list "(*(undefined4 *)(iVar8 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(iVar8 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x14)" (( "(") (binary_expression "iVar8 + 0x14" (identifier "iVar8") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)*puVar4)(iVar8);" (call_expression "(*(code *)*puVar4)(iVar8)" (parenthesized_expression "(*(code *)*puVar4)" (( "(") (pointer_expression "*(code *)*puVar4" (* "*") (cast_expression "(code *)*puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) () ")")) (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "FUN_00054760(iVar17);" (call_expression "FUN_00054760(iVar17)" (identifier "FUN_00054760") (argument_list "(iVar17)" (( "(") (identifier "iVar17") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar17 == 0) {\n      iVar17 = iVar8;\n    }" (if "if") (parenthesized_expression "(iVar17 == 0)" (( "(") (binary_expression "iVar17 == 0" (identifier "iVar17") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar17 = iVar8;\n    }" ({ "{") (expression_statement "iVar17 = iVar8;" (assignment_expression "iVar17 = iVar8" (identifier "iVar17") (= "=") (identifier "iVar8")) (; ";")) (} "}"))) (if_statement "if (iVar18 != 0) {\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }" (if "if") (parenthesized_expression "(iVar18 != 0)" (( "(") (binary_expression "iVar18 != 0" (identifier "iVar18") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(iVar18 + 0x1c) = iVar8;\n    }" ({ "{") (expression_statement "*(int *)(iVar18 + 0x1c) = iVar8;" (assignment_expression "*(int *)(iVar18 + 0x1c) = iVar8" (pointer_expression "*(int *)(iVar18 + 0x1c)" (* "*") (cast_expression "(int *)(iVar18 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar18 + 0x1c)" (( "(") (binary_expression "iVar18 + 0x1c" (identifier "iVar18") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (} "}"))) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" (identifier "iVar13") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + 0x10) = uVar6;" (assignment_expression "*(undefined4 *)(iVar8 + 0x10) = uVar6" (pointer_expression "*(undefined4 *)(iVar8 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x10)" (( "(") (binary_expression "iVar8 + 0x10" (identifier "iVar8") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + 8) = 2;" (assignment_expression "*(undefined4 *)(iVar8 + 8) = 2" (pointer_expression "*(undefined4 *)(iVar8 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 8)" (( "(") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(int *)(iVar8 + 4) = iVar13;" (assignment_expression "*(int *)(iVar8 + 4) = iVar13" (pointer_expression "*(int *)(iVar8 + 4)" (* "*") (cast_expression "(int *)(iVar8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar13")) (; ";")) (if_statement "if (iVar13 == 2) {\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }\n    else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" (if "if") (parenthesized_expression "(iVar13 == 2)" (( "(") (binary_expression "iVar13 == 2" (identifier "iVar13") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      uVar11 = *puVar21;\n      uVar19 = (uint)(puVar9 + 2) & 3;\n      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);\n      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;\n      uVar19 = (int)puVar9 + 7U & 3;\n      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);\n      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;\n      iVar13 = puVar4[2];\n      puVar9[1] = uVar12;\n      *puVar9 = (short)iVar13;\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" ({ "{") (expression_statement "uVar11 = *puVar21;" (assignment_expression "uVar11 = *puVar21" (identifier "uVar11") (= "=") (pointer_expression "*puVar21" (* "*") (identifier "puVar21"))) (; ";")) (expression_statement "uVar19 = (uint)(puVar9 + 2) & 3;" (assignment_expression "uVar19 = (uint)(puVar9 + 2) & 3" (identifier "uVar19") (= "=") (binary_expression "(uint)(puVar9 + 2) & 3" (call_expression "(uint)(puVar9 + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar9 + 2)" (( "(") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2")) () ")"))) (& "&") (number_literal "3"))) (; ";")) (expression_statement "puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);" (assignment_expression "puVar21 = (uint *)((int)(puVar9 + 2) - uVar19)" (identifier "puVar21") (= "=") (cast_expression "(uint *)((int)(puVar9 + 2) - uVar19)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)(puVar9 + 2) - uVar19)" (( "(") (binary_expression "(int)(puVar9 + 2) - uVar19" (cast_expression "(int)(puVar9 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar9 + 2)" (( "(") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2")) () ")"))) (- "-") (identifier "uVar19")) () ")")))) (; ";")) (expression_statement "*puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;" (assignment_expression "*puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8" (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) (= "=") (binary_expression "*puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8" (binary_expression "*puVar21 & -1 << (4 - uVar19) * 8" (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) (& "&") (binary_expression "-1 << (4 - uVar19) * 8" (number_literal "-1") (<< "<<") (binary_expression "(4 - uVar19) * 8" (parenthesized_expression "(4 - uVar19)" (( "(") (binary_expression "4 - uVar19" (number_literal "4") (- "-") (identifier "uVar19")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "uVar11 >> uVar19 * 8" (identifier "uVar11") (>> ">>") (binary_expression "uVar19 * 8" (identifier "uVar19") (* "*") (number_literal "8"))))) (; ";")) (expression_statement "uVar19 = (int)puVar9 + 7U & 3;" (assignment_expression "uVar19 = (int)puVar9 + 7U & 3" (identifier "uVar19") (= "=") (binary_expression "(int)puVar9 + 7U & 3" (binary_expression "(int)puVar9 + 7U" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "7U")) (& "&") (number_literal "3"))) (; ";")) (expression_statement "puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);" (assignment_expression "puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19)" (identifier "puVar21") (= "=") (cast_expression "(uint *)(((int)puVar9 + 7U) - uVar19)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((int)puVar9 + 7U) - uVar19)" (( "(") (binary_expression "((int)puVar9 + 7U) - uVar19" (parenthesized_expression "((int)puVar9 + 7U)" (( "(") (binary_expression "(int)puVar9 + 7U" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "7U")) () ")")) (- "-") (identifier "uVar19")) () ")")))) (; ";")) (expression_statement "*puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;" (assignment_expression "*puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8" (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) (= "=") (binary_expression "*puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8" (binary_expression "*puVar21 & 0xffffffffU >> (uVar19 + 1) * 8" (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) (& "&") (binary_expression "0xffffffffU >> (uVar19 + 1) * 8" (number_literal "0xffffffffU") (>> ">>") (binary_expression "(uVar19 + 1) * 8" (parenthesized_expression "(uVar19 + 1)" (( "(") (binary_expression "uVar19 + 1" (identifier "uVar19") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "uVar11 << (3 - uVar19) * 8" (identifier "uVar11") (<< "<<") (binary_expression "(3 - uVar19) * 8" (parenthesized_expression "(3 - uVar19)" (( "(") (binary_expression "3 - uVar19" (number_literal "3") (- "-") (identifier "uVar19")) () ")")) (* "*") (number_literal "8"))))) (; ";")) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" (identifier "iVar13") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar9[1] = uVar12;" (assignment_expression "puVar9[1] = uVar12" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar12")) (; ";")) (expression_statement "*puVar9 = (short)iVar13;" (assignment_expression "*puVar9 = (short)iVar13" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (cast_expression "(short)iVar13" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar13"))) (; ";")) (expression_statement "puVar21 = *(uint **)(puVar4[4] + iVar7);" (assignment_expression "puVar21 = *(uint **)(puVar4[4] + iVar7)" (identifier "puVar21") (= "=") (pointer_expression "*(uint **)(puVar4[4] + iVar7)" (* "*") (cast_expression "(uint **)(puVar4[4] + iVar7)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4[4] + iVar7)" (( "(") (binary_expression "puVar4[4] + iVar7" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar7")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" (else "else") (compound_statement "{\n      if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }\n      puVar21 = *(uint **)(puVar4[4] + iVar7);\n    }" ({ "{") (if_statement "if (iVar13 == 10) {\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }" (if "if") (parenthesized_expression "(iVar13 == 10)" (( "(") (binary_expression "iVar13 == 10" (identifier "iVar13") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n        uVar14 = puVar21[1];\n        uVar11 = puVar21[2];\n        uVar19 = puVar21[3];\n        *(uint *)(puVar9 + 4) = *puVar21;\n        *(uint *)(puVar9 + 6) = uVar14;\n        *(uint *)(puVar9 + 8) = uVar11;\n        *(uint *)(puVar9 + 10) = uVar19;\n        iVar13 = puVar4[2];\n        *puVar9 = (short)iVar13;\n        puVar9[1] = uVar12;\n      }" ({ "{") (expression_statement "uVar14 = puVar21[1];" (assignment_expression "uVar14 = puVar21[1]" (identifier "uVar14") (= "=") (subscript_expression "puVar21[1]" (identifier "puVar21") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar11 = puVar21[2];" (assignment_expression "uVar11 = puVar21[2]" (identifier "uVar11") (= "=") (subscript_expression "puVar21[2]" (identifier "puVar21") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar19 = puVar21[3];" (assignment_expression "uVar19 = puVar21[3]" (identifier "uVar19") (= "=") (subscript_expression "puVar21[3]" (identifier "puVar21") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(uint *)(puVar9 + 4) = *puVar21;" (assignment_expression "*(uint *)(puVar9 + 4) = *puVar21" (pointer_expression "*(uint *)(puVar9 + 4)" (* "*") (cast_expression "(uint *)(puVar9 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 4)" (( "(") (binary_expression "puVar9 + 4" (identifier "puVar9") (+ "+") (number_literal "4")) () ")")))) (= "=") (pointer_expression "*puVar21" (* "*") (identifier "puVar21"))) (; ";")) (expression_statement "*(uint *)(puVar9 + 6) = uVar14;" (assignment_expression "*(uint *)(puVar9 + 6) = uVar14" (pointer_expression "*(uint *)(puVar9 + 6)" (* "*") (cast_expression "(uint *)(puVar9 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 6)" (( "(") (binary_expression "puVar9 + 6" (identifier "puVar9") (+ "+") (number_literal "6")) () ")")))) (= "=") (identifier "uVar14")) (; ";")) (expression_statement "*(uint *)(puVar9 + 8) = uVar11;" (assignment_expression "*(uint *)(puVar9 + 8) = uVar11" (pointer_expression "*(uint *)(puVar9 + 8)" (* "*") (cast_expression "(uint *)(puVar9 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 8)" (( "(") (binary_expression "puVar9 + 8" (identifier "puVar9") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "*(uint *)(puVar9 + 10) = uVar19;" (assignment_expression "*(uint *)(puVar9 + 10) = uVar19" (pointer_expression "*(uint *)(puVar9 + 10)" (* "*") (cast_expression "(uint *)(puVar9 + 10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 10)" (( "(") (binary_expression "puVar9 + 10" (identifier "puVar9") (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "uVar19")) (; ";")) (expression_statement "iVar13 = puVar4[2];" (assignment_expression "iVar13 = puVar4[2]" (identifier "iVar13") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*puVar9 = (short)iVar13;" (assignment_expression "*puVar9 = (short)iVar13" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (cast_expression "(short)iVar13" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar13"))) (; ";")) (expression_statement "puVar9[1] = uVar12;" (assignment_expression "puVar9[1] = uVar12" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar12")) (; ";")) (} "}"))) (expression_statement "puVar21 = *(uint **)(puVar4[4] + iVar7);" (assignment_expression "puVar21 = *(uint **)(puVar4[4] + iVar7)" (identifier "puVar21") (= "=") (pointer_expression "*(uint **)(puVar4[4] + iVar7)" (* "*") (cast_expression "(uint **)(puVar4[4] + iVar7)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4[4] + iVar7)" (( "(") (binary_expression "puVar4[4] + iVar7" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar7")) () ")"))))) (; ";")) (} "}")))) (expression_statement "iVar7 = iVar7 + 4;" (assignment_expression "iVar7 = iVar7 + 4" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar18 = iVar8;" (assignment_expression "iVar18 = iVar8" (identifier "iVar18") (= "=") (identifier "iVar8")) (; ";")) (if_statement "if (puVar21 == (uint *)0x0) {\n      return iVar17;\n    }" (if "if") (parenthesized_expression "(puVar21 == (uint *)0x0)" (( "(") (binary_expression "puVar21 == (uint *)0x0" (identifier "puVar21") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return iVar17;\n    }" ({ "{") (return_statement "return iVar17;" (return "return") (identifier "iVar17") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00054760(iVar17);" (call_expression "FUN_00054760(iVar17)" (identifier "FUN_00054760") (argument_list "(iVar17)" (( "(") (identifier "iVar17") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(char *nodename,char *servname,type_1 *hints,type_2 **result)

{
  type_3 *puVar1;
  type_3 *puVar2;
  type_3 *puVar3;
  type_4 *var_12;
  type_2 *var_6;
  int var_17;
  char *var_7;
  type_5 *var_4;
  type_6 cVar9;
  int var_15;
  type_7 uVar12;
  type_8 var_16;
  type_8 uVar13;
  int iVar14;
  type_2 *var_8;
  type_2 *var_9;
  type_8 var_5;
  type_4 *puVar18;
  type_1 *var_11;
  type_8 *var_13;
  type_9 *pcVar21;
  type_3 *var_14;
  type_4 *puVar23;
  int var_2;
  type_1 *var_3;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  var_14 = PTR_getaddrinfo_000a6bb4;
  var_12 = *(type_4 **)PTR___stack_chk_guard_000a6fe0;
  *result = (type_2 *)0x0;
  var_2 = (*(type_9 *)var_14)();
  puVar2 = PTR_Curl_cstrdup_000a6230;
  var_14 = PTR_Curl_cmalloc_000a6198;
  uVar12 = var_1(servname,0);
  if (var_2 != 0) goto LAB_00054994;
  if (var_3 == (type_1 *)0x0) {
LAB_00054980:
    var_8 = (type_2 *)0x0;
    var_2 = -2;
  }
  else {
    var_8 = (type_2 *)0x0;
    var_9 = (type_2 *)0x0;
    var_11 = var_3;
    do {
      uVar12 = var_1(servname,0);
      var_5 = 0x10;
      var_6 = var_9;
      if (var_11->ai_family == 2) {
        var_4 = var_11->ai_addr;
LAB_00054880:
        if (((var_4 != (type_5 *)0x0) && (var_11->ai_addrlen != 0)) &&
           (var_5 <= var_11->ai_addrlen)) {
          var_6 = (type_2 *)(**(type_9 **)var_14)(0x20);
          if (var_6 != (type_2 *)0x0) {
            iVar14 = var_11->ai_flags;
            var_15 = var_11->ai_socktype;
            var_17 = var_11->ai_protocol;
            pcVar21 = *(type_9 **)var_14;
            var_6->ai_family = var_11->ai_family;
            var_6->ai_flags = iVar14;
            var_6->ai_socktype = var_15;
            var_6->ai_protocol = var_17;
            var_6->ai_addrlen = var_5;
            var_6->ai_addr = (type_5 *)0x0;
            var_6->ai_canonname = (char *)0x0;
            var_6->ai_next = (type_2 *)0x0;
            var_4 = (type_5 *)(*pcVar21)(var_5);
            uVar12 = (type_7)var_15;
            var_6->ai_addr = var_4;
            if (var_4 != (type_5 *)0x0) {
              servname = (char *)var_11->ai_addr;
              (*(type_9 *)PTR_memcpy_000a6eec)(var_4,servname,var_5);
              if (var_11->ai_canonname != (char *)0x0) {
                var_7 = (char *)(**(type_9 **)puVar2)();
                uVar12 = var_1(servname,0);
                var_6->ai_canonname = var_7;
                puVar1 = PTR_Curl_cfree_000a6144;
                if (var_7 == (char *)0x0) {
                  (**(type_9 **)PTR_Curl_cfree_000a6144)(var_6->ai_addr);
                  (**(type_9 **)puVar1)(var_6);
                  goto LAB_000549f4;
                }
              }
              if (var_8 == (type_2 *)0x0) {
                var_8 = var_6;
              }
              if (var_9 != (type_2 *)0x0) {
                var_9->ai_next = var_6;
              }
              goto LAB_00054944;
            }
            (**(type_9 **)PTR_Curl_cfree_000a6144)(var_6);
          }
LAB_000549f4:
          if (var_3 != (type_1 *)0x0) {
            (*(type_9 *)PTR_freeaddrinfo_000a6c20)();
          }
          var_10(var_8);
          var_2 = -10;
          *result = (type_2 *)0x0;
          goto LAB_00054994;
        }
      }
      else if (var_11->ai_family == 10) {
        var_5 = 0x1c;
        var_4 = var_11->ai_addr;
        goto LAB_00054880;
      }
LAB_00054944:
      uVar12 = var_1(servname,0);
      var_11 = var_11->ai_next;
      var_9 = var_6;
    } while (var_11 != (type_1 *)0x0);
    if (var_3 != (type_1 *)0x0) {
      (*(type_9 *)PTR_freeaddrinfo_000a6c20)();
    }
    if (var_8 == (type_2 *)0x0) goto LAB_00054980;
  }
  *result = var_8;
LAB_00054994:
  if (var_12 == *(type_4 **)puVar3) {
    return var_2;
  }
  var_14 = PTR___stack_chk_fail_000a6c54;
  (*(type_9 *)PTR___stack_chk_fail_000a6c54)();
  if ((var_12 == (type_4 *)0x0) || (var_13 = *(type_8 **)var_12[4], var_13 == (type_8 *)0x0)) {
    return 0;
  }
  var_15 = var_12[2];
  puVar18 = *(type_4 **)(var_14 + 0x516dc);
  var_17 = 4;
  puVar23 = *(type_4 **)(var_14 + 0x517cc);
  var_8 = (type_2 *)0x0;
  var_9 = (type_2 *)0x0;
  while( true ) {
    cVar9 = 0x10;
    if (var_15 == 10) {
      cVar9 = 0x1c;
    }
    var_6 = (type_2 *)(*(type_9 *)*puVar18)(1,0x20);
    if (var_6 == (type_2 *)0x0) break;
    var_7 = (char *)(*(type_9 *)*puVar23)(*var_12);
    var_6->ai_canonname = var_7;
    if (var_7 == (char *)0x0) {
      (*(type_9 *)**(type_4 **)(var_14 + 0x516e0))(var_6);
      break;
    }
    var_4 = (type_5 *)(*(type_9 *)*puVar18)(1,cVar9);
    var_6->ai_addr = var_4;
    if (var_4 == (type_5 *)0x0) {
      var_12 = *(type_4 **)(var_14 + 0x516e0);
      (*(type_9 *)*var_12)(var_6->ai_canonname);
      (*(type_9 *)*var_12)(var_6);
      var_10(var_8);
      return 0;
    }
    if (var_8 == (type_2 *)0x0) {
      var_8 = var_6;
    }
    if (var_9 != (type_2 *)0x0) {
      var_9->ai_next = var_6;
    }
    var_15 = var_12[2];
    var_6->ai_addrlen = cVar9;
    var_6->ai_socktype = 2;
    var_6->ai_family = var_15;
    if (var_15 == 2) {
      var_16 = *var_13;
      var_7 = var_4->sa_data + 2;
      var_5 = (type_8)var_7 & 3;
      *(type_8 *)(var_7 + -var_5) =
           *(type_8 *)(var_7 + -var_5) & -1 << (4 - var_5) * 8 | var_16 >> var_5 * 8;
      var_7 = var_4->sa_data + 5;
      var_5 = (type_8)var_7 & 3;
      *(type_8 *)(var_7 + -var_5) =
           *(type_8 *)(var_7 + -var_5) & 0xffffffffU >> (var_5 + 1) * 8 |
           var_16 << (3 - var_5) * 8;
      var_15 = var_12[2];
      *(type_7 *)var_4->sa_data = uVar12;
      var_4->sa_family = (type_10)var_15;
      var_13 = *(type_8 **)(var_12[4] + var_17);
    }
    else {
      if (var_15 == 10) {
        uVar13 = var_13[1];
        var_16 = var_13[2];
        var_5 = var_13[3];
        *(type_8 *)(var_4->sa_data + 6) = *var_13;
        *(type_8 *)(var_4->sa_data + 10) = uVar13;
        var_4[1].sa_family = (short)(var_16 >> 0x10);
        var_4[1].sa_data[0] = (char)(var_16 >> 8);
        var_4[1].sa_data[1] = (char)var_16;
        *(type_8 *)(var_4[1].sa_data + 2) = var_5;
        var_15 = var_12[2];
        var_4->sa_family = (type_10)var_15;
        *(type_7 *)var_4->sa_data = uVar12;
      }
      var_13 = *(type_8 **)(var_12[4] + var_17);
    }
    var_17 = var_17 + 4;
    var_9 = var_6;
    if (var_13 == (type_8 *)0x0) {
      return (int)var_8;
    }
  }
  var_10(var_8);
  return 0;
}


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

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

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  undefined2 *puVar9;
  undefined4 uVar10;
  undefined2 uVar12;
  uint uVar11;
  int iVar13;
  uint uVar14;
  undefined4 uVar15;
  undefined4 *puVar16;
  int iVar17;
  int iVar18;
  uint uVar19;
  undefined4 *puVar20;
  uint *puVar21;
  code *pcVar22;
  undefined *puVar23;
  undefined4 *puVar24;
  int local_3c;
  undefined4 *local_30;
  
  puVar3 = PTR___stack_chk_guard_000a6fe0;
  puVar23 = PTR_getaddrinfo_000a6bb4;
  puVar4 = *(undefined4 **)PTR___stack_chk_guard_000a6fe0;
  *param_4 = 0;
  local_3c = (*(code *)puVar23)();
  puVar2 = PTR_PTR_strdup_000a6230;
  puVar23 = PTR_PTR_malloc_000a6198;
  uVar12 = (undefined2)param_2;
  if (local_3c != 0) goto LAB_00054994;
  if (local_30 == (undefined4 *)0x0) {
LAB_00054980:
    puVar16 = (undefined4 *)0x0;
    local_3c = -2;
  }
  else {
    puVar16 = (undefined4 *)0x0;
    puVar24 = (undefined4 *)0x0;
    puVar20 = local_30;
    do {
      uVar12 = (undefined2)param_2;
      uVar19 = 0x10;
      puVar5 = puVar24;
      if (puVar20[1] == 2) {
        iVar7 = puVar20[5];
LAB_00054880:
        if (((iVar7 != 0) && (puVar20[4] != 0)) && (uVar19 <= (uint)puVar20[4])) {
          puVar5 = (undefined4 *)(**(code **)puVar23)(0x20);
          if (puVar5 != (undefined4 *)0x0) {
            uVar15 = *puVar20;
            uVar10 = puVar20[2];
            uVar6 = puVar20[3];
            pcVar22 = *(code **)puVar23;
            puVar5[1] = puVar20[1];
            *puVar5 = uVar15;
            puVar5[2] = uVar10;
            puVar5[3] = uVar6;
            puVar5[4] = uVar19;
            puVar5[6] = 0;
            puVar5[5] = 0;
            puVar5[7] = 0;
            iVar7 = (*pcVar22)(uVar19);
            uVar12 = (undefined2)uVar10;
            puVar5[6] = iVar7;
            if (iVar7 != 0) {
              param_2 = puVar20[5];
              (*(code *)PTR_memcpy_000a6eec)(iVar7,param_2,uVar19);
              if (puVar20[6] != 0) {
                iVar7 = (**(code **)puVar2)();
                uVar12 = (undefined2)param_2;
                puVar5[5] = iVar7;
                puVar1 = PTR_PTR_free_000a6144;
                if (iVar7 == 0) {
                  (**(code **)PTR_PTR_free_000a6144)(puVar5[6]);
                  (**(code **)puVar1)(puVar5);
                  goto LAB_000549f4;
                }
              }
              if (puVar16 == (undefined4 *)0x0) {
                puVar16 = puVar5;
              }
              if (puVar24 != (undefined4 *)0x0) {
                puVar24[7] = puVar5;
              }
              goto LAB_00054944;
            }
            (**(code **)PTR_PTR_free_000a6144)(puVar5);
          }
LAB_000549f4:
          if (local_30 != (undefined4 *)0x0) {
            (*(code *)PTR_freeaddrinfo_000a6c20)();
          }
          FUN_00054760(puVar16);
          local_3c = -10;
          *param_4 = 0;
          goto LAB_00054994;
        }
      }
      else if (puVar20[1] == 10) {
        uVar19 = 0x1c;
        iVar7 = puVar20[5];
        goto LAB_00054880;
      }
LAB_00054944:
      uVar12 = (undefined2)param_2;
      puVar20 = (undefined4 *)puVar20[7];
      puVar24 = puVar5;
    } while (puVar20 != (undefined4 *)0x0);
    if (local_30 != (undefined4 *)0x0) {
      (*(code *)PTR_freeaddrinfo_000a6c20)();
    }
    if (puVar16 == (undefined4 *)0x0) goto LAB_00054980;
  }
  *param_4 = puVar16;
LAB_00054994:
  if (puVar4 == *(undefined4 **)puVar3) {
    return local_3c;
  }
  puVar23 = PTR___stack_chk_fail_000a6c54;
  (*(code *)PTR___stack_chk_fail_000a6c54)();
  if ((puVar4 == (undefined4 *)0x0) || (puVar21 = *(uint **)puVar4[4], puVar21 == (uint *)0x0)) {
    return 0;
  }
  iVar13 = puVar4[2];
  puVar16 = *(undefined4 **)(puVar23 + 0x516dc);
  iVar7 = 4;
  puVar24 = *(undefined4 **)(puVar23 + 0x517cc);
  iVar17 = 0;
  iVar18 = 0;
  while( true ) {
    uVar6 = 0x10;
    if (iVar13 == 10) {
      uVar6 = 0x1c;
    }
    iVar8 = (*(code *)*puVar16)(1,0x20);
    if (iVar8 == 0) break;
    iVar13 = (*(code *)*puVar24)(*puVar4);
    *(int *)(iVar8 + 0x14) = iVar13;
    if (iVar13 == 0) {
      (*(code *)**(undefined4 **)(puVar23 + 0x516e0))(iVar8);
      break;
    }
    puVar9 = (undefined2 *)(*(code *)*puVar16)(1,uVar6);
    *(undefined2 **)(iVar8 + 0x18) = puVar9;
    if (puVar9 == (undefined2 *)0x0) {
      puVar4 = *(undefined4 **)(puVar23 + 0x516e0);
      (*(code *)*puVar4)(*(undefined4 *)(iVar8 + 0x14));
      (*(code *)*puVar4)(iVar8);
      FUN_00054760(iVar17);
      return 0;
    }
    if (iVar17 == 0) {
      iVar17 = iVar8;
    }
    if (iVar18 != 0) {
      *(int *)(iVar18 + 0x1c) = iVar8;
    }
    iVar13 = puVar4[2];
    *(undefined4 *)(iVar8 + 0x10) = uVar6;
    *(undefined4 *)(iVar8 + 8) = 2;
    *(int *)(iVar8 + 4) = iVar13;
    if (iVar13 == 2) {
      uVar11 = *puVar21;
      uVar19 = (uint)(puVar9 + 2) & 3;
      puVar21 = (uint *)((int)(puVar9 + 2) - uVar19);
      *puVar21 = *puVar21 & -1 << (4 - uVar19) * 8 | uVar11 >> uVar19 * 8;
      uVar19 = (int)puVar9 + 7U & 3;
      puVar21 = (uint *)(((int)puVar9 + 7U) - uVar19);
      *puVar21 = *puVar21 & 0xffffffffU >> (uVar19 + 1) * 8 | uVar11 << (3 - uVar19) * 8;
      iVar13 = puVar4[2];
      puVar9[1] = uVar12;
      *puVar9 = (short)iVar13;
      puVar21 = *(uint **)(puVar4[4] + iVar7);
    }
    else {
      if (iVar13 == 10) {
        uVar14 = puVar21[1];
        uVar11 = puVar21[2];
        uVar19 = puVar21[3];
        *(uint *)(puVar9 + 4) = *puVar21;
        *(uint *)(puVar9 + 6) = uVar14;
        *(uint *)(puVar9 + 8) = uVar11;
        *(uint *)(puVar9 + 10) = uVar19;
        iVar13 = puVar4[2];
        *puVar9 = (short)iVar13;
        puVar9[1] = uVar12;
      }
      puVar21 = *(uint **)(puVar4[4] + iVar7);
    }
    iVar7 = iVar7 + 4;
    iVar18 = iVar8;
    if (puVar21 == (uint *)0x0) {
      return iVar17;
    }
  }
  FUN_00054760(iVar17);
  return 0;
}

