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

SockAddr sk_namelookup(char *host,char **canonicalname,int address_family)

{
  undefined *puVar1;
  int iVar2;
  SockAddr pSVar3;
  undefined4 uVar4;
  int iVar5;
  char *pcVar6;
  undefined *puVar7;
  code *pcVar8;
  addrinfo hints;
  char realhost [8192];
  
  puVar7 = PTR___stack_chk_guard_000b0c9c;
  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;
  pSVar3 = (SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);
  (*(code *)PTR_memset_000b0bc0)(pSVar3,0,0x210);
  realhost[0] = '\0';
  pSVar3->refcount = 1;
  pSVar3->superfamily = ADDRTYPE_UNSPEC;
  pSVar3->error = (char *)0x0;
  hints.ai_flags = 2;
  if (address_family == 1) {
    hints.ai_family = 2;
  }
  else {
    hints.ai_family = 10;
    if (address_family != 2) {
      hints.ai_family = 0;
    }
  }
  hints.ai_socktype = 2;
  hints.ai_protocol = 0;
  hints.ai_addrlen = 0;
  hints.ai_addr = (sockaddr *)0x0;
  hints.ai_canonname = (char *)0x0;
  hints.ai_next = (addrinfo *)0x0;
  uVar4 = (*(code *)PTR_host_strduptrim_000b0630)(host);
  iVar5 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais);
  (*(code *)PTR_safefree_000b01b0)(uVar4);
  puVar1 = PTR___strncat_chk_000b0b0c;
  if (iVar5 == 0) {
    pSVar3->superfamily = ADDRTYPE_IPV6;
    pcVar6 = pSVar3->ais->ai_canonname;
    if (pcVar6 == (char *)0x0) {
      pcVar6 = host;
    }
    (*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);
    realhost[0x1fff] = '\0';
    iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);
    pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);
    *canonicalname = pcVar6;
    (*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);
  }
  else {
    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);
    pSVar3->error = pcVar6;
  }
  if (iVar2 != *(int *)puVar7) {
    puVar7 = PTR___stack_chk_fail_000b0c70;
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);
    pSVar3->error = (char *)0x0;
    pcVar8 = *(code **)(puVar7 + 0x2eaa4);
    pSVar3->superfamily = ADDRTYPE_UNSPEC;
    (*pcVar8)(pSVar3->hostname,iVar2,0x200);
    pSVar3->hostname[0x1ff] = '\0';
    pSVar3->ais = (addrinfo *)0x0;
    pSVar3->refcount = 1;
    return pSVar3;
  }
  return pSVar3;
}



undefined4 * sk_namelookup(int param_1,undefined4 *param_2,int param_3)

{
  undefined *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  code *pcVar6;
  undefined4 local_2044;
  undefined4 local_2040;
  undefined4 local_203c;
  undefined4 local_2038;
  undefined4 local_2034;
  undefined4 local_2030;
  undefined4 local_202c;
  undefined4 local_2028;
  undefined1 local_2024 [8191];
  undefined1 local_25;
  int local_24;
  
  puVar5 = PTR___stack_chk_guard_000b0c9c;
  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;
  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);
  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);
  local_2024[0] = 0;
  *puVar2 = 1;
  puVar2[2] = 0;
  puVar2[1] = 0;
  local_2044 = 2;
  if (param_3 == 1) {
    local_2040 = 2;
  }
  else {
    local_2040 = 10;
    if (param_3 != 2) {
      local_2040 = 0;
    }
  }
  local_203c = 2;
  local_2038 = 0;
  local_2034 = 0;
  local_2030 = 0;
  local_202c = 0;
  local_2028 = 0;
  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);
  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);
  (*(code *)PTR_safefree_000b01b0)(uVar3);
  puVar1 = PTR___strncat_chk_000b0b0c;
  if (iVar4 == 0) {
    puVar2[2] = 2;
    iVar4 = *(int *)(puVar2[3] + 0x18);
    if (*(int *)(puVar2[3] + 0x18) == 0) {
      iVar4 = param_1;
    }
    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);
    local_25 = 0;
    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);
    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);
    *param_2 = uVar3;
    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);
  }
  else {
    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);
    puVar2[1] = uVar3;
  }
  if (local_24 != *(int *)puVar5) {
    iVar4 = local_24;
    puVar5 = PTR___stack_chk_fail_000b0c70;
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);
    puVar2[1] = 0;
    pcVar6 = *(code **)(puVar5 + 0x2eaa4);
    puVar2[2] = 0;
    (*pcVar6)(puVar2 + 4,iVar4,0x200);
    *(undefined1 *)((int)puVar2 + 0x20f) = 0;
    puVar2[3] = 0;
    *puVar2 = 1;
    return puVar2;
  }
  return puVar2;
}


