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

_STACK * sk_new(cmp *cmp)

{
  undefined *puVar1;
  Actual_Socket_conflict sock;
  addrinfo *paVar2;
  int iVar3;
  char *pcVar4;
  int in_a1;
  int in_a2;
  int in_a3;
  int in_stack_00000010;
  int in_stack_00000014;
  Plug in_stack_00000018;
  
  sock = (Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70);
  sock->error = (char *)0x0;
  puVar1 = PTR_bufchain_init_000b2538;
  sock->plug = in_stack_00000018;
  sock->fn = (socket_function_table *)(PTR_DAT_000b2398 + 0x2340);
  (*(code *)puVar1)(&sock->output_data);
  paVar2 = *(addrinfo **)(cmp + 0xc);
  sock->connected = 0;
  (sock->step).ai = paVar2;
  sock->writable = 0;
  sock->s = -1;
  sock->sending_oob = 0;
  sock->nodelay = in_stack_00000010;
  sock->frozen = 0;
  sock->localhost_only = 0;
  sock->pending_error = 0;
  sock->child = (Actual_Socket)0x0;
  sock->parent = (Actual_Socket)0x0;
  sock->oobpending = 0;
  sock->outgoingeof = ADDRTYPE_UNSPEC;
  sock->incomingeof = 0;
  sock->listener = 0;
  sock->addr = (SockAddr)cmp;
  (sock->step).curraddr = 0;
  sock->oobinline = in_a3;
  sock->privport = in_a2;
  sock->port = in_a1;
  sock->keepalive = in_stack_00000014;
  iVar3 = try_connect(sock);
  while( true ) {
    if (iVar3 == 0) {
      return (_STACK *)sock;
    }
    paVar2 = (sock->step).ai;
    if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;
    (sock->step).ai = paVar2;
    iVar3 = try_connect(sock);
  }
  pcVar4 = (char *)(*(code *)PTR_strerror_000b2e7c)(iVar3);
  sock->error = pcVar4;
  return (_STACK *)sock;
}



_STACK * sk_new(cmp *cmp)

{
  undefined *puVar1;
  _STACK *p_Var2;
  _func_290 *p_Var3;
  int iVar4;
  char **ppcVar5;
  int in_a1;
  char **in_a2;
  _func_290 *in_a3;
  _func_290 *in_stack_00000010;
  int in_stack_00000014;
  int in_stack_00000018;
  
  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);
  p_Var2->data = (char **)0x0;
  puVar1 = PTR_bufchain_init_000b2538;
  p_Var2->num_alloc = in_stack_00000018;
  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);
  (*(code *)puVar1)(&p_Var2->comp);
  p_Var3 = *(_func_290 **)(cmp + 0xc);
  p_Var2[1].sorted = 0;
  p_Var2[4].comp = p_Var3;
  p_Var2[1].num_alloc = 0;
  p_Var2->sorted = -1;
  p_Var2[2].sorted = 0;
  p_Var2[3].comp = in_stack_00000010;
  p_Var2[1].comp = (_func_290 *)0x0;
  p_Var2[2].num = 0;
  p_Var2[3].sorted = 0;
  p_Var2[5].sorted = 0;
  p_Var2[5].data = (char **)0x0;
  p_Var2[2].num_alloc = 0;
  p_Var2[3].num = 0;
  p_Var2[3].data = (char **)0x0;
  p_Var2[3].num_alloc = 0;
  p_Var2[4].num_alloc = (int)cmp;
  p_Var2[5].num = 0;
  p_Var2[2].comp = in_a3;
  p_Var2[4].data = in_a2;
  p_Var2[4].sorted = in_a1;
  p_Var2[4].num = in_stack_00000014;
  iVar4 = FUN_000821c8(p_Var2);
  while( true ) {
    if (iVar4 == 0) {
      return p_Var2;
    }
    if ((p_Var2[4].comp == (_func_290 *)0x0) ||
       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;
    p_Var2[4].comp = p_Var3;
    iVar4 = FUN_000821c8(p_Var2);
  }
  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);
  p_Var2->data = ppcVar5;
  return p_Var2;
}


