
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

char * pfl_listen(char *desthost,int destport,char *srcaddr,int port,void *backhandle,Conf *conf,
                 PortListener **pl_ret,int address_family)

{
  PortListener *plug;
  char *pcVar1;
  int iVar2;
  Socket ppsVar3;
  
  plug = (PortListener *)safemalloc(1,0x18);
  plug->hostname = (char *)0x0;
  *pl_ret = plug;
  plug->fn = &pfl_listen::fn_table;
  if (desthost == (char *)0x0) {
    plug->dynamic = 1;
  }
  else {
    pcVar1 = dupstr(desthost);
    plug->dynamic = 0;
    plug->hostname = pcVar1;
    plug->port = destport;
  }
  plug->backhandle = backhandle;
  iVar2 = conf_get_int(conf,0x99);
  ppsVar3 = new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family);
  plug->s = ppsVar3;
  pcVar1 = (*(*ppsVar3)->socket_error)(ppsVar3);
  if (pcVar1 != (char *)0x0) {
    pcVar1 = dupstr(pcVar1);
    (*(*plug->s)->close)(plug->s);
    safefree(plug->hostname);
    safefree(plug);
    *pl_ret = (PortListener *)0x0;
  }
  return pcVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  
  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);
  puVar1[4] = 0;
  *param_7 = puVar1;
  *puVar1 = &PTR_FUN_000c57ac;
  if (param_1 == 0) {
    puVar1[3] = 1;
  }
  else {
    uVar2 = FUN_0001eed0(param_1);
    puVar1[3] = 0;
    puVar1[4] = uVar2;
    puVar1[5] = param_2;
  }
  puVar1[1] = param_5;
  iVar3 = FUN_0001a000(param_6,0x99);
  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);
  puVar1[2] = piVar4;
  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);
  if (iVar3 != 0) {
    iVar3 = FUN_0001eed0(iVar3);
    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);
    FUN_00020030(puVar1[4]);
    FUN_00020030(puVar1);
    *param_7 = 0;
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015ff0
ADD EBX,0xa55f7
SUB ESP,0x24
MOV EDI,dword ptr [ESP + 0x50]
MOV ESI,dword ptr [ESP + 0x4c]
PUSH 0x18
PUSH 0x1
CALL 0x0001fe90
ADD ESP,0x10
MOV dword ptr [EAX + 0x10],0x0
MOV EBP,EAX
MOV dword ptr [EDI],EAX
LEA EAX,[EBX + 0xffffea3c]
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [ESP + 0x30]
TEST EAX,EAX
JZ 0x00021860
SUB ESP,0xc
PUSH dword ptr [ESP + 0x3c]
CALL 0x0001eed0
MOV dword ptr [EBP + 0xc],0x0
MOV dword ptr [EBP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x44]
ADD ESP,0x10
MOV dword ptr [EBP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x40]
SUB ESP,0x8
MOV dword ptr [EBP + 0x4],EAX
PUSH 0x99
PUSH ESI
CALL 0x0001a000
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x54]
TEST EAX,EAX
PUSH ESI
SETZ AL
MOVZX EAX,AL
PUSH EAX
PUSH EBP
PUSH dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0x54]
CALL 0x00023e80
ADD ESP,0x14
MOV dword ptr [EBP + 0x8],EAX
MOV ECX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [ECX + 0x1c]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00021852
SUB ESP,0xc
PUSH EAX
CALL 0x0001eed0
MOV ECX,dword ptr [EBP + 0x8]
MOV dword ptr [ESP + 0x1c],EAX
MOV ESI,dword ptr [ECX]
MOV dword ptr [ESP],ECX
CALL dword ptr [ESI + 0x4]
POP EAX
PUSH dword ptr [EBP + 0x10]
CALL 0x00020030
MOV dword ptr [ESP],EBP
CALL 0x00020030
ADD ESP,0x10
MOV dword ptr [EDI],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBP + 0xc],0x1
JMP 0x000217d6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001fe90(1,0x18)" identifier = (cast_expression "(undefined4 *)FUN_0001fe90(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fe90(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_7 = puVar1;" (assignment_expression "*param_7 = puVar1" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "*puVar1 = &PTR_FUN_000c57ac;" (assignment_expression "*puVar1 = &PTR_FUN_000c57ac" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_000c57ac" & identifier)) ;) (if_statement "if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar1[3] = 1;\n  }" { (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" else (compound_statement "{\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" { (expression_statement "uVar2 = FUN_0001eed0(param_1);" (assignment_expression "uVar2 = FUN_0001eed0(param_1)" identifier = (call_expression "FUN_0001eed0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = uVar2;" (assignment_expression "puVar1[4] = uVar2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = param_2;" (assignment_expression "puVar1[5] = param_2" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar1[1] = param_5;" (assignment_expression "puVar1[1] = param_5" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_0001a000(param_6,0x99);" (assignment_expression "iVar3 = FUN_0001a000(param_6,0x99)" identifier = (call_expression "FUN_0001a000(param_6,0x99)" identifier (argument_list "(param_6,0x99)" ( identifier , number_literal )))) ;) (expression_statement "piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);" (assignment_expression "piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" identifier = (cast_expression "(int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" identifier (argument_list "(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" ( identifier , identifier , identifier , (binary_expression "iVar3 == 0" identifier == number_literal) , identifier , identifier ))))) ;) (expression_statement "puVar1[2] = piVar4;" (assignment_expression "puVar1[2] = piVar4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);" (assignment_expression "iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x1c))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x1c))" ( (pointer_expression "**(code **)(*piVar4 + 0x1c)" * (pointer_expression "*(code **)(*piVar4 + 0x1c)" * (cast_expression "(code **)(*piVar4 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x1c)" ( (binary_expression "*piVar4 + 0x1c" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }" { (expression_statement "iVar3 = FUN_0001eed0(iVar3);" (assignment_expression "iVar3 = FUN_0001eed0(iVar3)" identifier = (call_expression "FUN_0001eed0(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "(**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);" (call_expression "(**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2])" (parenthesized_expression "(**(code **)(*(int *)puVar1[2] + 4))" ( (pointer_expression "**(code **)(*(int *)puVar1[2] + 4)" * (pointer_expression "*(code **)(*(int *)puVar1[2] + 4)" * (cast_expression "(code **)(*(int *)puVar1[2] + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1[2] + 4)" ( (binary_expression "*(int *)puVar1[2] + 4" (pointer_expression "*(int *)puVar1[2]" * (cast_expression "(int *)puVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)puVar1[2])" ( (cast_expression "(int *)puVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ])) ))) ;) (expression_statement "FUN_00020030(puVar1[4]);" (call_expression "FUN_00020030(puVar1[4])" identifier (argument_list "(puVar1[4])" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00020030(puVar1);" (call_expression "FUN_00020030(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" * identifier) = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nchar * pfl_listen(char *desthost,int destport,char *srcaddr,int port,void *backhandle,Conf *conf,\n                 PortListener **pl_ret,int address_family)\n\n{\n  PortListener *plug;\n  char *pcVar1;\n  int iVar2;\n  Socket ppsVar3;\n  \n  plug = (PortListener *)safemalloc(1,0x18);\n  plug->hostname = (char *)0x0;\n  *pl_ret = plug;\n  plug->fn = &pfl_listen::fn_table;\n  if (desthost == (char *)0x0) {\n    plug->dynamic = 1;\n  }\n  else {\n    pcVar1 = dupstr(desthost);\n    plug->dynamic = 0;\n    plug->hostname = pcVar1;\n    plug->port = destport;\n  }\n  plug->backhandle = backhandle;\n  iVar2 = conf_get_int(conf,0x99);\n  ppsVar3 = new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family);\n  plug->s = ppsVar3;\n  pcVar1 = (*(*ppsVar3)->socket_error)(ppsVar3);\n  if (pcVar1 != (char *)0x0) {\n    pcVar1 = dupstr(pcVar1);\n    (*(*plug->s)->close)(plug->s);\n    safefree(plug->hostname);\n    safefree(plug);\n    *pl_ret = (PortListener *)0x0;\n  }\n  return pcVar1;\n}\n\n" comment comment comment (function_definition "char * pfl_listen(char *desthost,int destport,char *srcaddr,int port,void *backhandle,Conf *conf,\n                 PortListener **pl_ret,int address_family)\n\n{\n  PortListener *plug;\n  char *pcVar1;\n  int iVar2;\n  Socket ppsVar3;\n  \n  plug = (PortListener *)safemalloc(1,0x18);\n  plug->hostname = (char *)0x0;\n  *pl_ret = plug;\n  plug->fn = &pfl_listen::fn_table;\n  if (desthost == (char *)0x0) {\n    plug->dynamic = 1;\n  }\n  else {\n    pcVar1 = dupstr(desthost);\n    plug->dynamic = 0;\n    plug->hostname = pcVar1;\n    plug->port = destport;\n  }\n  plug->backhandle = backhandle;\n  iVar2 = conf_get_int(conf,0x99);\n  ppsVar3 = new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family);\n  plug->s = ppsVar3;\n  pcVar1 = (*(*ppsVar3)->socket_error)(ppsVar3);\n  if (pcVar1 != (char *)0x0) {\n    pcVar1 = dupstr(pcVar1);\n    (*(*plug->s)->close)(plug->s);\n    safefree(plug->hostname);\n    safefree(plug);\n    *pl_ret = (PortListener *)0x0;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* pfl_listen(char *desthost,int destport,char *srcaddr,int port,void *backhandle,Conf *conf,\n                 PortListener **pl_ret,int address_family)" * (function_declarator "pfl_listen(char *desthost,int destport,char *srcaddr,int port,void *backhandle,Conf *conf,\n                 PortListener **pl_ret,int address_family)" identifier (parameter_list "(char *desthost,int destport,char *srcaddr,int port,void *backhandle,Conf *conf,\n                 PortListener **pl_ret,int address_family)" ( (parameter_declaration "char *desthost" primitive_type (pointer_declarator "*desthost" * identifier)) , (parameter_declaration "int destport" primitive_type identifier) , (parameter_declaration "char *srcaddr" primitive_type (pointer_declarator "*srcaddr" * identifier)) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "void *backhandle" primitive_type (pointer_declarator "*backhandle" * identifier)) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "PortListener **pl_ret" type_identifier (pointer_declarator "**pl_ret" * (pointer_declarator "*pl_ret" * identifier))) , (parameter_declaration "int address_family" primitive_type identifier) )))) (compound_statement "{\n  PortListener *plug;\n  char *pcVar1;\n  int iVar2;\n  Socket ppsVar3;\n  \n  plug = (PortListener *)safemalloc(1,0x18);\n  plug->hostname = (char *)0x0;\n  *pl_ret = plug;\n  plug->fn = &pfl_listen::fn_table;\n  if (desthost == (char *)0x0) {\n    plug->dynamic = 1;\n  }\n  else {\n    pcVar1 = dupstr(desthost);\n    plug->dynamic = 0;\n    plug->hostname = pcVar1;\n    plug->port = destport;\n  }\n  plug->backhandle = backhandle;\n  iVar2 = conf_get_int(conf,0x99);\n  ppsVar3 = new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family);\n  plug->s = ppsVar3;\n  pcVar1 = (*(*ppsVar3)->socket_error)(ppsVar3);\n  if (pcVar1 != (char *)0x0) {\n    pcVar1 = dupstr(pcVar1);\n    (*(*plug->s)->close)(plug->s);\n    safefree(plug->hostname);\n    safefree(plug);\n    *pl_ret = (PortListener *)0x0;\n  }\n  return pcVar1;\n}" { (declaration "PortListener *plug;" type_identifier (pointer_declarator "*plug" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Socket ppsVar3;" type_identifier identifier ;) (expression_statement "plug = (PortListener *)safemalloc(1,0x18);" (assignment_expression "plug = (PortListener *)safemalloc(1,0x18)" identifier = (cast_expression "(PortListener *)safemalloc(1,0x18)" ( (type_descriptor "PortListener *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "plug->hostname = (char *)0x0;" (assignment_expression "plug->hostname = (char *)0x0" (field_expression "plug->hostname" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*pl_ret = plug;" (assignment_expression "*pl_ret = plug" (pointer_expression "*pl_ret" * identifier) = identifier) ;) (expression_statement "plug->fn = &pfl_listen::fn_table;" (assignment_expression "plug->fn = &pfl_listen" (field_expression "plug->fn" identifier -> field_identifier) = (pointer_expression "&pfl_listen" & identifier)) (ERROR "::fn_table" : : identifier) ;) (if_statement "if (desthost == (char *)0x0) {\n    plug->dynamic = 1;\n  }\n  else {\n    pcVar1 = dupstr(desthost);\n    plug->dynamic = 0;\n    plug->hostname = pcVar1;\n    plug->port = destport;\n  }" if (parenthesized_expression "(desthost == (char *)0x0)" ( (binary_expression "desthost == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plug->dynamic = 1;\n  }" { (expression_statement "plug->dynamic = 1;" (assignment_expression "plug->dynamic = 1" (field_expression "plug->dynamic" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n    pcVar1 = dupstr(desthost);\n    plug->dynamic = 0;\n    plug->hostname = pcVar1;\n    plug->port = destport;\n  }" else (compound_statement "{\n    pcVar1 = dupstr(desthost);\n    plug->dynamic = 0;\n    plug->hostname = pcVar1;\n    plug->port = destport;\n  }" { (expression_statement "pcVar1 = dupstr(desthost);" (assignment_expression "pcVar1 = dupstr(desthost)" identifier = (call_expression "dupstr(desthost)" identifier (argument_list "(desthost)" ( identifier )))) ;) (expression_statement "plug->dynamic = 0;" (assignment_expression "plug->dynamic = 0" (field_expression "plug->dynamic" identifier -> field_identifier) = number_literal) ;) (expression_statement "plug->hostname = pcVar1;" (assignment_expression "plug->hostname = pcVar1" (field_expression "plug->hostname" identifier -> field_identifier) = identifier) ;) (expression_statement "plug->port = destport;" (assignment_expression "plug->port = destport" (field_expression "plug->port" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "plug->backhandle = backhandle;" (assignment_expression "plug->backhandle = backhandle" (field_expression "plug->backhandle" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = conf_get_int(conf,0x99);" (assignment_expression "iVar2 = conf_get_int(conf,0x99)" identifier = (call_expression "conf_get_int(conf,0x99)" identifier (argument_list "(conf,0x99)" ( identifier , number_literal )))) ;) (expression_statement "ppsVar3 = new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family);" (assignment_expression "ppsVar3 = new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family)" identifier = (call_expression "new_listener(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family)" identifier (argument_list "(srcaddr,port,(Plug)plug,(uint)(iVar2 == 0),conf,address_family)" ( identifier , identifier , (cast_expression "(Plug)plug" ( (type_descriptor "Plug" type_identifier) ) identifier) , (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) , identifier , identifier )))) ;) (expression_statement "plug->s = ppsVar3;" (assignment_expression "plug->s = ppsVar3" (field_expression "plug->s" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar1 = (*(*ppsVar3)->socket_error)(ppsVar3);" (assignment_expression "pcVar1 = (*(*ppsVar3)->socket_error)(ppsVar3)" identifier = (call_expression "(*(*ppsVar3)->socket_error)(ppsVar3)" (parenthesized_expression "(*(*ppsVar3)->socket_error)" ( (pointer_expression "*(*ppsVar3)->socket_error" * (field_expression "(*ppsVar3)->socket_error" (parenthesized_expression "(*ppsVar3)" ( (pointer_expression "*ppsVar3" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar3)" ( identifier )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    pcVar1 = dupstr(pcVar1);\n    (*(*plug->s)->close)(plug->s);\n    safefree(plug->hostname);\n    safefree(plug);\n    *pl_ret = (PortListener *)0x0;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = dupstr(pcVar1);\n    (*(*plug->s)->close)(plug->s);\n    safefree(plug->hostname);\n    safefree(plug);\n    *pl_ret = (PortListener *)0x0;\n  }" { (expression_statement "pcVar1 = dupstr(pcVar1);" (assignment_expression "pcVar1 = dupstr(pcVar1)" identifier = (call_expression "dupstr(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "(*(*plug->s)->close)(plug->s);" (call_expression "(*(*plug->s)->close)(plug->s)" (parenthesized_expression "(*(*plug->s)->close)" ( (pointer_expression "*(*plug->s)->close" * (field_expression "(*plug->s)->close" (parenthesized_expression "(*plug->s)" ( (pointer_expression "*plug->s" * (field_expression "plug->s" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(plug->s)" ( (field_expression "plug->s" identifier -> field_identifier) ))) ;) (expression_statement "safefree(plug->hostname);" (call_expression "safefree(plug->hostname)" identifier (argument_list "(plug->hostname)" ( (field_expression "plug->hostname" identifier -> field_identifier) ))) ;) (expression_statement "safefree(plug);" (call_expression "safefree(plug)" identifier (argument_list "(plug)" ( identifier ))) ;) (expression_statement "*pl_ret = (PortListener *)0x0;" (assignment_expression "*pl_ret = (PortListener *)0x0" (pointer_expression "*pl_ret" * identifier) = (cast_expression "(PortListener *)0x0" ( (type_descriptor "PortListener *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "int FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001fe90(1,0x18)" identifier = (cast_expression "(undefined4 *)FUN_0001fe90(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fe90(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_7 = puVar1;" (assignment_expression "*param_7 = puVar1" (pointer_expression "*param_7" * identifier) = identifier) ;) (expression_statement "*puVar1 = &PTR_FUN_000c57ac;" (assignment_expression "*puVar1 = &PTR_FUN_000c57ac" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_000c57ac" & identifier)) ;) (if_statement "if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar1[3] = 1;\n  }" { (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" else (compound_statement "{\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" { (expression_statement "uVar2 = FUN_0001eed0(param_1);" (assignment_expression "uVar2 = FUN_0001eed0(param_1)" identifier = (call_expression "FUN_0001eed0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = uVar2;" (assignment_expression "puVar1[4] = uVar2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = param_2;" (assignment_expression "puVar1[5] = param_2" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar1[1] = param_5;" (assignment_expression "puVar1[1] = param_5" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_0001a000(param_6,0x99);" (assignment_expression "iVar3 = FUN_0001a000(param_6,0x99)" identifier = (call_expression "FUN_0001a000(param_6,0x99)" identifier (argument_list "(param_6,0x99)" ( identifier , number_literal )))) ;) (expression_statement "piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);" (assignment_expression "piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" identifier = (cast_expression "(int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" identifier (argument_list "(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" ( identifier , identifier , identifier , (binary_expression "iVar3 == 0" identifier == number_literal) , identifier , identifier ))))) ;) (expression_statement "puVar1[2] = piVar4;" (assignment_expression "puVar1[2] = piVar4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);" (assignment_expression "iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x1c))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x1c))" ( (pointer_expression "**(code **)(*piVar4 + 0x1c)" * (pointer_expression "*(code **)(*piVar4 + 0x1c)" * (cast_expression "(code **)(*piVar4 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x1c)" ( (binary_expression "*piVar4 + 0x1c" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }" { (expression_statement "iVar3 = FUN_0001eed0(iVar3);" (assignment_expression "iVar3 = FUN_0001eed0(iVar3)" identifier = (call_expression "FUN_0001eed0(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "(**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);" (call_expression "(**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2])" (parenthesized_expression "(**(code **)(*(int *)puVar1[2] + 4))" ( (pointer_expression "**(code **)(*(int *)puVar1[2] + 4)" * (pointer_expression "*(code **)(*(int *)puVar1[2] + 4)" * (cast_expression "(code **)(*(int *)puVar1[2] + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1[2] + 4)" ( (binary_expression "*(int *)puVar1[2] + 4" (pointer_expression "*(int *)puVar1[2]" * (cast_expression "(int *)puVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)puVar1[2])" ( (cast_expression "(int *)puVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[2]" identifier [ number_literal ])) ))) ;) (expression_statement "FUN_00020030(puVar1[4]);" (call_expression "FUN_00020030(puVar1[4])" identifier (argument_list "(puVar1[4])" ( (subscript_expression "puVar1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00020030(puVar1);" (call_expression "FUN_00020030(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" * identifier) = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT == LIT) , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_00021770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)" (identifier "FUN_00021770") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 *param_7" (type_identifier "undefined4") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);\n  puVar1[4] = 0;\n  *param_7 = puVar1;\n  *puVar1 = &PTR_FUN_000c57ac;\n  if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }\n  puVar1[1] = param_5;\n  iVar3 = FUN_0001a000(param_6,0x99);\n  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);\n  puVar1[2] = piVar4;\n  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);\n  if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }\n  return iVar3;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001fe90(1,0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0001fe90(1,0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001fe90(1,0x18)" (identifier "FUN_0001fe90") (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_7 = puVar1;" (assignment_expression "*param_7 = puVar1" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_000c57ac;" (assignment_expression "*puVar1 = &PTR_FUN_000c57ac" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_000c57ac" (& "&") (identifier "PTR_FUN_000c57ac"))) (; ";")) (if_statement "if (param_1 == 0) {\n    puVar1[3] = 1;\n  }\n  else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1[3] = 1;\n  }" ({ "{") (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" (else "else") (compound_statement "{\n    uVar2 = FUN_0001eed0(param_1);\n    puVar1[3] = 0;\n    puVar1[4] = uVar2;\n    puVar1[5] = param_2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_0001eed0(param_1);" (assignment_expression "uVar2 = FUN_0001eed0(param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0001eed0(param_1)" (identifier "FUN_0001eed0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[4] = uVar2;" (assignment_expression "puVar1[4] = uVar2" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1[5] = param_2;" (assignment_expression "puVar1[5] = param_2" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (expression_statement "puVar1[1] = param_5;" (assignment_expression "puVar1[1] = param_5" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "iVar3 = FUN_0001a000(param_6,0x99);" (assignment_expression "iVar3 = FUN_0001a000(param_6,0x99)" (identifier "iVar3") (= "=") (call_expression "FUN_0001a000(param_6,0x99)" (identifier "FUN_0001a000") (argument_list "(param_6,0x99)" (( "(") (identifier "param_6") (, ",") (number_literal "0x99") () ")")))) (; ";")) (expression_statement "piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);" (assignment_expression "piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" (identifier "FUN_00023e80") (argument_list "(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "puVar1") (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (, ",") (identifier "param_6") (, ",") (identifier "param_8") () ")"))))) (; ";")) (expression_statement "puVar1[2] = piVar4;" (assignment_expression "puVar1[2] = piVar4" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "piVar4")) (; ";")) (expression_statement "iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);" (assignment_expression "iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*piVar4 + 0x1c))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar4 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x1c)" (( "(") (binary_expression "*piVar4 + 0x1c" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = FUN_0001eed0(iVar3);\n    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);\n    FUN_00020030(puVar1[4]);\n    FUN_00020030(puVar1);\n    *param_7 = 0;\n  }" ({ "{") (expression_statement "iVar3 = FUN_0001eed0(iVar3);" (assignment_expression "iVar3 = FUN_0001eed0(iVar3)" (identifier "iVar3") (= "=") (call_expression "FUN_0001eed0(iVar3)" (identifier "FUN_0001eed0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "(**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);" (call_expression "(**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2])" (parenthesized_expression "(**(code **)(*(int *)puVar1[2] + 4))" (( "(") (pointer_expression "**(code **)(*(int *)puVar1[2] + 4)" (* "*") (pointer_expression "*(code **)(*(int *)puVar1[2] + 4)" (* "*") (cast_expression "(code **)(*(int *)puVar1[2] + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)puVar1[2] + 4)" (( "(") (binary_expression "*(int *)puVar1[2] + 4" (pointer_expression "*(int *)puVar1[2]" (* "*") (cast_expression "(int *)puVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "((int *)puVar1[2])" (( "(") (cast_expression "(int *)puVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";")) (expression_statement "FUN_00020030(puVar1[4]);" (call_expression "FUN_00020030(puVar1[4])" (identifier "FUN_00020030") (argument_list "(puVar1[4])" (( "(") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_00020030(puVar1);" (call_expression "FUN_00020030(puVar1)" (identifier "FUN_00020030") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "*param_7 = 0;" (assignment_expression "*param_7 = 0" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

char * function_1(char *var_2,int destport,char *srcaddr,int port,void *backhandle,type_1 *conf,
                 type_2 **pl_ret,int address_family)

{
  type_2 *plug;
  char *var_7;
  int var_6;
  type_3 ppsVar3;
  
  plug = (type_2 *)var_1(1,0x18);
  plug->hostname = (char *)0x0;
  *pl_ret = plug;
  plug->fn = &function_1::fn_table;
  if (var_2 == (char *)0x0) {
    plug->dynamic = 1;
  }
  else {
    var_7 = var_3(var_2);
    plug->dynamic = 0;
    plug->hostname = var_7;
    plug->port = destport;
  }
  plug->backhandle = backhandle;
  var_6 = var_4(conf,0x99);
  ppsVar3 = var_5(srcaddr,port,(type_4)plug,(uint)(var_6 == 0),conf,address_family);
  plug->s = ppsVar3;
  var_7 = (*(*ppsVar3)->socket_error)(ppsVar3);
  if (var_7 != (char *)0x0) {
    var_7 = var_3(var_7);
    (*(*plug->s)->close)(plug->s);
    var_8(plug->hostname);
    var_8(plug);
    *pl_ret = (type_2 *)0x0;
  }
  return var_7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5,undefined4 param_6,undefined4 *param_7,undefined4 param_8)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  
  puVar1 = (undefined4 *)FUN_0001fe90(1,0x18);
  puVar1[4] = 0;
  *param_7 = puVar1;
  *puVar1 = &PTR_FUN_000c57ac;
  if (param_1 == 0) {
    puVar1[3] = 1;
  }
  else {
    uVar2 = FUN_0001eed0(param_1);
    puVar1[3] = 0;
    puVar1[4] = uVar2;
    puVar1[5] = param_2;
  }
  puVar1[1] = param_5;
  iVar3 = FUN_0001a000(param_6,0x99);
  piVar4 = (int *)FUN_00023e80(param_3,param_4,puVar1,iVar3 == 0,param_6,param_8);
  puVar1[2] = piVar4;
  iVar3 = (**(code **)(*piVar4 + 0x1c))(piVar4);
  if (iVar3 != 0) {
    iVar3 = FUN_0001eed0(iVar3);
    (**(code **)(*(int *)puVar1[2] + 4))((int *)puVar1[2]);
    FUN_00020030(puVar1[4]);
    FUN_00020030(puVar1);
    *param_7 = 0;
  }
  return iVar3;
}