lui gp,0x3
addiu gp,gp,0x6248
addu gp,gp,t9
addiu sp,sp,-0x2060
lw t9,-0x7f68(gp)
sw s2,0x204c(sp)
lw s2,-0x74b4(gp)
sw s4,0x2054(sp)
or s4,a1,zero
sw s3,0x2050(sp)
li a1,0x210
or s3,a0,zero
sw gp,0x10(sp)
sw ra,0x205c(sp)
li a0,0x1
sw s1,0x2048(sp)
or s1,a2,zero
sw s0,0x2044(sp)
sw s5,0x2058(sp)
lw v0,0x0(s2)
sw v0,0x203c(sp)
jalr t9
_nop
li a2,0x210
lw gp,0x10(sp)
or a1,zero,zero
or a0,v0,zero
lw t9,-0x7590(gp)
jalr t9
_or s0,v0,zero
li v0,0x1
li v1,0x2
lw gp,0x10(sp)
sb zero,0x3c(sp)
sw v0,0x0(s0)
sw zero,0x8(s0)
sw zero,0x4(s0)
beq s1,v0,0x000820c4
_sw v1,0x1c(sp)
li v0,0xa
xori s1,s1,0x2
movn v0,zero,s1
or s1,v0,zero
lw t9,-0x7b20(gp)
li s5,0x2
or a0,s3,zero
sw s1,0x20(sp)
sw s5,0x24(sp)
sw zero,0x28(sp)
sw zero,0x2c(sp)
sw zero,0x30(sp)
sw zero,0x34(sp)
jalr t9
_sw zero,0x38(sp)
addiu a3,s0,0xc
lw gp,0x10(sp)
addiu a2,sp,0x1c
or a1,zero,zero
or a0,v0,zero
lw t9,-0x763c(gp)
jalr t9
_or s1,v0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7fa0(gp)
jalr t9
_or s1,v0,zero
bne s1,zero,0x000820d4
_lw gp,0x10(sp)
lw v0,0xc(s0)
addiu s1,sp,0x3c
lw t9,-0x7644(gp)
li a3,0x2000
sw s5,0x8(s0)
lw a1,0x18(v0)
beq a1,zero,0x000820cc
_li a2,0x1fff
jalr t9
_or a0,s1,zero
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x756c(gp)
jalr t9
_sb zero,0x203b(sp)
li a1,0x1
lw gp,0x10(sp)
addiu s3,v0,0x1
lw t9,-0x7f68(gp)
jalr t9
_or a0,s3,zero
or a2,s3,zero
lw gp,0x10(sp)
or a1,s1,zero
sw v0,0x0(s4)
lw t9,-0x74b0(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
lw a0,0x203c(sp)
or v0,s0,zero
lw v1,0x0(s2)
bne a0,v1,0x000820ec
_lw ra,0x205c(sp)
lw s5,0x2058(sp)
lw s4,0x2054(sp)
lw s3,0x2050(sp)
lw s2,0x204c(sp)
lw s1,0x2048(sp)
lw s0,0x2044(sp)
jr ra
_addiu sp,sp,0x2060
b 0x00081fb4
_li s1,0x2
b 0x0008203c
_or a1,s3,zero
lw t9,-0x74a4(gp)
jalr t9
_or a0,s1,zero
lw gp,0x10(sp)
b 0x00082090
_sw v0,0x4(s0)
lw t9,-0x74e0(gp)
jalr t9
_nop
(translation_unit "undefined4 * sk_namelookup(int param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined4 * sk_namelookup(int param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* sk_namelookup(int param_1,undefined4 *param_2,int param_3)" * (function_declarator "sk_namelookup(int param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 local_2044;" type_identifier identifier ;) (declaration "undefined4 local_2040;" type_identifier identifier ;) (declaration "undefined4 local_203c;" type_identifier identifier ;) (declaration "undefined4 local_2038;" type_identifier identifier ;) (declaration "undefined4 local_2034;" type_identifier identifier ;) (declaration "undefined4 local_2030;" type_identifier identifier ;) (declaration "undefined4 local_202c;" type_identifier identifier ;) (declaration "undefined4 local_2028;" type_identifier identifier ;) (declaration "undefined1 local_2024 [8191];" type_identifier (array_declarator "local_2024 [8191]" identifier [ number_literal ]) ;) (declaration "undefined1 local_25;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x210)" ( number_literal , number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);" (call_expression "(*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210)" (parenthesized_expression "(*(code *)PTR_memset_000b0bc0)" ( (pointer_expression "*(code *)PTR_memset_000b0bc0" * (cast_expression "(code *)PTR_memset_000b0bc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,0,0x210)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "local_2024[0] = 0;" (assignment_expression "local_2024[0] = 0" (subscript_expression "local_2024[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_2044 = 2;" (assignment_expression "local_2044 = 2" identifier = number_literal) ;) (if_statement "if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    local_2040 = 2;\n  }" { (expression_statement "local_2040 = 2;" (assignment_expression "local_2040 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" else (compound_statement "{\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" { (expression_statement "local_2040 = 10;" (assignment_expression "local_2040 = 10" identifier = number_literal) ;) (if_statement "if (param_3 != 2) {\n      local_2040 = 0;\n    }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n      local_2040 = 0;\n    }" { (expression_statement "local_2040 = 0;" (assignment_expression "local_2040 = 0" identifier = number_literal) ;) })) }))) (expression_statement "local_203c = 2;" (assignment_expression "local_203c = 2" identifier = number_literal) ;) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2034 = 0;" (assignment_expression "local_2034 = 0" identifier = number_literal) ;) (expression_statement "local_2030 = 0;" (assignment_expression "local_2030 = 0" identifier = number_literal) ;) (expression_statement "local_202c = 0;" (assignment_expression "local_202c = 0" identifier = number_literal) ;) (expression_statement "local_2028 = 0;" (assignment_expression "local_2028 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1)" identifier = (call_expression "(*(code *)PTR_host_strduptrim_000b0630)(param_1)" (parenthesized_expression "(*(code *)PTR_host_strduptrim_000b0630)" ( (pointer_expression "*(code *)PTR_host_strduptrim_000b0630" * (cast_expression "(code *)PTR_host_strduptrim_000b0630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);" (assignment_expression "iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3)" identifier = (call_expression "(*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3)" (parenthesized_expression "(*(code *)PTR_getaddrinfo_000b0b14)" ( (pointer_expression "*(code *)PTR_getaddrinfo_000b0b14" * (cast_expression "(code *)PTR_getaddrinfo_000b0b14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,0,&local_2044,puVar2 + 3)" ( identifier , number_literal , (pointer_expression "&local_2044" & identifier) , (binary_expression "puVar2 + 3" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(uVar3);" (call_expression "(*(code *)PTR_safefree_000b01b0)(uVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___strncat_chk_000b0b0c;" (assignment_expression "puVar1 = PTR___strncat_chk_000b0b0c" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }" { (expression_statement "puVar2[2] = 2;" (assignment_expression "puVar2[2] = 2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = *(int *)(puVar2[3] + 0x18);" (assignment_expression "iVar4 = *(int *)(puVar2[3] + 0x18)" identifier = (pointer_expression "*(int *)(puVar2[3] + 0x18)" * (cast_expression "(int *)(puVar2[3] + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2[3] + 0x18)" ( (binary_expression "puVar2[3] + 0x18" (subscript_expression "puVar2[3]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }" if (parenthesized_expression "(*(int *)(puVar2[3] + 0x18) == 0)" ( (binary_expression "*(int *)(puVar2[3] + 0x18) == 0" (pointer_expression "*(int *)(puVar2[3] + 0x18)" * (cast_expression "(int *)(puVar2[3] + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2[3] + 0x18)" ( (binary_expression "puVar2[3] + 0x18" (subscript_expression "puVar2[3]" identifier [ number_literal ]) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar4 = param_1;\n    }" { (expression_statement "iVar4 = param_1;" (assignment_expression "iVar4 = param_1" identifier = identifier) ;) })) (expression_statement "(*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);" (call_expression "(*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2024,iVar4,0x1fff,0x2000)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "local_25 = 0;" (assignment_expression "local_25 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024)" identifier = (call_expression "(*(code *)PTR_strlen_000b0be4)(local_2024)" (parenthesized_expression "(*(code *)PTR_strlen_000b0be4)" ( (pointer_expression "*(code *)PTR_strlen_000b0be4" * (cast_expression "(code *)PTR_strlen_000b0be4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2024)" ( identifier )))) ;) (expression_statement "uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);" (assignment_expression "uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1)" identifier = (call_expression "(*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + 1,1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,local_2024,iVar4 + 1)" ( identifier , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) ))) ;) }) (else_clause "else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" else (compound_statement "{\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4)" identifier = (call_expression "(*(code *)PTR_gai_strerror_000b0cac)(iVar4)" (parenthesized_expression "(*(code *)PTR_gai_strerror_000b0cac)" ( (pointer_expression "*(code *)PTR_gai_strerror_000b0cac" * (cast_expression "(code *)PTR_gai_strerror_000b0cac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "puVar2[1] = uVar3;" (assignment_expression "puVar2[1] = uVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }" if (parenthesized_expression "(local_24 != *(int *)puVar5)" ( (binary_expression "local_24 != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }" { (expression_statement "iVar4 = local_24;" (assignment_expression "iVar4 = local_24" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" (parenthesized_expression "(**(code **)(puVar5 + 0x2e0f0))" ( (pointer_expression "**(code **)(puVar5 + 0x2e0f0)" * (pointer_expression "*(code **)(puVar5 + 0x2e0f0)" * (cast_expression "(code **)(puVar5 + 0x2e0f0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2e0f0)" ( (binary_expression "puVar5 + 0x2e0f0" identifier + number_literal) ))))) )) (argument_list "(1,0x210)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x2eaa4);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x2eaa4)" identifier = (pointer_expression "*(code **)(puVar5 + 0x2eaa4)" * (cast_expression "(code **)(puVar5 + 0x2eaa4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2eaa4)" ( (binary_expression "puVar5 + 0x2eaa4" identifier + number_literal) ))))) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar6)(puVar2 + 4,iVar4,0x200);" (call_expression "(*pcVar6)(puVar2 + 4,iVar4,0x200)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(puVar2 + 4,iVar4,0x200)" ( (binary_expression "puVar2 + 4" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0x20f) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x20f) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x20f)" * (cast_expression "(undefined1 *)((int)puVar2 + 0x20f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0x20f)" ( (binary_expression "(int)puVar2 + 0x20f" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSockAddr sk_namelookup(char *host,char **canonicalname,int address_family)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  SockAddr pSVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  addrinfo hints;\n  char realhost [8192];\n  \n  puVar7 = PTR___stack_chk_guard_000b0c9c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  pSVar3 = (SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(pSVar3,0,0x210);\n  realhost[0] = '\0';\n  pSVar3->refcount = 1;\n  pSVar3->superfamily = ADDRTYPE_UNSPEC;\n  pSVar3->error = (char *)0x0;\n  hints.ai_flags = 2;\n  if (address_family == 1) {\n    hints.ai_family = 2;\n  }\n  else {\n    hints.ai_family = 10;\n    if (address_family != 2) {\n      hints.ai_family = 0;\n    }\n  }\n  hints.ai_socktype = 2;\n  hints.ai_protocol = 0;\n  hints.ai_addrlen = 0;\n  hints.ai_addr = (sockaddr *)0x0;\n  hints.ai_canonname = (char *)0x0;\n  hints.ai_next = (addrinfo *)0x0;\n  uVar4 = (*(code *)PTR_host_strduptrim_000b0630)(host);\n  iVar5 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais);\n  (*(code *)PTR_safefree_000b01b0)(uVar4);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar5 == 0) {\n    pSVar3->superfamily = ADDRTYPE_IPV6;\n    pcVar6 = pSVar3->ais->ai_canonname;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = host;\n    }\n    (*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);\n    realhost[0x1fff] = '\0';\n    iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);\n    pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);\n    *canonicalname = pcVar6;\n    (*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);\n    pSVar3->error = pcVar6;\n  }\n  if (iVar2 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);\n    pSVar3->error = (char *)0x0;\n    pcVar8 = *(code **)(puVar7 + 0x2eaa4);\n    pSVar3->superfamily = ADDRTYPE_UNSPEC;\n    (*pcVar8)(pSVar3->hostname,iVar2,0x200);\n    pSVar3->hostname[0x1ff] = '\0';\n    pSVar3->ais = (addrinfo *)0x0;\n    pSVar3->refcount = 1;\n    return pSVar3;\n  }\n  return pSVar3;\n}\n\n" comment (function_definition "SockAddr sk_namelookup(char *host,char **canonicalname,int address_family)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  SockAddr pSVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  addrinfo hints;\n  char realhost [8192];\n  \n  puVar7 = PTR___stack_chk_guard_000b0c9c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  pSVar3 = (SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(pSVar3,0,0x210);\n  realhost[0] = '\0';\n  pSVar3->refcount = 1;\n  pSVar3->superfamily = ADDRTYPE_UNSPEC;\n  pSVar3->error = (char *)0x0;\n  hints.ai_flags = 2;\n  if (address_family == 1) {\n    hints.ai_family = 2;\n  }\n  else {\n    hints.ai_family = 10;\n    if (address_family != 2) {\n      hints.ai_family = 0;\n    }\n  }\n  hints.ai_socktype = 2;\n  hints.ai_protocol = 0;\n  hints.ai_addrlen = 0;\n  hints.ai_addr = (sockaddr *)0x0;\n  hints.ai_canonname = (char *)0x0;\n  hints.ai_next = (addrinfo *)0x0;\n  uVar4 = (*(code *)PTR_host_strduptrim_000b0630)(host);\n  iVar5 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais);\n  (*(code *)PTR_safefree_000b01b0)(uVar4);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar5 == 0) {\n    pSVar3->superfamily = ADDRTYPE_IPV6;\n    pcVar6 = pSVar3->ais->ai_canonname;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = host;\n    }\n    (*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);\n    realhost[0x1fff] = '\0';\n    iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);\n    pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);\n    *canonicalname = pcVar6;\n    (*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);\n    pSVar3->error = pcVar6;\n  }\n  if (iVar2 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);\n    pSVar3->error = (char *)0x0;\n    pcVar8 = *(code **)(puVar7 + 0x2eaa4);\n    pSVar3->superfamily = ADDRTYPE_UNSPEC;\n    (*pcVar8)(pSVar3->hostname,iVar2,0x200);\n    pSVar3->hostname[0x1ff] = '\0';\n    pSVar3->ais = (addrinfo *)0x0;\n    pSVar3->refcount = 1;\n    return pSVar3;\n  }\n  return pSVar3;\n}" type_identifier (function_declarator "sk_namelookup(char *host,char **canonicalname,int address_family)" identifier (parameter_list "(char *host,char **canonicalname,int address_family)" ( (parameter_declaration "char *host" primitive_type (pointer_declarator "*host" * identifier)) , (parameter_declaration "char **canonicalname" primitive_type (pointer_declarator "**canonicalname" * (pointer_declarator "*canonicalname" * identifier))) , (parameter_declaration "int address_family" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  SockAddr pSVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  addrinfo hints;\n  char realhost [8192];\n  \n  puVar7 = PTR___stack_chk_guard_000b0c9c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  pSVar3 = (SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(pSVar3,0,0x210);\n  realhost[0] = '\0';\n  pSVar3->refcount = 1;\n  pSVar3->superfamily = ADDRTYPE_UNSPEC;\n  pSVar3->error = (char *)0x0;\n  hints.ai_flags = 2;\n  if (address_family == 1) {\n    hints.ai_family = 2;\n  }\n  else {\n    hints.ai_family = 10;\n    if (address_family != 2) {\n      hints.ai_family = 0;\n    }\n  }\n  hints.ai_socktype = 2;\n  hints.ai_protocol = 0;\n  hints.ai_addrlen = 0;\n  hints.ai_addr = (sockaddr *)0x0;\n  hints.ai_canonname = (char *)0x0;\n  hints.ai_next = (addrinfo *)0x0;\n  uVar4 = (*(code *)PTR_host_strduptrim_000b0630)(host);\n  iVar5 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais);\n  (*(code *)PTR_safefree_000b01b0)(uVar4);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar5 == 0) {\n    pSVar3->superfamily = ADDRTYPE_IPV6;\n    pcVar6 = pSVar3->ais->ai_canonname;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = host;\n    }\n    (*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);\n    realhost[0x1fff] = '\0';\n    iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);\n    pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);\n    *canonicalname = pcVar6;\n    (*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);\n    pSVar3->error = pcVar6;\n  }\n  if (iVar2 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);\n    pSVar3->error = (char *)0x0;\n    pcVar8 = *(code **)(puVar7 + 0x2eaa4);\n    pSVar3->superfamily = ADDRTYPE_UNSPEC;\n    (*pcVar8)(pSVar3->hostname,iVar2,0x200);\n    pSVar3->hostname[0x1ff] = '\0';\n    pSVar3->ais = (addrinfo *)0x0;\n    pSVar3->refcount = 1;\n    return pSVar3;\n  }\n  return pSVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SockAddr pSVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "addrinfo hints;" type_identifier identifier ;) (declaration "char realhost [8192];" primitive_type (array_declarator "realhost [8192]" identifier [ number_literal ]) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pSVar3 = (SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);" (assignment_expression "pSVar3 = (SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" identifier = (call_expression "(SockAddr)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" (call_expression "(SockAddr)(*(code *)PTR_safemalloc_000b01e8)" (parenthesized_expression "(SockAddr)" ( identifier )) (argument_list "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(1,0x210)" ( number_literal , number_literal )))) ;) (expression_statement "(*(code *)PTR_memset_000b0bc0)(pSVar3,0,0x210);" (call_expression "(*(code *)PTR_memset_000b0bc0)(pSVar3,0,0x210)" (parenthesized_expression "(*(code *)PTR_memset_000b0bc0)" ( (pointer_expression "*(code *)PTR_memset_000b0bc0" * (cast_expression "(code *)PTR_memset_000b0bc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pSVar3,0,0x210)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "realhost[0] = '\0';" (assignment_expression "realhost[0] = '\0'" (subscript_expression "realhost[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pSVar3->refcount = 1;" (assignment_expression "pSVar3->refcount = 1" (field_expression "pSVar3->refcount" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar3->superfamily = ADDRTYPE_UNSPEC;" (assignment_expression "pSVar3->superfamily = ADDRTYPE_UNSPEC" (field_expression "pSVar3->superfamily" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar3->error = (char *)0x0;" (assignment_expression "pSVar3->error = (char *)0x0" (field_expression "pSVar3->error" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "hints.ai_flags = 2;" (assignment_expression "hints.ai_flags = 2" (field_expression "hints.ai_flags" identifier . field_identifier) = number_literal) ;) (if_statement "if (address_family == 1) {\n    hints.ai_family = 2;\n  }\n  else {\n    hints.ai_family = 10;\n    if (address_family != 2) {\n      hints.ai_family = 0;\n    }\n  }" if (parenthesized_expression "(address_family == 1)" ( (binary_expression "address_family == 1" identifier == number_literal) )) (compound_statement "{\n    hints.ai_family = 2;\n  }" { (expression_statement "hints.ai_family = 2;" (assignment_expression "hints.ai_family = 2" (field_expression "hints.ai_family" identifier . field_identifier) = number_literal) ;) }) (else_clause "else {\n    hints.ai_family = 10;\n    if (address_family != 2) {\n      hints.ai_family = 0;\n    }\n  }" else (compound_statement "{\n    hints.ai_family = 10;\n    if (address_family != 2) {\n      hints.ai_family = 0;\n    }\n  }" { (expression_statement "hints.ai_family = 10;" (assignment_expression "hints.ai_family = 10" (field_expression "hints.ai_family" identifier . field_identifier) = number_literal) ;) (if_statement "if (address_family != 2) {\n      hints.ai_family = 0;\n    }" if (parenthesized_expression "(address_family != 2)" ( (binary_expression "address_family != 2" identifier != number_literal) )) (compound_statement "{\n      hints.ai_family = 0;\n    }" { (expression_statement "hints.ai_family = 0;" (assignment_expression "hints.ai_family = 0" (field_expression "hints.ai_family" identifier . field_identifier) = number_literal) ;) })) }))) (expression_statement "hints.ai_socktype = 2;" (assignment_expression "hints.ai_socktype = 2" (field_expression "hints.ai_socktype" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_protocol = 0;" (assignment_expression "hints.ai_protocol = 0" (field_expression "hints.ai_protocol" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_addrlen = 0;" (assignment_expression "hints.ai_addrlen = 0" (field_expression "hints.ai_addrlen" identifier . field_identifier) = number_literal) ;) (expression_statement "hints.ai_addr = (sockaddr *)0x0;" (assignment_expression "hints.ai_addr = (sockaddr *)0x0" (field_expression "hints.ai_addr" identifier . field_identifier) = (cast_expression "(sockaddr *)0x0" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "hints.ai_canonname = (char *)0x0;" (assignment_expression "hints.ai_canonname = (char *)0x0" (field_expression "hints.ai_canonname" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "hints.ai_next = (addrinfo *)0x0;" (assignment_expression "hints.ai_next = (addrinfo *)0x0" (field_expression "hints.ai_next" identifier . field_identifier) = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar4 = (*(code *)PTR_host_strduptrim_000b0630)(host);" (assignment_expression "uVar4 = (*(code *)PTR_host_strduptrim_000b0630)(host)" identifier = (call_expression "(*(code *)PTR_host_strduptrim_000b0630)(host)" (parenthesized_expression "(*(code *)PTR_host_strduptrim_000b0630)" ( (pointer_expression "*(code *)PTR_host_strduptrim_000b0630" * (cast_expression "(code *)PTR_host_strduptrim_000b0630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(host)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais);" (assignment_expression "iVar5 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais)" identifier = (call_expression "(*(code *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais)" (parenthesized_expression "(*(code *)PTR_getaddrinfo_000b0b14)" ( (pointer_expression "*(code *)PTR_getaddrinfo_000b0b14" * (cast_expression "(code *)PTR_getaddrinfo_000b0b14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,0,&hints,&pSVar3->ais)" ( identifier , number_literal , (pointer_expression "&hints" & identifier) , (pointer_expression "&pSVar3->ais" & (field_expression "pSVar3->ais" identifier -> field_identifier)) )))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(uVar4);" (call_expression "(*(code *)PTR_safefree_000b01b0)(uVar4)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___strncat_chk_000b0b0c;" (assignment_expression "puVar1 = PTR___strncat_chk_000b0b0c" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n    pSVar3->superfamily = ADDRTYPE_IPV6;\n    pcVar6 = pSVar3->ais->ai_canonname;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = host;\n    }\n    (*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);\n    realhost[0x1fff] = '\0';\n    iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);\n    pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);\n    *canonicalname = pcVar6;\n    (*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);\n  }\n  else {\n    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);\n    pSVar3->error = pcVar6;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    pSVar3->superfamily = ADDRTYPE_IPV6;\n    pcVar6 = pSVar3->ais->ai_canonname;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = host;\n    }\n    (*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);\n    realhost[0x1fff] = '\0';\n    iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);\n    pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);\n    *canonicalname = pcVar6;\n    (*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);\n  }" { (expression_statement "pSVar3->superfamily = ADDRTYPE_IPV6;" (assignment_expression "pSVar3->superfamily = ADDRTYPE_IPV6" (field_expression "pSVar3->superfamily" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar6 = pSVar3->ais->ai_canonname;" (assignment_expression "pcVar6 = pSVar3->ais->ai_canonname" identifier = (field_expression "pSVar3->ais->ai_canonname" (field_expression "pSVar3->ais" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n      pcVar6 = host;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar6 = host;\n    }" { (expression_statement "pcVar6 = host;" (assignment_expression "pcVar6 = host" identifier = identifier) ;) })) (expression_statement "(*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000);" (call_expression "(*(code *)puVar1)(realhost,pcVar6,0x1fff,0x2000)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(realhost,pcVar6,0x1fff,0x2000)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "realhost[0x1fff] = '\0';" (assignment_expression "realhost[0x1fff] = '\0'" (subscript_expression "realhost[0x1fff]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_000b0be4)(realhost)" identifier = (call_expression "(*(code *)PTR_strlen_000b0be4)(realhost)" (parenthesized_expression "(*(code *)PTR_strlen_000b0be4)" ( (pointer_expression "*(code *)PTR_strlen_000b0be4" * (cast_expression "(code *)PTR_strlen_000b0be4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(realhost)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1)" identifier = (cast_expression "(char *)(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(iVar5 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 1,1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*canonicalname = pcVar6;" (assignment_expression "*canonicalname = pcVar6" (pointer_expression "*canonicalname" * identifier) = identifier) ;) (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(pcVar6,realhost,iVar5 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,realhost,iVar5 + 1)" ( identifier , identifier , (binary_expression "iVar5 + 1" identifier + number_literal) ))) ;) }) (else_clause "else {\n    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);\n    pSVar3->error = pcVar6;\n  }" else (compound_statement "{\n    pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);\n    pSVar3->error = pcVar6;\n  }" { (expression_statement "pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5)" identifier = (cast_expression "(char *)(*(code *)PTR_gai_strerror_000b0cac)(iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_gai_strerror_000b0cac)(iVar5)" (parenthesized_expression "(*(code *)PTR_gai_strerror_000b0cac)" ( (pointer_expression "*(code *)PTR_gai_strerror_000b0cac" * (cast_expression "(code *)PTR_gai_strerror_000b0cac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "pSVar3->error = pcVar6;" (assignment_expression "pSVar3->error = pcVar6" (field_expression "pSVar3->error" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if (iVar2 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);\n    pSVar3->error = (char *)0x0;\n    pcVar8 = *(code **)(puVar7 + 0x2eaa4);\n    pSVar3->superfamily = ADDRTYPE_UNSPEC;\n    (*pcVar8)(pSVar3->hostname,iVar2,0x200);\n    pSVar3->hostname[0x1ff] = '\0';\n    pSVar3->ais = (addrinfo *)0x0;\n    pSVar3->refcount = 1;\n    return pSVar3;\n  }" if (parenthesized_expression "(iVar2 != *(int *)puVar7)" ( (binary_expression "iVar2 != *(int *)puVar7" identifier != (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar7 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);\n    pSVar3->error = (char *)0x0;\n    pcVar8 = *(code **)(puVar7 + 0x2eaa4);\n    pSVar3->superfamily = ADDRTYPE_UNSPEC;\n    (*pcVar8)(pSVar3->hostname,iVar2,0x200);\n    pSVar3->hostname[0x1ff] = '\0';\n    pSVar3->ais = (addrinfo *)0x0;\n    pSVar3->refcount = 1;\n    return pSVar3;\n  }" { (expression_statement "puVar7 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar7 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210);" (assignment_expression "pSVar3 = (SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210)" identifier = (call_expression "(SockAddr)(**(code **)(puVar7 + 0x2e0f0))(1,0x210)" (call_expression "(SockAddr)(**(code **)(puVar7 + 0x2e0f0))" (parenthesized_expression "(SockAddr)" ( identifier )) (argument_list "(**(code **)(puVar7 + 0x2e0f0))" ( (pointer_expression "**(code **)(puVar7 + 0x2e0f0)" * (pointer_expression "*(code **)(puVar7 + 0x2e0f0)" * (cast_expression "(code **)(puVar7 + 0x2e0f0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x2e0f0)" ( (binary_expression "puVar7 + 0x2e0f0" identifier + number_literal) ))))) ))) (argument_list "(1,0x210)" ( number_literal , number_literal )))) ;) (expression_statement "pSVar3->error = (char *)0x0;" (assignment_expression "pSVar3->error = (char *)0x0" (field_expression "pSVar3->error" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar8 = *(code **)(puVar7 + 0x2eaa4);" (assignment_expression "pcVar8 = *(code **)(puVar7 + 0x2eaa4)" identifier = (pointer_expression "*(code **)(puVar7 + 0x2eaa4)" * (cast_expression "(code **)(puVar7 + 0x2eaa4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x2eaa4)" ( (binary_expression "puVar7 + 0x2eaa4" identifier + number_literal) ))))) ;) (expression_statement "pSVar3->superfamily = ADDRTYPE_UNSPEC;" (assignment_expression "pSVar3->superfamily = ADDRTYPE_UNSPEC" (field_expression "pSVar3->superfamily" identifier -> field_identifier) = identifier) ;) (expression_statement "(*pcVar8)(pSVar3->hostname,iVar2,0x200);" (call_expression "(*pcVar8)(pSVar3->hostname,iVar2,0x200)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(pSVar3->hostname,iVar2,0x200)" ( (field_expression "pSVar3->hostname" identifier -> field_identifier) , identifier , number_literal ))) ;) (expression_statement "pSVar3->hostname[0x1ff] = '\0';" (assignment_expression "pSVar3->hostname[0x1ff] = '\0'" (subscript_expression "pSVar3->hostname[0x1ff]" (field_expression "pSVar3->hostname" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pSVar3->ais = (addrinfo *)0x0;" (assignment_expression "pSVar3->ais = (addrinfo *)0x0" (field_expression "pSVar3->ais" identifier -> field_identifier) = (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar3->refcount = 1;" (assignment_expression "pSVar3->refcount = 1" (field_expression "pSVar3->refcount" identifier -> field_identifier) = number_literal) ;) (return_statement "return pSVar3;" return identifier ;) })) (return_statement "return pSVar3;" return identifier ;) })))
(translation_unit "undefined4 * sk_namelookup(int param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined4 * sk_namelookup(int param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* sk_namelookup(int param_1,undefined4 *param_2,int param_3)" * (function_declarator "sk_namelookup(int param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 local_2044;" type_identifier identifier ;) (declaration "undefined4 local_2040;" type_identifier identifier ;) (declaration "undefined4 local_203c;" type_identifier identifier ;) (declaration "undefined4 local_2038;" type_identifier identifier ;) (declaration "undefined4 local_2034;" type_identifier identifier ;) (declaration "undefined4 local_2030;" type_identifier identifier ;) (declaration "undefined4 local_202c;" type_identifier identifier ;) (declaration "undefined4 local_2028;" type_identifier identifier ;) (declaration "undefined1 local_2024 [8191];" type_identifier (array_declarator "local_2024 [8191]" identifier [ number_literal ]) ;) (declaration "undefined1 local_25;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x210)" ( number_literal , number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);" (call_expression "(*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210)" (parenthesized_expression "(*(code *)PTR_memset_000b0bc0)" ( (pointer_expression "*(code *)PTR_memset_000b0bc0" * (cast_expression "(code *)PTR_memset_000b0bc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,0,0x210)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "local_2024[0] = 0;" (assignment_expression "local_2024[0] = 0" (subscript_expression "local_2024[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_2044 = 2;" (assignment_expression "local_2044 = 2" identifier = number_literal) ;) (if_statement "if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    local_2040 = 2;\n  }" { (expression_statement "local_2040 = 2;" (assignment_expression "local_2040 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" else (compound_statement "{\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" { (expression_statement "local_2040 = 10;" (assignment_expression "local_2040 = 10" identifier = number_literal) ;) (if_statement "if (param_3 != 2) {\n      local_2040 = 0;\n    }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n      local_2040 = 0;\n    }" { (expression_statement "local_2040 = 0;" (assignment_expression "local_2040 = 0" identifier = number_literal) ;) })) }))) (expression_statement "local_203c = 2;" (assignment_expression "local_203c = 2" identifier = number_literal) ;) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2034 = 0;" (assignment_expression "local_2034 = 0" identifier = number_literal) ;) (expression_statement "local_2030 = 0;" (assignment_expression "local_2030 = 0" identifier = number_literal) ;) (expression_statement "local_202c = 0;" (assignment_expression "local_202c = 0" identifier = number_literal) ;) (expression_statement "local_2028 = 0;" (assignment_expression "local_2028 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1)" identifier = (call_expression "(*(code *)PTR_host_strduptrim_000b0630)(param_1)" (parenthesized_expression "(*(code *)PTR_host_strduptrim_000b0630)" ( (pointer_expression "*(code *)PTR_host_strduptrim_000b0630" * (cast_expression "(code *)PTR_host_strduptrim_000b0630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);" (assignment_expression "iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3)" identifier = (call_expression "(*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3)" (parenthesized_expression "(*(code *)PTR_getaddrinfo_000b0b14)" ( (pointer_expression "*(code *)PTR_getaddrinfo_000b0b14" * (cast_expression "(code *)PTR_getaddrinfo_000b0b14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,0,&local_2044,puVar2 + 3)" ( identifier , number_literal , (pointer_expression "&local_2044" & identifier) , (binary_expression "puVar2 + 3" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(uVar3);" (call_expression "(*(code *)PTR_safefree_000b01b0)(uVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___strncat_chk_000b0b0c;" (assignment_expression "puVar1 = PTR___strncat_chk_000b0b0c" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }" { (expression_statement "puVar2[2] = 2;" (assignment_expression "puVar2[2] = 2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = *(int *)(puVar2[3] + 0x18);" (assignment_expression "iVar4 = *(int *)(puVar2[3] + 0x18)" identifier = (pointer_expression "*(int *)(puVar2[3] + 0x18)" * (cast_expression "(int *)(puVar2[3] + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2[3] + 0x18)" ( (binary_expression "puVar2[3] + 0x18" (subscript_expression "puVar2[3]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }" if (parenthesized_expression "(*(int *)(puVar2[3] + 0x18) == 0)" ( (binary_expression "*(int *)(puVar2[3] + 0x18) == 0" (pointer_expression "*(int *)(puVar2[3] + 0x18)" * (cast_expression "(int *)(puVar2[3] + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2[3] + 0x18)" ( (binary_expression "puVar2[3] + 0x18" (subscript_expression "puVar2[3]" identifier [ number_literal ]) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar4 = param_1;\n    }" { (expression_statement "iVar4 = param_1;" (assignment_expression "iVar4 = param_1" identifier = identifier) ;) })) (expression_statement "(*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);" (call_expression "(*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2024,iVar4,0x1fff,0x2000)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "local_25 = 0;" (assignment_expression "local_25 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024)" identifier = (call_expression "(*(code *)PTR_strlen_000b0be4)(local_2024)" (parenthesized_expression "(*(code *)PTR_strlen_000b0be4)" ( (pointer_expression "*(code *)PTR_strlen_000b0be4" * (cast_expression "(code *)PTR_strlen_000b0be4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2024)" ( identifier )))) ;) (expression_statement "uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);" (assignment_expression "uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1)" identifier = (call_expression "(*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + 1,1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" ( (pointer_expression "*(code *)PTR_memcpy_000b0ca0" * (cast_expression "(code *)PTR_memcpy_000b0ca0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,local_2024,iVar4 + 1)" ( identifier , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) ))) ;) }) (else_clause "else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" else (compound_statement "{\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4)" identifier = (call_expression "(*(code *)PTR_gai_strerror_000b0cac)(iVar4)" (parenthesized_expression "(*(code *)PTR_gai_strerror_000b0cac)" ( (pointer_expression "*(code *)PTR_gai_strerror_000b0cac" * (cast_expression "(code *)PTR_gai_strerror_000b0cac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "puVar2[1] = uVar3;" (assignment_expression "puVar2[1] = uVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }" if (parenthesized_expression "(local_24 != *(int *)puVar5)" ( (binary_expression "local_24 != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }" { (expression_statement "iVar4 = local_24;" (assignment_expression "iVar4 = local_24" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" (parenthesized_expression "(**(code **)(puVar5 + 0x2e0f0))" ( (pointer_expression "**(code **)(puVar5 + 0x2e0f0)" * (pointer_expression "*(code **)(puVar5 + 0x2e0f0)" * (cast_expression "(code **)(puVar5 + 0x2e0f0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2e0f0)" ( (binary_expression "puVar5 + 0x2e0f0" identifier + number_literal) ))))) )) (argument_list "(1,0x210)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x2eaa4);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x2eaa4)" identifier = (pointer_expression "*(code **)(puVar5 + 0x2eaa4)" * (cast_expression "(code **)(puVar5 + 0x2eaa4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2eaa4)" ( (binary_expression "puVar5 + 0x2eaa4" identifier + number_literal) ))))) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar6)(puVar2 + 4,iVar4,0x200);" (call_expression "(*pcVar6)(puVar2 + 4,iVar4,0x200)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(puVar2 + 4,iVar4,0x200)" ( (binary_expression "puVar2 + 4" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0x20f) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x20f) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x20f)" * (cast_expression "(undefined1 *)((int)puVar2 + 0x20f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0x20f)" ( (binary_expression "(int)puVar2 + 0x20f" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) == LIT) )) (compound_statement { (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 ( IDENT , IDENT , LIT , LIT ))) ;) (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 *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = 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 ( ))) ;) (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 *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * sk_namelookup(int param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* sk_namelookup(int param_1,undefined4 *param_2,int param_3)" (* "*") (function_declarator "sk_namelookup(int param_1,undefined4 *param_2,int param_3)" (identifier "sk_namelookup") (parameter_list "(int param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined4 local_2044;\n  undefined4 local_2040;\n  undefined4 local_203c;\n  undefined4 local_2038;\n  undefined4 local_2034;\n  undefined4 local_2030;\n  undefined4 local_202c;\n  undefined4 local_2028;\n  undefined1 local_2024 [8191];\n  undefined1 local_25;\n  int local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);\n  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);\n  local_2024[0] = 0;\n  *puVar2 = 1;\n  puVar2[2] = 0;\n  puVar2[1] = 0;\n  local_2044 = 2;\n  if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }\n  local_203c = 2;\n  local_2038 = 0;\n  local_2034 = 0;\n  local_2030 = 0;\n  local_202c = 0;\n  local_2028 = 0;\n  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);\n  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);\n  (*(code *)PTR_safefree_000b01b0)(uVar3);\n  puVar1 = PTR___strncat_chk_000b0b0c;\n  if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }\n  if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }\n  return puVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined4 local_2044;" (type_identifier "undefined4") (identifier "local_2044") (; ";")) (declaration "undefined4 local_2040;" (type_identifier "undefined4") (identifier "local_2040") (; ";")) (declaration "undefined4 local_203c;" (type_identifier "undefined4") (identifier "local_203c") (; ";")) (declaration "undefined4 local_2038;" (type_identifier "undefined4") (identifier "local_2038") (; ";")) (declaration "undefined4 local_2034;" (type_identifier "undefined4") (identifier "local_2034") (; ";")) (declaration "undefined4 local_2030;" (type_identifier "undefined4") (identifier "local_2030") (; ";")) (declaration "undefined4 local_202c;" (type_identifier "undefined4") (identifier "local_202c") (; ";")) (declaration "undefined4 local_2028;" (type_identifier "undefined4") (identifier "local_2028") (; ";")) (declaration "undefined1 local_2024 [8191];" (type_identifier "undefined1") (array_declarator "local_2024 [8191]" (identifier "local_2024") ([ "[") (number_literal "8191") (] "]")) (; ";")) (declaration "undefined1 local_25;" (type_identifier "undefined1") (identifier "local_25") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,0x210)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b01e8" (* "*") (cast_expression "(code *)PTR_safemalloc_000b01e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b01e8"))) () ")")) (argument_list "(1,0x210)" (( "(") (number_literal "1") (, ",") (number_literal "0x210") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);" (call_expression "(*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210)" (parenthesized_expression "(*(code *)PTR_memset_000b0bc0)" (( "(") (pointer_expression "*(code *)PTR_memset_000b0bc0" (* "*") (cast_expression "(code *)PTR_memset_000b0bc0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000b0bc0"))) () ")")) (argument_list "(puVar2,0,0x210)" (( "(") (identifier "puVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x210") () ")"))) (; ";")) (expression_statement "local_2024[0] = 0;" (assignment_expression "local_2024[0] = 0" (subscript_expression "local_2024[0]" (identifier "local_2024") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2044 = 2;" (assignment_expression "local_2044 = 2" (identifier "local_2044") (= "=") (number_literal "2")) (; ";")) (if_statement "if (param_3 == 1) {\n    local_2040 = 2;\n  }\n  else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    local_2040 = 2;\n  }" ({ "{") (expression_statement "local_2040 = 2;" (assignment_expression "local_2040 = 2" (identifier "local_2040") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    local_2040 = 10;\n    if (param_3 != 2) {\n      local_2040 = 0;\n    }\n  }" ({ "{") (expression_statement "local_2040 = 10;" (assignment_expression "local_2040 = 10" (identifier "local_2040") (= "=") (number_literal "10")) (; ";")) (if_statement "if (param_3 != 2) {\n      local_2040 = 0;\n    }" (if "if") (parenthesized_expression "(param_3 != 2)" (( "(") (binary_expression "param_3 != 2" (identifier "param_3") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      local_2040 = 0;\n    }" ({ "{") (expression_statement "local_2040 = 0;" (assignment_expression "local_2040 = 0" (identifier "local_2040") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_203c = 2;" (assignment_expression "local_203c = 2" (identifier "local_203c") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" (identifier "local_2038") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2034 = 0;" (assignment_expression "local_2034 = 0" (identifier "local_2034") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2030 = 0;" (assignment_expression "local_2030 = 0" (identifier "local_2030") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_202c = 0;" (assignment_expression "local_202c = 0" (identifier "local_202c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2028 = 0;" (assignment_expression "local_2028 = 0" (identifier "local_2028") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_host_strduptrim_000b0630)(param_1)" (parenthesized_expression "(*(code *)PTR_host_strduptrim_000b0630)" (( "(") (pointer_expression "*(code *)PTR_host_strduptrim_000b0630" (* "*") (cast_expression "(code *)PTR_host_strduptrim_000b0630" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_host_strduptrim_000b0630"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);" (assignment_expression "iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3)" (parenthesized_expression "(*(code *)PTR_getaddrinfo_000b0b14)" (( "(") (pointer_expression "*(code *)PTR_getaddrinfo_000b0b14" (* "*") (cast_expression "(code *)PTR_getaddrinfo_000b0b14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getaddrinfo_000b0b14"))) () ")")) (argument_list "(uVar3,0,&local_2044,puVar2 + 3)" (( "(") (identifier "uVar3") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_2044" (& "&") (identifier "local_2044")) (, ",") (binary_expression "puVar2 + 3" (identifier "puVar2") (+ "+") (number_literal "3")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b01b0)(uVar3);" (call_expression "(*(code *)PTR_safefree_000b01b0)(uVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "puVar1 = PTR___strncat_chk_000b0b0c;" (assignment_expression "puVar1 = PTR___strncat_chk_000b0b0c" (identifier "puVar1") (= "=") (identifier "PTR___strncat_chk_000b0b0c")) (; ";")) (if_statement "if (iVar4 == 0) {\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }\n  else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2[2] = 2;\n    iVar4 = *(int *)(puVar2[3] + 0x18);\n    if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }\n    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);\n    local_25 = 0;\n    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);\n    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);\n    *param_2 = uVar3;\n    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);\n  }" ({ "{") (expression_statement "puVar2[2] = 2;" (assignment_expression "puVar2[2] = 2" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar4 = *(int *)(puVar2[3] + 0x18);" (assignment_expression "iVar4 = *(int *)(puVar2[3] + 0x18)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(puVar2[3] + 0x18)" (* "*") (cast_expression "(int *)(puVar2[3] + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2[3] + 0x18)" (( "(") (binary_expression "puVar2[3] + 0x18" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (*(int *)(puVar2[3] + 0x18) == 0) {\n      iVar4 = param_1;\n    }" (if "if") (parenthesized_expression "(*(int *)(puVar2[3] + 0x18) == 0)" (( "(") (binary_expression "*(int *)(puVar2[3] + 0x18) == 0" (pointer_expression "*(int *)(puVar2[3] + 0x18)" (* "*") (cast_expression "(int *)(puVar2[3] + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2[3] + 0x18)" (( "(") (binary_expression "puVar2[3] + 0x18" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = param_1;\n    }" ({ "{") (expression_statement "iVar4 = param_1;" (assignment_expression "iVar4 = param_1" (identifier "iVar4") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "(*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);" (call_expression "(*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(local_2024,iVar4,0x1fff,0x2000)" (( "(") (identifier "local_2024") (, ",") (identifier "iVar4") (, ",") (number_literal "0x1fff") (, ",") (number_literal "0x2000") () ")"))) (; ";")) (expression_statement "local_25 = 0;" (assignment_expression "local_25 = 0" (identifier "local_25") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_000b0be4)(local_2024)" (parenthesized_expression "(*(code *)PTR_strlen_000b0be4)" (( "(") (pointer_expression "*(code *)PTR_strlen_000b0be4" (* "*") (cast_expression "(code *)PTR_strlen_000b0be4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000b0be4"))) () ")")) (argument_list "(local_2024)" (( "(") (identifier "local_2024") () ")")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);" (assignment_expression "uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b01e8" (* "*") (cast_expression "(code *)PTR_safemalloc_000b01e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b01e8"))) () ")")) (argument_list "(iVar4 + 1,1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "(*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);" (call_expression "(*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_000b0ca0)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b0ca0" (* "*") (cast_expression "(code *)PTR_memcpy_000b0ca0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b0ca0"))) () ")")) (argument_list "(uVar3,local_2024,iVar4 + 1)" (( "(") (identifier "uVar3") (, ",") (identifier "local_2024") (, ",") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" (else "else") (compound_statement "{\n    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);\n    puVar2[1] = uVar3;\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);" (assignment_expression "uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_gai_strerror_000b0cac)(iVar4)" (parenthesized_expression "(*(code *)PTR_gai_strerror_000b0cac)" (( "(") (pointer_expression "*(code *)PTR_gai_strerror_000b0cac" (* "*") (cast_expression "(code *)PTR_gai_strerror_000b0cac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gai_strerror_000b0cac"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "puVar2[1] = uVar3;" (assignment_expression "puVar2[1] = uVar3" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (if_statement "if (local_24 != *(int *)puVar5) {\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(local_24 != *(int *)puVar5)" (( "(") (binary_expression "local_24 != *(int *)puVar5" (identifier "local_24") (!= "!=") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    iVar4 = local_24;\n    puVar5 = PTR___stack_chk_fail_000b0c70;\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);\n    puVar2[1] = 0;\n    pcVar6 = *(code **)(puVar5 + 0x2eaa4);\n    puVar2[2] = 0;\n    (*pcVar6)(puVar2 + 4,iVar4,0x200);\n    *(undefined1 *)((int)puVar2 + 0x20f) = 0;\n    puVar2[3] = 0;\n    *puVar2 = 1;\n    return puVar2;\n  }" ({ "{") (expression_statement "iVar4 = local_24;" (assignment_expression "iVar4 = local_24" (identifier "iVar4") (= "=") (identifier "local_24")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b0c70" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_000b0c70")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar5 + 0x2e0f0))(1,0x210)" (parenthesized_expression "(**(code **)(puVar5 + 0x2e0f0))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x2e0f0)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x2e0f0)" (* "*") (cast_expression "(code **)(puVar5 + 0x2e0f0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x2e0f0)" (( "(") (binary_expression "puVar5 + 0x2e0f0" (identifier "puVar5") (+ "+") (number_literal "0x2e0f0")) () ")"))))) () ")")) (argument_list "(1,0x210)" (( "(") (number_literal "1") (, ",") (number_literal "0x210") () ")"))))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x2eaa4);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x2eaa4)" (identifier "pcVar6") (= "=") (pointer_expression "*(code **)(puVar5 + 0x2eaa4)" (* "*") (cast_expression "(code **)(puVar5 + 0x2eaa4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x2eaa4)" (( "(") (binary_expression "puVar5 + 0x2eaa4" (identifier "puVar5") (+ "+") (number_literal "0x2eaa4")) () ")"))))) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar6)(puVar2 + 4,iVar4,0x200);" (call_expression "(*pcVar6)(puVar2 + 4,iVar4,0x200)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(puVar2 + 4,iVar4,0x200)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) (, ",") (identifier "iVar4") (, ",") (number_literal "0x200") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + 0x20f) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x20f) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x20f)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + 0x20f)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 0x20f)" (( "(") (binary_expression "(int)puVar2 + 0x20f" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "0x20f")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "1")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 function_1(char *host,char **canonicalname,int var_1)

{
  type_2 *puVar1;
  int var_4;
  type_1 pSVar3;
  type_3 uVar4;
  int var_2;
  char *var_3;
  type_2 *var_5;
  type_4 *pcVar8;
  type_5 hints;
  char realhost [8192];
  
  var_5 = PTR___stack_chk_guard_000b0c9c;
  var_4 = *(int *)PTR___stack_chk_guard_000b0c9c;
  pSVar3 = (type_1)(*(type_4 *)PTR_safemalloc_000b01e8)(1,0x210);
  (*(type_4 *)PTR_memset_000b0bc0)(pSVar3,0,0x210);
  realhost[0] = '\0';
  pSVar3->refcount = 1;
  pSVar3->superfamily = ADDRTYPE_UNSPEC;
  pSVar3->error = (char *)0x0;
  hints.ai_flags = 2;
  if (var_1 == 1) {
    hints.ai_family = 2;
  }
  else {
    hints.ai_family = 10;
    if (var_1 != 2) {
      hints.ai_family = 0;
    }
  }
  hints.ai_socktype = 2;
  hints.ai_protocol = 0;
  hints.ai_addrlen = 0;
  hints.ai_addr = (type_6 *)0x0;
  hints.ai_canonname = (char *)0x0;
  hints.ai_next = (type_5 *)0x0;
  uVar4 = (*(type_4 *)PTR_host_strduptrim_000b0630)(host);
  var_2 = (*(type_4 *)PTR_getaddrinfo_000b0b14)(uVar4,0,&hints,&pSVar3->ais);
  (*(type_4 *)PTR_safefree_000b01b0)(uVar4);
  puVar1 = PTR___strncat_chk_000b0b0c;
  if (var_2 == 0) {
    pSVar3->superfamily = ADDRTYPE_IPV6;
    var_3 = pSVar3->ais->ai_canonname;
    if (var_3 == (char *)0x0) {
      var_3 = host;
    }
    (*(type_4 *)puVar1)(realhost,var_3,0x1fff,0x2000);
    realhost[0x1fff] = '\0';
    var_2 = (*(type_4 *)PTR_strlen_000b0be4)(realhost);
    var_3 = (char *)(*(type_4 *)PTR_safemalloc_000b01e8)(var_2 + 1,1);
    *canonicalname = var_3;
    (*(type_4 *)PTR_memcpy_000b0ca0)(var_3,realhost,var_2 + 1);
  }
  else {
    var_3 = (char *)(*(type_4 *)PTR_gai_strerror_000b0cac)(var_2);
    pSVar3->error = var_3;
  }
  if (var_4 != *(int *)var_5) {
    var_5 = PTR___stack_chk_fail_000b0c70;
    (*(type_4 *)PTR___stack_chk_fail_000b0c70)();
    pSVar3 = (type_1)(**(type_4 **)(var_5 + 0x2e0f0))(1,0x210);
    pSVar3->error = (char *)0x0;
    pcVar8 = *(type_4 **)(var_5 + 0x2eaa4);
    pSVar3->superfamily = ADDRTYPE_UNSPEC;
    (*pcVar8)(pSVar3->hostname,var_4,0x200);
    pSVar3->hostname[0x1ff] = '\0';
    pSVar3->ais = (type_5 *)0x0;
    pSVar3->refcount = 1;
    return pSVar3;
  }
  return pSVar3;
}


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

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

{
  undefined *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  code *pcVar6;
  undefined4 local_2044;
  undefined4 local_2040;
  undefined4 local_203c;
  undefined4 local_2038;
  undefined4 local_2034;
  undefined4 local_2030;
  undefined4 local_202c;
  undefined4 local_2028;
  undefined1 local_2024 [8191];
  undefined1 local_25;
  int local_24;
  
  puVar5 = PTR___stack_chk_guard_000b0c9c;
  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;
  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x210);
  (*(code *)PTR_memset_000b0bc0)(puVar2,0,0x210);
  local_2024[0] = 0;
  *puVar2 = 1;
  puVar2[2] = 0;
  puVar2[1] = 0;
  local_2044 = 2;
  if (param_3 == 1) {
    local_2040 = 2;
  }
  else {
    local_2040 = 10;
    if (param_3 != 2) {
      local_2040 = 0;
    }
  }
  local_203c = 2;
  local_2038 = 0;
  local_2034 = 0;
  local_2030 = 0;
  local_202c = 0;
  local_2028 = 0;
  uVar3 = (*(code *)PTR_host_strduptrim_000b0630)(param_1);
  iVar4 = (*(code *)PTR_getaddrinfo_000b0b14)(uVar3,0,&local_2044,puVar2 + 3);
  (*(code *)PTR_safefree_000b01b0)(uVar3);
  puVar1 = PTR___strncat_chk_000b0b0c;
  if (iVar4 == 0) {
    puVar2[2] = 2;
    iVar4 = *(int *)(puVar2[3] + 0x18);
    if (*(int *)(puVar2[3] + 0x18) == 0) {
      iVar4 = param_1;
    }
    (*(code *)puVar1)(local_2024,iVar4,0x1fff,0x2000);
    local_25 = 0;
    iVar4 = (*(code *)PTR_strlen_000b0be4)(local_2024);
    uVar3 = (*(code *)PTR_safemalloc_000b01e8)(iVar4 + 1,1);
    *param_2 = uVar3;
    (*(code *)PTR_memcpy_000b0ca0)(uVar3,local_2024,iVar4 + 1);
  }
  else {
    uVar3 = (*(code *)PTR_gai_strerror_000b0cac)(iVar4);
    puVar2[1] = uVar3;
  }
  if (local_24 != *(int *)puVar5) {
    iVar4 = local_24;
    puVar5 = PTR___stack_chk_fail_000b0c70;
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    puVar2 = (undefined4 *)(**(code **)(puVar5 + 0x2e0f0))(1,0x210);
    puVar2[1] = 0;
    pcVar6 = *(code **)(puVar5 + 0x2eaa4);
    puVar2[2] = 0;
    (*pcVar6)(puVar2 + 4,iVar4,0x200);
    *(undefined1 *)((int)puVar2 + 0x20f) = 0;
    puVar2[3] = 0;
    *puVar2 = 1;
    return puVar2;
  }
  return puVar2;
}