lui gp,0x3
addiu gp,gp,0x7468
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x7f68(gp)
sw s3,0x28(sp)
or s3,a1,zero
sw s2,0x24(sp)
li a1,0x70
or s2,a0,zero
sw ra,0x34(sp)
li a0,0x1
sw gp,0x10(sp)
sw s5,0x30(sp)
or s5,a3,zero
sw s4,0x2c(sp)
or s4,a2,zero
sw s1,0x20(sp)
jalr t9
_sw s0,0x1c(sp)
lw gp,0x10(sp)
or s0,v0,zero
sw zero,0x4(v0)
addiu a0,v0,0x10
lw v0,0x50(sp)
lw t9,-0x7e38(gp)
sw v0,0xc(s0)
lw v0,-0x7fd8(gp)
addiu v0,v0,0x2340
jalr t9
_sw v0,0x0(s0)
or a0,s0,zero
lw v0,0xc(s2)
lw gp,0x10(sp)
sw zero,0x1c(s0)
sw v0,0x60(s0)
li v0,-0x1
sw zero,0x20(s0)
sw v0,0x8(s0)
lw v0,0x48(sp)
lw s1,-0x7f58(gp)
sw zero,0x30(s0)
sw v0,0x4c(s0)
sw zero,0x24(s0)
addiu s1,s1,0x21c8
sw zero,0x28(s0)
sw zero,0x44(s0)
or t9,s1,zero
sw zero,0x6c(s0)
sw zero,0x68(s0)
sw zero,0x34(s0)
sw zero,0x3c(s0)
sw zero,0x40(s0)
sw zero,0x48(s0)
sw s2,0x5c(s0)
sw zero,0x64(s0)
sw s5,0x38(s0)
sw s4,0x54(s0)
sw s3,0x58(s0)
lw v0,0x4c(sp)
bal 0x000821c8
_sw v0,0x50(s0)
beq v0,zero,0x00083034
_lw gp,0x10(sp)
lw v1,0x60(s0)
beq v1,zero,0x00083060
_lw t9,-0x74f4(gp)
lw v1,0x1c(v1)
beq v1,zero,0x0008305c
_or t9,s1,zero
sw v1,0x60(s0)
bal 0x000821c8
_or a0,s0,zero
bne v0,zero,0x00083008
_lw gp,0x10(sp)
lw ra,0x34(sp)
or v0,s0,zero
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x74f4(gp)
jalr t9
_or a0,v0,zero
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
sw v0,0x4(s0)
or v0,s0,zero
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}\n\n" (function_definition "_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}" type_identifier (pointer_declarator "* sk_new(cmp *cmp)" * (function_declarator "sk_new(cmp *cmp)" identifier (parameter_list "(cmp *cmp)" ( (parameter_declaration "cmp *cmp" type_identifier (pointer_declarator "*cmp" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "_STACK *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_func_290 *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "char **in_a2;" primitive_type (pointer_declarator "**in_a2" * (pointer_declarator "*in_a2" * identifier)) ;) (declaration "_func_290 *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "_func_290 *in_stack_00000010;" type_identifier (pointer_declarator "*in_stack_00000010" * identifier) ;) (declaration "int in_stack_00000014;" primitive_type identifier ;) (declaration "int in_stack_00000018;" primitive_type identifier ;) (expression_statement "p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);" (assignment_expression "p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" identifier = (cast_expression "(_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" ( (type_descriptor "_STACK *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x70)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x70)" ( number_literal , number_literal ))))) ;) (expression_statement "p_Var2->data = (char **)0x0;" (assignment_expression "p_Var2->data = (char **)0x0" (field_expression "p_Var2->data" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "puVar1 = PTR_bufchain_init_000b2538;" (assignment_expression "puVar1 = PTR_bufchain_init_000b2538" identifier = identifier) ;) (expression_statement "p_Var2->num_alloc = in_stack_00000018;" (assignment_expression "p_Var2->num_alloc = in_stack_00000018" (field_expression "p_Var2->num_alloc" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);" (assignment_expression "p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340)" (field_expression "p_Var2->num" identifier -> field_identifier) = (cast_expression "(int)(PTR_DAT_000b2398 + 0x2340)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_DAT_000b2398 + 0x2340)" ( (binary_expression "PTR_DAT_000b2398 + 0x2340" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(&p_Var2->comp);" (call_expression "(*(code *)puVar1)(&p_Var2->comp)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&p_Var2->comp)" ( (pointer_expression "&p_Var2->comp" & (field_expression "p_Var2->comp" identifier -> field_identifier)) ))) ;) (expression_statement "p_Var3 = *(_func_290 **)(cmp + 0xc);" (assignment_expression "p_Var3 = *(_func_290 **)(cmp + 0xc)" identifier = (pointer_expression "*(_func_290 **)(cmp + 0xc)" * (cast_expression "(_func_290 **)(cmp + 0xc)" ( (type_descriptor "_func_290 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cmp + 0xc)" ( (binary_expression "cmp + 0xc" identifier + number_literal) ))))) ;) (expression_statement "p_Var2[1].sorted = 0;" (assignment_expression "p_Var2[1].sorted = 0" (field_expression "p_Var2[1].sorted" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[4].comp = p_Var3;" (assignment_expression "p_Var2[4].comp = p_Var3" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[1].num_alloc = 0;" (assignment_expression "p_Var2[1].num_alloc = 0" (field_expression "p_Var2[1].num_alloc" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2->sorted = -1;" (assignment_expression "p_Var2->sorted = -1" (field_expression "p_Var2->sorted" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var2[2].sorted = 0;" (assignment_expression "p_Var2[2].sorted = 0" (field_expression "p_Var2[2].sorted" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].comp = in_stack_00000010;" (assignment_expression "p_Var2[3].comp = in_stack_00000010" (field_expression "p_Var2[3].comp" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[1].comp = (_func_290 *)0x0;" (assignment_expression "p_Var2[1].comp = (_func_290 *)0x0" (field_expression "p_Var2[1].comp" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_func_290 *)0x0" ( (type_descriptor "_func_290 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p_Var2[2].num = 0;" (assignment_expression "p_Var2[2].num = 0" (field_expression "p_Var2[2].num" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].sorted = 0;" (assignment_expression "p_Var2[3].sorted = 0" (field_expression "p_Var2[3].sorted" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[5].sorted = 0;" (assignment_expression "p_Var2[5].sorted = 0" (field_expression "p_Var2[5].sorted" (subscript_expression "p_Var2[5]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[5].data = (char **)0x0;" (assignment_expression "p_Var2[5].data = (char **)0x0" (field_expression "p_Var2[5].data" (subscript_expression "p_Var2[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "p_Var2[2].num_alloc = 0;" (assignment_expression "p_Var2[2].num_alloc = 0" (field_expression "p_Var2[2].num_alloc" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].num = 0;" (assignment_expression "p_Var2[3].num = 0" (field_expression "p_Var2[3].num" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].data = (char **)0x0;" (assignment_expression "p_Var2[3].data = (char **)0x0" (field_expression "p_Var2[3].data" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "p_Var2[3].num_alloc = 0;" (assignment_expression "p_Var2[3].num_alloc = 0" (field_expression "p_Var2[3].num_alloc" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[4].num_alloc = (int)cmp;" (assignment_expression "p_Var2[4].num_alloc = (int)cmp" (field_expression "p_Var2[4].num_alloc" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(int)cmp" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "p_Var2[5].num = 0;" (assignment_expression "p_Var2[5].num = 0" (field_expression "p_Var2[5].num" (subscript_expression "p_Var2[5]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[2].comp = in_a3;" (assignment_expression "p_Var2[2].comp = in_a3" (field_expression "p_Var2[2].comp" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[4].data = in_a2;" (assignment_expression "p_Var2[4].data = in_a2" (field_expression "p_Var2[4].data" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[4].sorted = in_a1;" (assignment_expression "p_Var2[4].sorted = in_a1" (field_expression "p_Var2[4].sorted" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[4].num = in_stack_00000014;" (assignment_expression "p_Var2[4].num = in_stack_00000014" (field_expression "p_Var2[4].num" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar4 = FUN_000821c8(p_Var2);" (assignment_expression "iVar4 = FUN_000821c8(p_Var2)" identifier = (call_expression "FUN_000821c8(p_Var2)" identifier (argument_list "(p_Var2)" ( identifier )))) ;) (while_statement "while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }" { (if_statement "if (iVar4 == 0) {\n      return p_Var2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return p_Var2;\n    }" { (return_statement "return p_Var2;" return identifier ;) })) (if_statement "if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;" if (parenthesized_expression "((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0))" ( (binary_expression "(p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)" (parenthesized_expression "(p_Var2[4].comp == (_func_290 *)0x0)" ( (binary_expression "p_Var2[4].comp == (_func_290 *)0x0" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(_func_290 *)0x0" ( (type_descriptor "_func_290 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)" ( (comma_expression "p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0" (assignment_expression "p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c)" identifier = (pointer_expression "*(_func_290 **)(p_Var2[4].comp + 0x1c)" * (cast_expression "(_func_290 **)(p_Var2[4].comp + 0x1c)" ( (type_descriptor "_func_290 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var2[4].comp + 0x1c)" ( (binary_expression "p_Var2[4].comp + 0x1c" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) + number_literal) ))))) , (binary_expression "p_Var3 == (_func_290 *)0x0" identifier == (cast_expression "(_func_290 *)0x0" ( (type_descriptor "_func_290 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (break_statement "break;" break ;)) (expression_statement "p_Var2[4].comp = p_Var3;" (assignment_expression "p_Var2[4].comp = p_Var3" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar4 = FUN_000821c8(p_Var2);" (assignment_expression "iVar4 = FUN_000821c8(p_Var2)" identifier = (call_expression "FUN_000821c8(p_Var2)" identifier (argument_list "(p_Var2)" ( identifier )))) ;) })) (expression_statement "ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);" (assignment_expression "ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4)" identifier = (cast_expression "(char **)(*(code *)PTR_strerror_000b2e7c)(iVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "(*(code *)PTR_strerror_000b2e7c)(iVar4)" (parenthesized_expression "(*(code *)PTR_strerror_000b2e7c)" ( (pointer_expression "*(code *)PTR_strerror_000b2e7c" * (cast_expression "(code *)PTR_strerror_000b2e7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))))) ;) (expression_statement "p_Var2->data = ppcVar5;" (assignment_expression "p_Var2->data = ppcVar5" (field_expression "p_Var2->data" identifier -> field_identifier) = identifier) ;) (return_statement "return p_Var2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\n_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  Actual_Socket_conflict sock;\n  addrinfo *paVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_a1;\n  int in_a2;\n  int in_a3;\n  int in_stack_00000010;\n  int in_stack_00000014;\n  Plug in_stack_00000018;\n  \n  sock = (Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  sock->error = (char *)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  sock->plug = in_stack_00000018;\n  sock->fn = (socket_function_table *)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&sock->output_data);\n  paVar2 = *(addrinfo **)(cmp + 0xc);\n  sock->connected = 0;\n  (sock->step).ai = paVar2;\n  sock->writable = 0;\n  sock->s = -1;\n  sock->sending_oob = 0;\n  sock->nodelay = in_stack_00000010;\n  sock->frozen = 0;\n  sock->localhost_only = 0;\n  sock->pending_error = 0;\n  sock->child = (Actual_Socket)0x0;\n  sock->parent = (Actual_Socket)0x0;\n  sock->oobpending = 0;\n  sock->outgoingeof = ADDRTYPE_UNSPEC;\n  sock->incomingeof = 0;\n  sock->listener = 0;\n  sock->addr = (SockAddr)cmp;\n  (sock->step).curraddr = 0;\n  sock->oobinline = in_a3;\n  sock->privport = in_a2;\n  sock->port = in_a1;\n  sock->keepalive = in_stack_00000014;\n  iVar3 = try_connect(sock);\n  while( true ) {\n    if (iVar3 == 0) {\n      return (_STACK *)sock;\n    }\n    paVar2 = (sock->step).ai;\n    if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;\n    (sock->step).ai = paVar2;\n    iVar3 = try_connect(sock);\n  }\n  pcVar4 = (char *)(*(code *)PTR_strerror_000b2e7c)(iVar3);\n  sock->error = pcVar4;\n  return (_STACK *)sock;\n}\n\n" comment (function_definition "_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  Actual_Socket_conflict sock;\n  addrinfo *paVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_a1;\n  int in_a2;\n  int in_a3;\n  int in_stack_00000010;\n  int in_stack_00000014;\n  Plug in_stack_00000018;\n  \n  sock = (Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  sock->error = (char *)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  sock->plug = in_stack_00000018;\n  sock->fn = (socket_function_table *)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&sock->output_data);\n  paVar2 = *(addrinfo **)(cmp + 0xc);\n  sock->connected = 0;\n  (sock->step).ai = paVar2;\n  sock->writable = 0;\n  sock->s = -1;\n  sock->sending_oob = 0;\n  sock->nodelay = in_stack_00000010;\n  sock->frozen = 0;\n  sock->localhost_only = 0;\n  sock->pending_error = 0;\n  sock->child = (Actual_Socket)0x0;\n  sock->parent = (Actual_Socket)0x0;\n  sock->oobpending = 0;\n  sock->outgoingeof = ADDRTYPE_UNSPEC;\n  sock->incomingeof = 0;\n  sock->listener = 0;\n  sock->addr = (SockAddr)cmp;\n  (sock->step).curraddr = 0;\n  sock->oobinline = in_a3;\n  sock->privport = in_a2;\n  sock->port = in_a1;\n  sock->keepalive = in_stack_00000014;\n  iVar3 = try_connect(sock);\n  while( true ) {\n    if (iVar3 == 0) {\n      return (_STACK *)sock;\n    }\n    paVar2 = (sock->step).ai;\n    if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;\n    (sock->step).ai = paVar2;\n    iVar3 = try_connect(sock);\n  }\n  pcVar4 = (char *)(*(code *)PTR_strerror_000b2e7c)(iVar3);\n  sock->error = pcVar4;\n  return (_STACK *)sock;\n}" type_identifier (pointer_declarator "* sk_new(cmp *cmp)" * (function_declarator "sk_new(cmp *cmp)" identifier (parameter_list "(cmp *cmp)" ( (parameter_declaration "cmp *cmp" type_identifier (pointer_declarator "*cmp" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  Actual_Socket_conflict sock;\n  addrinfo *paVar2;\n  int iVar3;\n  char *pcVar4;\n  int in_a1;\n  int in_a2;\n  int in_a3;\n  int in_stack_00000010;\n  int in_stack_00000014;\n  Plug in_stack_00000018;\n  \n  sock = (Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  sock->error = (char *)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  sock->plug = in_stack_00000018;\n  sock->fn = (socket_function_table *)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&sock->output_data);\n  paVar2 = *(addrinfo **)(cmp + 0xc);\n  sock->connected = 0;\n  (sock->step).ai = paVar2;\n  sock->writable = 0;\n  sock->s = -1;\n  sock->sending_oob = 0;\n  sock->nodelay = in_stack_00000010;\n  sock->frozen = 0;\n  sock->localhost_only = 0;\n  sock->pending_error = 0;\n  sock->child = (Actual_Socket)0x0;\n  sock->parent = (Actual_Socket)0x0;\n  sock->oobpending = 0;\n  sock->outgoingeof = ADDRTYPE_UNSPEC;\n  sock->incomingeof = 0;\n  sock->listener = 0;\n  sock->addr = (SockAddr)cmp;\n  (sock->step).curraddr = 0;\n  sock->oobinline = in_a3;\n  sock->privport = in_a2;\n  sock->port = in_a1;\n  sock->keepalive = in_stack_00000014;\n  iVar3 = try_connect(sock);\n  while( true ) {\n    if (iVar3 == 0) {\n      return (_STACK *)sock;\n    }\n    paVar2 = (sock->step).ai;\n    if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;\n    (sock->step).ai = paVar2;\n    iVar3 = try_connect(sock);\n  }\n  pcVar4 = (char *)(*(code *)PTR_strerror_000b2e7c)(iVar3);\n  sock->error = pcVar4;\n  return (_STACK *)sock;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "Actual_Socket_conflict sock;" type_identifier identifier ;) (declaration "addrinfo *paVar2;" type_identifier (pointer_declarator "*paVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "int in_a3;" primitive_type identifier ;) (declaration "int in_stack_00000010;" primitive_type identifier ;) (declaration "int in_stack_00000014;" primitive_type identifier ;) (declaration "Plug in_stack_00000018;" type_identifier identifier ;) (expression_statement "sock = (Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70);" (assignment_expression "sock = (Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" identifier = (call_expression "(Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" (call_expression "(Actual_Socket_conflict)(*(code *)PTR_safemalloc_000b2408)" (parenthesized_expression "(Actual_Socket_conflict)" ( identifier )) (argument_list "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(1,0x70)" ( number_literal , number_literal )))) ;) (expression_statement "sock->error = (char *)0x0;" (assignment_expression "sock->error = (char *)0x0" (field_expression "sock->error" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1 = PTR_bufchain_init_000b2538;" (assignment_expression "puVar1 = PTR_bufchain_init_000b2538" identifier = identifier) ;) (expression_statement "sock->plug = in_stack_00000018;" (assignment_expression "sock->plug = in_stack_00000018" (field_expression "sock->plug" identifier -> field_identifier) = identifier) ;) (expression_statement "sock->fn = (socket_function_table *)(PTR_DAT_000b2398 + 0x2340);" (assignment_expression "sock->fn = (socket_function_table *)(PTR_DAT_000b2398 + 0x2340)" (field_expression "sock->fn" identifier -> field_identifier) = (cast_expression "(socket_function_table *)(PTR_DAT_000b2398 + 0x2340)" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b2398 + 0x2340)" ( (binary_expression "PTR_DAT_000b2398 + 0x2340" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(&sock->output_data);" (call_expression "(*(code *)puVar1)(&sock->output_data)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&sock->output_data)" ( (pointer_expression "&sock->output_data" & (field_expression "sock->output_data" identifier -> field_identifier)) ))) ;) (expression_statement "paVar2 = *(addrinfo **)(cmp + 0xc);" (assignment_expression "paVar2 = *(addrinfo **)(cmp + 0xc)" identifier = (pointer_expression "*(addrinfo **)(cmp + 0xc)" * (cast_expression "(addrinfo **)(cmp + 0xc)" ( (type_descriptor "addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cmp + 0xc)" ( (binary_expression "cmp + 0xc" identifier + number_literal) ))))) ;) (expression_statement "sock->connected = 0;" (assignment_expression "sock->connected = 0" (field_expression "sock->connected" identifier -> field_identifier) = number_literal) ;) (expression_statement "(sock->step).ai = paVar2;" (assignment_expression "(sock->step).ai = paVar2" (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "sock->writable = 0;" (assignment_expression "sock->writable = 0" (field_expression "sock->writable" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->s = -1;" (assignment_expression "sock->s = -1" (field_expression "sock->s" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->sending_oob = 0;" (assignment_expression "sock->sending_oob = 0" (field_expression "sock->sending_oob" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->nodelay = in_stack_00000010;" (assignment_expression "sock->nodelay = in_stack_00000010" (field_expression "sock->nodelay" identifier -> field_identifier) = identifier) ;) (expression_statement "sock->frozen = 0;" (assignment_expression "sock->frozen = 0" (field_expression "sock->frozen" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->localhost_only = 0;" (assignment_expression "sock->localhost_only = 0" (field_expression "sock->localhost_only" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->pending_error = 0;" (assignment_expression "sock->pending_error = 0" (field_expression "sock->pending_error" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->child = (Actual_Socket)0x0;" (assignment_expression "sock->child = (Actual_Socket)0x0" (field_expression "sock->child" identifier -> field_identifier) = (cast_expression "(Actual_Socket)0x0" ( (type_descriptor "Actual_Socket" type_identifier) ) number_literal)) ;) (expression_statement "sock->parent = (Actual_Socket)0x0;" (assignment_expression "sock->parent = (Actual_Socket)0x0" (field_expression "sock->parent" identifier -> field_identifier) = (cast_expression "(Actual_Socket)0x0" ( (type_descriptor "Actual_Socket" type_identifier) ) number_literal)) ;) (expression_statement "sock->oobpending = 0;" (assignment_expression "sock->oobpending = 0" (field_expression "sock->oobpending" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->outgoingeof = ADDRTYPE_UNSPEC;" (assignment_expression "sock->outgoingeof = ADDRTYPE_UNSPEC" (field_expression "sock->outgoingeof" identifier -> field_identifier) = identifier) ;) (expression_statement "sock->incomingeof = 0;" (assignment_expression "sock->incomingeof = 0" (field_expression "sock->incomingeof" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->listener = 0;" (assignment_expression "sock->listener = 0" (field_expression "sock->listener" identifier -> field_identifier) = number_literal) ;) (expression_statement "sock->addr = (SockAddr)cmp;" (assignment_expression "sock->addr = (SockAddr)cmp" (field_expression "sock->addr" identifier -> field_identifier) = (cast_expression "(SockAddr)cmp" ( (type_descriptor "SockAddr" type_identifier) ) identifier)) ;) (expression_statement "(sock->step).curraddr = 0;" (assignment_expression "(sock->step).curraddr = 0" (field_expression "(sock->step).curraddr" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "sock->oobinline = in_a3;" (assignment_expression "sock->oobinline = in_a3" (field_expression "sock->oobinline" identifier -> field_identifier) = identifier) ;) (expression_statement "sock->privport = in_a2;" (assignment_expression "sock->privport = in_a2" (field_expression "sock->privport" identifier -> field_identifier) = identifier) ;) (expression_statement "sock->port = in_a1;" (assignment_expression "sock->port = in_a1" (field_expression "sock->port" identifier -> field_identifier) = identifier) ;) (expression_statement "sock->keepalive = in_stack_00000014;" (assignment_expression "sock->keepalive = in_stack_00000014" (field_expression "sock->keepalive" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = try_connect(sock);" (assignment_expression "iVar3 = try_connect(sock)" identifier = (call_expression "try_connect(sock)" identifier (argument_list "(sock)" ( identifier )))) ;) (while_statement "while( true ) {\n    if (iVar3 == 0) {\n      return (_STACK *)sock;\n    }\n    paVar2 = (sock->step).ai;\n    if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;\n    (sock->step).ai = paVar2;\n    iVar3 = try_connect(sock);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar3 == 0) {\n      return (_STACK *)sock;\n    }\n    paVar2 = (sock->step).ai;\n    if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;\n    (sock->step).ai = paVar2;\n    iVar3 = try_connect(sock);\n  }" { (if_statement "if (iVar3 == 0) {\n      return (_STACK *)sock;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return (_STACK *)sock;\n    }" { (return_statement "return (_STACK *)sock;" return (cast_expression "(_STACK *)sock" ( (type_descriptor "_STACK *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "paVar2 = (sock->step).ai;" (assignment_expression "paVar2 = (sock->step).ai" identifier = (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)) break;" if (parenthesized_expression "((paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0))" ( (binary_expression "(paVar2 == (addrinfo *)0x0) || (paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)" (parenthesized_expression "(paVar2 == (addrinfo *)0x0)" ( (binary_expression "paVar2 == (addrinfo *)0x0" identifier == (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0)" ( (comma_expression "paVar2 = paVar2->ai_next, paVar2 == (addrinfo *)0x0" (assignment_expression "paVar2 = paVar2->ai_next" identifier = (field_expression "paVar2->ai_next" identifier -> field_identifier)) , (binary_expression "paVar2 == (addrinfo *)0x0" identifier == (cast_expression "(addrinfo *)0x0" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (break_statement "break;" break ;)) (expression_statement "(sock->step).ai = paVar2;" (assignment_expression "(sock->step).ai = paVar2" (field_expression "(sock->step).ai" (parenthesized_expression "(sock->step)" ( (field_expression "sock->step" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "iVar3 = try_connect(sock);" (assignment_expression "iVar3 = try_connect(sock)" identifier = (call_expression "try_connect(sock)" identifier (argument_list "(sock)" ( identifier )))) ;) })) (expression_statement "pcVar4 = (char *)(*(code *)PTR_strerror_000b2e7c)(iVar3);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_strerror_000b2e7c)(iVar3)" identifier = (cast_expression "(char *)(*(code *)PTR_strerror_000b2e7c)(iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strerror_000b2e7c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strerror_000b2e7c)" ( (pointer_expression "*(code *)PTR_strerror_000b2e7c" * (cast_expression "(code *)PTR_strerror_000b2e7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))))) ;) (expression_statement "sock->error = pcVar4;" (assignment_expression "sock->error = pcVar4" (field_expression "sock->error" identifier -> field_identifier) = identifier) ;) (return_statement "return (_STACK *)sock;" return (cast_expression "(_STACK *)sock" ( (type_descriptor "_STACK *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}\n\n" (function_definition "_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}" type_identifier (pointer_declarator "* sk_new(cmp *cmp)" * (function_declarator "sk_new(cmp *cmp)" identifier (parameter_list "(cmp *cmp)" ( (parameter_declaration "cmp *cmp" type_identifier (pointer_declarator "*cmp" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "_STACK *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_func_290 *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "char **in_a2;" primitive_type (pointer_declarator "**in_a2" * (pointer_declarator "*in_a2" * identifier)) ;) (declaration "_func_290 *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "_func_290 *in_stack_00000010;" type_identifier (pointer_declarator "*in_stack_00000010" * identifier) ;) (declaration "int in_stack_00000014;" primitive_type identifier ;) (declaration "int in_stack_00000018;" primitive_type identifier ;) (expression_statement "p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);" (assignment_expression "p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" identifier = (cast_expression "(_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" ( (type_descriptor "_STACK *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x70)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x70)" ( number_literal , number_literal ))))) ;) (expression_statement "p_Var2->data = (char **)0x0;" (assignment_expression "p_Var2->data = (char **)0x0" (field_expression "p_Var2->data" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "puVar1 = PTR_bufchain_init_000b2538;" (assignment_expression "puVar1 = PTR_bufchain_init_000b2538" identifier = identifier) ;) (expression_statement "p_Var2->num_alloc = in_stack_00000018;" (assignment_expression "p_Var2->num_alloc = in_stack_00000018" (field_expression "p_Var2->num_alloc" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);" (assignment_expression "p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340)" (field_expression "p_Var2->num" identifier -> field_identifier) = (cast_expression "(int)(PTR_DAT_000b2398 + 0x2340)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_DAT_000b2398 + 0x2340)" ( (binary_expression "PTR_DAT_000b2398 + 0x2340" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(&p_Var2->comp);" (call_expression "(*(code *)puVar1)(&p_Var2->comp)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&p_Var2->comp)" ( (pointer_expression "&p_Var2->comp" & (field_expression "p_Var2->comp" identifier -> field_identifier)) ))) ;) (expression_statement "p_Var3 = *(_func_290 **)(cmp + 0xc);" (assignment_expression "p_Var3 = *(_func_290 **)(cmp + 0xc)" identifier = (pointer_expression "*(_func_290 **)(cmp + 0xc)" * (cast_expression "(_func_290 **)(cmp + 0xc)" ( (type_descriptor "_func_290 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(cmp + 0xc)" ( (binary_expression "cmp + 0xc" identifier + number_literal) ))))) ;) (expression_statement "p_Var2[1].sorted = 0;" (assignment_expression "p_Var2[1].sorted = 0" (field_expression "p_Var2[1].sorted" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[4].comp = p_Var3;" (assignment_expression "p_Var2[4].comp = p_Var3" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[1].num_alloc = 0;" (assignment_expression "p_Var2[1].num_alloc = 0" (field_expression "p_Var2[1].num_alloc" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2->sorted = -1;" (assignment_expression "p_Var2->sorted = -1" (field_expression "p_Var2->sorted" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_Var2[2].sorted = 0;" (assignment_expression "p_Var2[2].sorted = 0" (field_expression "p_Var2[2].sorted" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].comp = in_stack_00000010;" (assignment_expression "p_Var2[3].comp = in_stack_00000010" (field_expression "p_Var2[3].comp" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[1].comp = (_func_290 *)0x0;" (assignment_expression "p_Var2[1].comp = (_func_290 *)0x0" (field_expression "p_Var2[1].comp" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_func_290 *)0x0" ( (type_descriptor "_func_290 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p_Var2[2].num = 0;" (assignment_expression "p_Var2[2].num = 0" (field_expression "p_Var2[2].num" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].sorted = 0;" (assignment_expression "p_Var2[3].sorted = 0" (field_expression "p_Var2[3].sorted" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[5].sorted = 0;" (assignment_expression "p_Var2[5].sorted = 0" (field_expression "p_Var2[5].sorted" (subscript_expression "p_Var2[5]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[5].data = (char **)0x0;" (assignment_expression "p_Var2[5].data = (char **)0x0" (field_expression "p_Var2[5].data" (subscript_expression "p_Var2[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "p_Var2[2].num_alloc = 0;" (assignment_expression "p_Var2[2].num_alloc = 0" (field_expression "p_Var2[2].num_alloc" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].num = 0;" (assignment_expression "p_Var2[3].num = 0" (field_expression "p_Var2[3].num" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[3].data = (char **)0x0;" (assignment_expression "p_Var2[3].data = (char **)0x0" (field_expression "p_Var2[3].data" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "p_Var2[3].num_alloc = 0;" (assignment_expression "p_Var2[3].num_alloc = 0" (field_expression "p_Var2[3].num_alloc" (subscript_expression "p_Var2[3]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[4].num_alloc = (int)cmp;" (assignment_expression "p_Var2[4].num_alloc = (int)cmp" (field_expression "p_Var2[4].num_alloc" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(int)cmp" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "p_Var2[5].num = 0;" (assignment_expression "p_Var2[5].num = 0" (field_expression "p_Var2[5].num" (subscript_expression "p_Var2[5]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "p_Var2[2].comp = in_a3;" (assignment_expression "p_Var2[2].comp = in_a3" (field_expression "p_Var2[2].comp" (subscript_expression "p_Var2[2]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[4].data = in_a2;" (assignment_expression "p_Var2[4].data = in_a2" (field_expression "p_Var2[4].data" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[4].sorted = in_a1;" (assignment_expression "p_Var2[4].sorted = in_a1" (field_expression "p_Var2[4].sorted" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "p_Var2[4].num = in_stack_00000014;" (assignment_expression "p_Var2[4].num = in_stack_00000014" (field_expression "p_Var2[4].num" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar4 = FUN_000821c8(p_Var2);" (assignment_expression "iVar4 = FUN_000821c8(p_Var2)" identifier = (call_expression "FUN_000821c8(p_Var2)" identifier (argument_list "(p_Var2)" ( identifier )))) ;) (while_statement "while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }" { (if_statement "if (iVar4 == 0) {\n      return p_Var2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return p_Var2;\n    }" { (return_statement "return p_Var2;" return identifier ;) })) (if_statement "if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;" if (parenthesized_expression "((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0))" ( (binary_expression "(p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)" (parenthesized_expression "(p_Var2[4].comp == (_func_290 *)0x0)" ( (binary_expression "p_Var2[4].comp == (_func_290 *)0x0" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(_func_290 *)0x0" ( (type_descriptor "_func_290 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)" ( (comma_expression "p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0" (assignment_expression "p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c)" identifier = (pointer_expression "*(_func_290 **)(p_Var2[4].comp + 0x1c)" * (cast_expression "(_func_290 **)(p_Var2[4].comp + 0x1c)" ( (type_descriptor "_func_290 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var2[4].comp + 0x1c)" ( (binary_expression "p_Var2[4].comp + 0x1c" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) + number_literal) ))))) , (binary_expression "p_Var3 == (_func_290 *)0x0" identifier == (cast_expression "(_func_290 *)0x0" ( (type_descriptor "_func_290 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (break_statement "break;" break ;)) (expression_statement "p_Var2[4].comp = p_Var3;" (assignment_expression "p_Var2[4].comp = p_Var3" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "iVar4 = FUN_000821c8(p_Var2);" (assignment_expression "iVar4 = FUN_000821c8(p_Var2)" identifier = (call_expression "FUN_000821c8(p_Var2)" identifier (argument_list "(p_Var2)" ( identifier )))) ;) })) (expression_statement "ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);" (assignment_expression "ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4)" identifier = (cast_expression "(char **)(*(code *)PTR_strerror_000b2e7c)(iVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "(*(code *)PTR_strerror_000b2e7c)(iVar4)" (parenthesized_expression "(*(code *)PTR_strerror_000b2e7c)" ( (pointer_expression "*(code *)PTR_strerror_000b2e7c" * (cast_expression "(code *)PTR_strerror_000b2e7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))))) ;) (expression_statement "p_Var2->data = ppcVar5;" (assignment_expression "p_Var2->data = ppcVar5" (field_expression "p_Var2->data" identifier -> field_identifier) = identifier) ;) (return_statement "return p_Var2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & (field_expression IDENT -> field_identifier)) ))) ;) (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 (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) + LIT) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (break_statement break ;)) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "_STACK * sk_new(cmp *cmp)\n\n{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}" (type_identifier "_STACK") (pointer_declarator "* sk_new(cmp *cmp)" (* "*") (function_declarator "sk_new(cmp *cmp)" (identifier "sk_new") (parameter_list "(cmp *cmp)" (( "(") (parameter_declaration "cmp *cmp" (type_identifier "cmp") (pointer_declarator "*cmp" (* "*") (identifier "cmp"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  _STACK *p_Var2;\n  _func_290 *p_Var3;\n  int iVar4;\n  char **ppcVar5;\n  int in_a1;\n  char **in_a2;\n  _func_290 *in_a3;\n  _func_290 *in_stack_00000010;\n  int in_stack_00000014;\n  int in_stack_00000018;\n  \n  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);\n  p_Var2->data = (char **)0x0;\n  puVar1 = PTR_bufchain_init_000b2538;\n  p_Var2->num_alloc = in_stack_00000018;\n  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);\n  (*(code *)puVar1)(&p_Var2->comp);\n  p_Var3 = *(_func_290 **)(cmp + 0xc);\n  p_Var2[1].sorted = 0;\n  p_Var2[4].comp = p_Var3;\n  p_Var2[1].num_alloc = 0;\n  p_Var2->sorted = -1;\n  p_Var2[2].sorted = 0;\n  p_Var2[3].comp = in_stack_00000010;\n  p_Var2[1].comp = (_func_290 *)0x0;\n  p_Var2[2].num = 0;\n  p_Var2[3].sorted = 0;\n  p_Var2[5].sorted = 0;\n  p_Var2[5].data = (char **)0x0;\n  p_Var2[2].num_alloc = 0;\n  p_Var2[3].num = 0;\n  p_Var2[3].data = (char **)0x0;\n  p_Var2[3].num_alloc = 0;\n  p_Var2[4].num_alloc = (int)cmp;\n  p_Var2[5].num = 0;\n  p_Var2[2].comp = in_a3;\n  p_Var2[4].data = in_a2;\n  p_Var2[4].sorted = in_a1;\n  p_Var2[4].num = in_stack_00000014;\n  iVar4 = FUN_000821c8(p_Var2);\n  while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }\n  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);\n  p_Var2->data = ppcVar5;\n  return p_Var2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "_STACK *p_Var2;" (type_identifier "_STACK") (pointer_declarator "*p_Var2" (* "*") (identifier "p_Var2")) (; ";")) (declaration "_func_290 *p_Var3;" (type_identifier "_func_290") (pointer_declarator "*p_Var3" (* "*") (identifier "p_Var3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char **ppcVar5;" (primitive_type "char") (pointer_declarator "**ppcVar5" (* "*") (pointer_declarator "*ppcVar5" (* "*") (identifier "ppcVar5"))) (; ";")) (declaration "int in_a1;" (primitive_type "int") (identifier "in_a1") (; ";")) (declaration "char **in_a2;" (primitive_type "char") (pointer_declarator "**in_a2" (* "*") (pointer_declarator "*in_a2" (* "*") (identifier "in_a2"))) (; ";")) (declaration "_func_290 *in_a3;" (type_identifier "_func_290") (pointer_declarator "*in_a3" (* "*") (identifier "in_a3")) (; ";")) (declaration "_func_290 *in_stack_00000010;" (type_identifier "_func_290") (pointer_declarator "*in_stack_00000010" (* "*") (identifier "in_stack_00000010")) (; ";")) (declaration "int in_stack_00000014;" (primitive_type "int") (identifier "in_stack_00000014") (; ";")) (declaration "int in_stack_00000018;" (primitive_type "int") (identifier "in_stack_00000018") (; ";")) (expression_statement "p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);" (assignment_expression "p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" (identifier "p_Var2") (= "=") (cast_expression "(_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70)" (( "(") (type_descriptor "_STACK *" (type_identifier "_STACK") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x70)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b2408" (* "*") (cast_expression "(code *)PTR_safemalloc_000b2408" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b2408"))) () ")")) (argument_list "(1,0x70)" (( "(") (number_literal "1") (, ",") (number_literal "0x70") () ")"))))) (; ";")) (expression_statement "p_Var2->data = (char **)0x0;" (assignment_expression "p_Var2->data = (char **)0x0" (field_expression "p_Var2->data" (identifier "p_Var2") (-> "->") (field_identifier "data")) (= "=") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar1 = PTR_bufchain_init_000b2538;" (assignment_expression "puVar1 = PTR_bufchain_init_000b2538" (identifier "puVar1") (= "=") (identifier "PTR_bufchain_init_000b2538")) (; ";")) (expression_statement "p_Var2->num_alloc = in_stack_00000018;" (assignment_expression "p_Var2->num_alloc = in_stack_00000018" (field_expression "p_Var2->num_alloc" (identifier "p_Var2") (-> "->") (field_identifier "num_alloc")) (= "=") (identifier "in_stack_00000018")) (; ";")) (expression_statement "p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);" (assignment_expression "p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340)" (field_expression "p_Var2->num" (identifier "p_Var2") (-> "->") (field_identifier "num")) (= "=") (cast_expression "(int)(PTR_DAT_000b2398 + 0x2340)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_DAT_000b2398 + 0x2340)" (( "(") (binary_expression "PTR_DAT_000b2398 + 0x2340" (identifier "PTR_DAT_000b2398") (+ "+") (number_literal "0x2340")) () ")")))) (; ";")) (expression_statement "(*(code *)puVar1)(&p_Var2->comp);" (call_expression "(*(code *)puVar1)(&p_Var2->comp)" (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 "(&p_Var2->comp)" (( "(") (pointer_expression "&p_Var2->comp" (& "&") (field_expression "p_Var2->comp" (identifier "p_Var2") (-> "->") (field_identifier "comp"))) () ")"))) (; ";")) (expression_statement "p_Var3 = *(_func_290 **)(cmp + 0xc);" (assignment_expression "p_Var3 = *(_func_290 **)(cmp + 0xc)" (identifier "p_Var3") (= "=") (pointer_expression "*(_func_290 **)(cmp + 0xc)" (* "*") (cast_expression "(_func_290 **)(cmp + 0xc)" (( "(") (type_descriptor "_func_290 **" (type_identifier "_func_290") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(cmp + 0xc)" (( "(") (binary_expression "cmp + 0xc" (identifier "cmp") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "p_Var2[1].sorted = 0;" (assignment_expression "p_Var2[1].sorted = 0" (field_expression "p_Var2[1].sorted" (subscript_expression "p_Var2[1]" (identifier "p_Var2") ([ "[") (number_literal "1") (] "]")) (. ".") (field_identifier "sorted")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[4].comp = p_Var3;" (assignment_expression "p_Var2[4].comp = p_Var3" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "comp")) (= "=") (identifier "p_Var3")) (; ";")) (expression_statement "p_Var2[1].num_alloc = 0;" (assignment_expression "p_Var2[1].num_alloc = 0" (field_expression "p_Var2[1].num_alloc" (subscript_expression "p_Var2[1]" (identifier "p_Var2") ([ "[") (number_literal "1") (] "]")) (. ".") (field_identifier "num_alloc")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2->sorted = -1;" (assignment_expression "p_Var2->sorted = -1" (field_expression "p_Var2->sorted" (identifier "p_Var2") (-> "->") (field_identifier "sorted")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "p_Var2[2].sorted = 0;" (assignment_expression "p_Var2[2].sorted = 0" (field_expression "p_Var2[2].sorted" (subscript_expression "p_Var2[2]" (identifier "p_Var2") ([ "[") (number_literal "2") (] "]")) (. ".") (field_identifier "sorted")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[3].comp = in_stack_00000010;" (assignment_expression "p_Var2[3].comp = in_stack_00000010" (field_expression "p_Var2[3].comp" (subscript_expression "p_Var2[3]" (identifier "p_Var2") ([ "[") (number_literal "3") (] "]")) (. ".") (field_identifier "comp")) (= "=") (identifier "in_stack_00000010")) (; ";")) (expression_statement "p_Var2[1].comp = (_func_290 *)0x0;" (assignment_expression "p_Var2[1].comp = (_func_290 *)0x0" (field_expression "p_Var2[1].comp" (subscript_expression "p_Var2[1]" (identifier "p_Var2") ([ "[") (number_literal "1") (] "]")) (. ".") (field_identifier "comp")) (= "=") (cast_expression "(_func_290 *)0x0" (( "(") (type_descriptor "_func_290 *" (type_identifier "_func_290") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "p_Var2[2].num = 0;" (assignment_expression "p_Var2[2].num = 0" (field_expression "p_Var2[2].num" (subscript_expression "p_Var2[2]" (identifier "p_Var2") ([ "[") (number_literal "2") (] "]")) (. ".") (field_identifier "num")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[3].sorted = 0;" (assignment_expression "p_Var2[3].sorted = 0" (field_expression "p_Var2[3].sorted" (subscript_expression "p_Var2[3]" (identifier "p_Var2") ([ "[") (number_literal "3") (] "]")) (. ".") (field_identifier "sorted")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[5].sorted = 0;" (assignment_expression "p_Var2[5].sorted = 0" (field_expression "p_Var2[5].sorted" (subscript_expression "p_Var2[5]" (identifier "p_Var2") ([ "[") (number_literal "5") (] "]")) (. ".") (field_identifier "sorted")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[5].data = (char **)0x0;" (assignment_expression "p_Var2[5].data = (char **)0x0" (field_expression "p_Var2[5].data" (subscript_expression "p_Var2[5]" (identifier "p_Var2") ([ "[") (number_literal "5") (] "]")) (. ".") (field_identifier "data")) (= "=") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "p_Var2[2].num_alloc = 0;" (assignment_expression "p_Var2[2].num_alloc = 0" (field_expression "p_Var2[2].num_alloc" (subscript_expression "p_Var2[2]" (identifier "p_Var2") ([ "[") (number_literal "2") (] "]")) (. ".") (field_identifier "num_alloc")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[3].num = 0;" (assignment_expression "p_Var2[3].num = 0" (field_expression "p_Var2[3].num" (subscript_expression "p_Var2[3]" (identifier "p_Var2") ([ "[") (number_literal "3") (] "]")) (. ".") (field_identifier "num")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[3].data = (char **)0x0;" (assignment_expression "p_Var2[3].data = (char **)0x0" (field_expression "p_Var2[3].data" (subscript_expression "p_Var2[3]" (identifier "p_Var2") ([ "[") (number_literal "3") (] "]")) (. ".") (field_identifier "data")) (= "=") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "p_Var2[3].num_alloc = 0;" (assignment_expression "p_Var2[3].num_alloc = 0" (field_expression "p_Var2[3].num_alloc" (subscript_expression "p_Var2[3]" (identifier "p_Var2") ([ "[") (number_literal "3") (] "]")) (. ".") (field_identifier "num_alloc")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[4].num_alloc = (int)cmp;" (assignment_expression "p_Var2[4].num_alloc = (int)cmp" (field_expression "p_Var2[4].num_alloc" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "num_alloc")) (= "=") (cast_expression "(int)cmp" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cmp"))) (; ";")) (expression_statement "p_Var2[5].num = 0;" (assignment_expression "p_Var2[5].num = 0" (field_expression "p_Var2[5].num" (subscript_expression "p_Var2[5]" (identifier "p_Var2") ([ "[") (number_literal "5") (] "]")) (. ".") (field_identifier "num")) (= "=") (number_literal "0")) (; ";")) (expression_statement "p_Var2[2].comp = in_a3;" (assignment_expression "p_Var2[2].comp = in_a3" (field_expression "p_Var2[2].comp" (subscript_expression "p_Var2[2]" (identifier "p_Var2") ([ "[") (number_literal "2") (] "]")) (. ".") (field_identifier "comp")) (= "=") (identifier "in_a3")) (; ";")) (expression_statement "p_Var2[4].data = in_a2;" (assignment_expression "p_Var2[4].data = in_a2" (field_expression "p_Var2[4].data" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "data")) (= "=") (identifier "in_a2")) (; ";")) (expression_statement "p_Var2[4].sorted = in_a1;" (assignment_expression "p_Var2[4].sorted = in_a1" (field_expression "p_Var2[4].sorted" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "sorted")) (= "=") (identifier "in_a1")) (; ";")) (expression_statement "p_Var2[4].num = in_stack_00000014;" (assignment_expression "p_Var2[4].num = in_stack_00000014" (field_expression "p_Var2[4].num" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "num")) (= "=") (identifier "in_stack_00000014")) (; ";")) (expression_statement "iVar4 = FUN_000821c8(p_Var2);" (assignment_expression "iVar4 = FUN_000821c8(p_Var2)" (identifier "iVar4") (= "=") (call_expression "FUN_000821c8(p_Var2)" (identifier "FUN_000821c8") (argument_list "(p_Var2)" (( "(") (identifier "p_Var2") () ")")))) (; ";")) (while_statement "while( true ) {\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar4 == 0) {\n      return p_Var2;\n    }\n    if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;\n    p_Var2[4].comp = p_Var3;\n    iVar4 = FUN_000821c8(p_Var2);\n  }" ({ "{") (if_statement "if (iVar4 == 0) {\n      return p_Var2;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return p_Var2;\n    }" ({ "{") (return_statement "return p_Var2;" (return "return") (identifier "p_Var2") (; ";")) (} "}"))) (if_statement "if ((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;" (if "if") (parenthesized_expression "((p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0))" (( "(") (binary_expression "(p_Var2[4].comp == (_func_290 *)0x0) ||\n       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)" (parenthesized_expression "(p_Var2[4].comp == (_func_290 *)0x0)" (( "(") (binary_expression "p_Var2[4].comp == (_func_290 *)0x0" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "comp")) (== "==") (cast_expression "(_func_290 *)0x0" (( "(") (type_descriptor "_func_290 *" (type_identifier "_func_290") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)" (( "(") (comma_expression "p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0" (assignment_expression "p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c)" (identifier "p_Var3") (= "=") (pointer_expression "*(_func_290 **)(p_Var2[4].comp + 0x1c)" (* "*") (cast_expression "(_func_290 **)(p_Var2[4].comp + 0x1c)" (( "(") (type_descriptor "_func_290 **" (type_identifier "_func_290") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(p_Var2[4].comp + 0x1c)" (( "(") (binary_expression "p_Var2[4].comp + 0x1c" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "comp")) (+ "+") (number_literal "0x1c")) () ")"))))) (, ",") (binary_expression "p_Var3 == (_func_290 *)0x0" (identifier "p_Var3") (== "==") (cast_expression "(_func_290 *)0x0" (( "(") (type_descriptor "_func_290 *" (type_identifier "_func_290") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "p_Var2[4].comp = p_Var3;" (assignment_expression "p_Var2[4].comp = p_Var3" (field_expression "p_Var2[4].comp" (subscript_expression "p_Var2[4]" (identifier "p_Var2") ([ "[") (number_literal "4") (] "]")) (. ".") (field_identifier "comp")) (= "=") (identifier "p_Var3")) (; ";")) (expression_statement "iVar4 = FUN_000821c8(p_Var2);" (assignment_expression "iVar4 = FUN_000821c8(p_Var2)" (identifier "iVar4") (= "=") (call_expression "FUN_000821c8(p_Var2)" (identifier "FUN_000821c8") (argument_list "(p_Var2)" (( "(") (identifier "p_Var2") () ")")))) (; ";")) (} "}"))) (expression_statement "ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);" (assignment_expression "ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4)" (identifier "ppcVar5") (= "=") (cast_expression "(char **)(*(code *)PTR_strerror_000b2e7c)(iVar4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (call_expression "(*(code *)PTR_strerror_000b2e7c)(iVar4)" (parenthesized_expression "(*(code *)PTR_strerror_000b2e7c)" (( "(") (pointer_expression "*(code *)PTR_strerror_000b2e7c" (* "*") (cast_expression "(code *)PTR_strerror_000b2e7c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_000b2e7c"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))))) (; ";")) (expression_statement "p_Var2->data = ppcVar5;" (assignment_expression "p_Var2->data = ppcVar5" (field_expression "p_Var2->data" (identifier "p_Var2") (-> "->") (field_identifier "data")) (= "=") (identifier "ppcVar5")) (; ";")) (return_statement "return p_Var2;" (return "return") (identifier "p_Var2") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *type_2)

{
  type_3 *puVar1;
  type_4 sock;
  type_5 *var_4;
  int var_3;
  char *pcVar4;
  int in_a1;
  int in_a2;
  int in_a3;
  int in_stack_00000010;
  int in_stack_00000014;
  type_6 in_stack_00000018;
  
  sock = (type_4)(*(type_7 *)PTR_safemalloc_000b2408)(1,0x70);
  sock->error = (char *)0x0;
  puVar1 = PTR_bufchain_init_000b2538;
  sock->plug = in_stack_00000018;
  sock->fn = (type_8 *)(var_1 + 0x2340);
  (*(type_7 *)puVar1)(&sock->output_data);
  var_4 = *(type_5 **)(type_2 + 0xc);
  sock->connected = 0;
  (sock->step).ai = var_4;
  sock->writable = 0;
  sock->s = -1;
  sock->sending_oob = 0;
  sock->nodelay = in_stack_00000010;
  sock->frozen = 0;
  sock->localhost_only = 0;
  sock->pending_error = 0;
  sock->child = (type_9)0x0;
  sock->parent = (type_9)0x0;
  sock->oobpending = 0;
  sock->outgoingeof = ADDRTYPE_UNSPEC;
  sock->incomingeof = 0;
  sock->listener = 0;
  sock->addr = (type_10)type_2;
  (sock->step).curraddr = 0;
  sock->oobinline = in_a3;
  sock->privport = in_a2;
  sock->port = in_a1;
  sock->keepalive = in_stack_00000014;
  var_3 = var_2(sock);
  while( true ) {
    if (var_3 == 0) {
      return (type_1 *)sock;
    }
    var_4 = (sock->step).ai;
    if ((var_4 == (type_5 *)0x0) || (var_4 = var_4->ai_next, var_4 == (type_5 *)0x0)) break;
    (sock->step).ai = var_4;
    var_3 = var_2(sock);
  }
  pcVar4 = (char *)(*(type_7 *)PTR_strerror_000b2e7c)(var_3);
  sock->error = pcVar4;
  return (type_1 *)sock;
}


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

_STACK * MASKED(cmp *cmp)

{
  undefined *puVar1;
  _STACK *p_Var2;
  _func_290 *p_Var3;
  int iVar4;
  char **ppcVar5;
  int in_a1;
  char **in_a2;
  _func_290 *in_a3;
  _func_290 *in_stack_00000010;
  int in_stack_00000014;
  int in_stack_00000018;
  
  p_Var2 = (_STACK *)(*(code *)PTR_safemalloc_000b2408)(1,0x70);
  p_Var2->data = (char **)0x0;
  puVar1 = PTR_bufchain_init_000b2538;
  p_Var2->num_alloc = in_stack_00000018;
  p_Var2->num = (int)(PTR_DAT_000b2398 + 0x2340);
  (*(code *)puVar1)(&p_Var2->comp);
  p_Var3 = *(_func_290 **)(cmp + 0xc);
  p_Var2[1].sorted = 0;
  p_Var2[4].comp = p_Var3;
  p_Var2[1].num_alloc = 0;
  p_Var2->sorted = -1;
  p_Var2[2].sorted = 0;
  p_Var2[3].comp = in_stack_00000010;
  p_Var2[1].comp = (_func_290 *)0x0;
  p_Var2[2].num = 0;
  p_Var2[3].sorted = 0;
  p_Var2[5].sorted = 0;
  p_Var2[5].data = (char **)0x0;
  p_Var2[2].num_alloc = 0;
  p_Var2[3].num = 0;
  p_Var2[3].data = (char **)0x0;
  p_Var2[3].num_alloc = 0;
  p_Var2[4].num_alloc = (int)cmp;
  p_Var2[5].num = 0;
  p_Var2[2].comp = in_a3;
  p_Var2[4].data = in_a2;
  p_Var2[4].sorted = in_a1;
  p_Var2[4].num = in_stack_00000014;
  iVar4 = FUN_000821c8(p_Var2);
  while( true ) {
    if (iVar4 == 0) {
      return p_Var2;
    }
    if ((p_Var2[4].comp == (_func_290 *)0x0) ||
       (p_Var3 = *(_func_290 **)(p_Var2[4].comp + 0x1c), p_Var3 == (_func_290 *)0x0)) break;
    p_Var2[4].comp = p_Var3;
    iVar4 = FUN_000821c8(p_Var2);
  }
  ppcVar5 = (char **)(*(code *)PTR_strerror_000b2e7c)(iVar4);
  p_Var2->data = ppcVar5;
  return p_Var2;
}

