
int main(int argc,char **argv)

{
  int sfd;
  int iVar1;
  uint uVar2;
  int *piVar3;
  ifconfig *ifp;
  int iVar4;
  
  set_program_name(*argv);
  parse_cmdline(argc,argv);
  sfd = socket(2,1,0);
  if (sfd < 0) {
    piVar3 = __errno_location();
    error(0,*piVar3,"socket error");
                    /* WARNING: Subroutine does not return */
    exit(1);
  }
  if (ifs < ifs + nifs) {
    ifp = ifs;
    iVar4 = 0;
    do {
      if (list_mode == 0) {
        iVar1 = configure_if(sfd,ifp);
        if (iVar1 != 0) break;
      }
      else {
        uVar2 = if_nametoindex(ifp->name);
        iVar1 = iVar4;
        if (uVar2 != 0) {
          iVar1 = iVar4 + 1;
          if (iVar4 != 0) {
            putc(0x20,stdout);
          }
          __printf_chk(1,"%s",ifp->name);
        }
      }
      ifp = ifp + 1;
      iVar4 = iVar1;
    } while (ifp < ifs + nifs);
    if ((list_mode != 0) && (iVar1 != 0)) {
      putc(10,stdout);
    }
  }
  else {
    iVar1 = 0;
  }
  close(sfd);
  return iVar1;
}



int FUN_001055a5(undefined4 param_1,undefined8 *param_2)

{
  int __fd;
  uint uVar1;
  int *piVar2;
  undefined8 *puVar3;
  int iVar4;
  int iVar5;
  
  FUN_0010bae0(*param_2);
  FUN_00107526(param_1,param_2);
  __fd = socket(2,1,0);
  if (__fd < 0) {
    piVar2 = __errno_location();
    error(0,*piVar2,"socket error");
                    /* WARNING: Subroutine does not return */
    exit(1);
  }
  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {
    puVar3 = DAT_0011a498;
    iVar4 = 0;
    do {
      if (DAT_0011a4bc == 0) {
        iVar5 = FUN_001066a8(__fd,puVar3);
        if (iVar5 != 0) break;
      }
      else {
        uVar1 = if_nametoindex((char *)*puVar3);
        iVar5 = iVar4;
        if (uVar1 != 0) {
          iVar5 = iVar4 + 1;
          if (iVar4 != 0) {
            putc(0x20,stdout);
          }
          __printf_chk(1,"%s",*puVar3);
        }
      }
      puVar3 = puVar3 + 0xc;
      iVar4 = iVar5;
    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);
    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {
      putc(10,stdout);
    }
  }
  else {
    iVar5 = 0;
  }
  close(__fd);
  return iVar5;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV EBP,EDI
MOV RBX,RSI
MOV RDI,qword ptr [RSI]
CALL 0x0010bae0
MOV RSI,RBX
MOV EDI,EBP
CALL 0x00107526
MOV EDX,0x0
MOV ESI,0x1
MOV EDI,0x2
CALL 0x00105490
TEST EAX,EAX
JS 0x0010560f
MOV R12D,EAX
MOV RBX,qword ptr [0x0011a498]
MOVSXD RAX,dword ptr [0x0011a4a0]
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x5
ADD RAX,RBX
CMP RBX,RAX
JNC 0x001056e3
MOV EBP,0x0
LEA R13,[0x1110b0]
JMP 0x00105679
CALL 0x00105080
LEA RDX,[0x111004]
MOV ESI,dword ptr [RAX]
MOV EDI,0x0
MOV EAX,0x0
CALL 0x001053b0
MOV EDI,0x1
CALL 0x001053e0
MOV RSI,qword ptr [0x0011a348]
MOV EDI,0x20
CALL 0x00105280
JMP 0x00105696
MOV RSI,RBX
MOV EDI,R12D
CALL 0x001066a8
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x001056b0
ADD RBX,0x60
MOVSXD RAX,dword ptr [0x0011a4a0]
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x5
ADD RAX,qword ptr [0x0011a498]
CMP RBX,RAX
JNC 0x001056b0
CMP dword ptr [0x0011a4bc],0x0
JZ 0x00105649
MOV RDI,qword ptr [RBX]
CALL 0x001052a0
TEST EAX,EAX
JZ 0x0010565a
LEA R14D,[RBP + 0x1]
TEST EBP,EBP
JNZ 0x00105636
MOV RDX,qword ptr [RBX]
MOV RSI,R13
MOV EDI,0x1
MOV EAX,0x0
CALL 0x00105380
MOV EBP,R14D
JMP 0x0010565a
CMP dword ptr [0x0011a4bc],0x0
JZ 0x001056bd
TEST EBP,EBP
JNZ 0x001056d0
MOV EDI,R12D
CALL 0x001051e0
MOV EAX,EBP
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV RSI,qword ptr [0x0011a348]
MOV EDI,0xa
CALL 0x00105280
JMP 0x001056bd
MOV EBP,0x0
JMP 0x001056bd
(translation_unit "int FUN_001055a5(undefined4 param_1,undefined8 *param_2)\n\n{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}\n\n" (function_definition "int FUN_001055a5(undefined4 param_1,undefined8 *param_2)\n\n{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}" primitive_type (function_declarator "FUN_001055a5(undefined4 param_1,undefined8 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined8 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "FUN_0010bae0(*param_2);" (call_expression "FUN_0010bae0(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "FUN_00107526(param_1,param_2);" (call_expression "FUN_00107526(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "__fd = socket(2,1,0);" (assignment_expression "__fd = socket(2,1,0)" identifier = (call_expression "socket(2,1,0)" identifier (argument_list "(2,1,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"socket error");" (call_expression "error(0,*piVar2,"socket error")" identifier (argument_list "(0,*piVar2,"socket error")" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""socket error"" " string_content ") ))) ;) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }" if (parenthesized_expression "(DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc)" ( (binary_expression "DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier < (binary_expression "DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier + (binary_expression "(long)DAT_0011a4a0 * 0xc" (cast_expression "(long)DAT_0011a4a0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal))) )) (compound_statement "{\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }" { (expression_statement "puVar3 = DAT_0011a498;" (assignment_expression "puVar3 = DAT_0011a498" identifier = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);" do (compound_statement "{\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    }" { (if_statement "if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" if (parenthesized_expression "(DAT_0011a4bc == 0)" ( (binary_expression "DAT_0011a4bc == 0" identifier == number_literal) )) (compound_statement "{\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }" { (expression_statement "iVar5 = FUN_001066a8(__fd,puVar3);" (assignment_expression "iVar5 = FUN_001066a8(__fd,puVar3)" identifier = (call_expression "FUN_001066a8(__fd,puVar3)" identifier (argument_list "(__fd,puVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 != 0) break;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) }) (else_clause "else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" else (compound_statement "{\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" { (expression_statement "uVar1 = if_nametoindex((char *)*puVar3);" (assignment_expression "uVar1 = if_nametoindex((char *)*puVar3)" identifier = (call_expression "if_nametoindex((char *)*puVar3)" identifier (argument_list "((char *)*puVar3)" ( (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) )))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }" { (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            putc(0x20,stdout);\n          }" { (expression_statement "putc(0x20,stdout);" (call_expression "putc(0x20,stdout)" identifier (argument_list "(0x20,stdout)" ( number_literal , identifier ))) ;) })) (expression_statement "__printf_chk(1,"%s",*puVar3);" (call_expression "__printf_chk(1,"%s",*puVar3)" identifier (argument_list "(1,"%s",*puVar3)" ( number_literal , (string_literal ""%s"" " string_content ") , (pointer_expression "*puVar3" * identifier) ))) ;) })) }))) (expression_statement "puVar3 = puVar3 + 0xc;" (assignment_expression "puVar3 = puVar3 + 0xc" identifier = (binary_expression "puVar3 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc)" ( (binary_expression "puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier < (binary_expression "DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier + (binary_expression "(long)DAT_0011a4a0 * 0xc" (cast_expression "(long)DAT_0011a4a0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal))) )) ;) (if_statement "if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }" if (parenthesized_expression "((DAT_0011a4bc != 0) && (iVar5 != 0))" ( (binary_expression "(DAT_0011a4bc != 0) && (iVar5 != 0)" (parenthesized_expression "(DAT_0011a4bc != 0)" ( (binary_expression "DAT_0011a4bc != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      putc(10,stdout);\n    }" { (expression_statement "putc(10,stdout);" (call_expression "putc(10,stdout)" identifier (argument_list "(10,stdout)" ( number_literal , identifier ))) ;) })) }) (else_clause "else {\n    iVar5 = 0;\n  }" else (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int main(int argc,char **argv)\n\n{\n  int sfd;\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  ifconfig *ifp;\n  int iVar4;\n  \n  set_program_name(*argv);\n  parse_cmdline(argc,argv);\n  sfd = socket(2,1,0);\n  if (sfd < 0) {\n    piVar3 = __errno_location();\n    error(0,*piVar3,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  if (ifs < ifs + nifs) {\n    ifp = ifs;\n    iVar4 = 0;\n    do {\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    } while (ifp < ifs + nifs);\n    if ((list_mode != 0) && (iVar1 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar1 = 0;\n  }\n  close(sfd);\n  return iVar1;\n}\n\n" (function_definition "int main(int argc,char **argv)\n\n{\n  int sfd;\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  ifconfig *ifp;\n  int iVar4;\n  \n  set_program_name(*argv);\n  parse_cmdline(argc,argv);\n  sfd = socket(2,1,0);\n  if (sfd < 0) {\n    piVar3 = __errno_location();\n    error(0,*piVar3,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  if (ifs < ifs + nifs) {\n    ifp = ifs;\n    iVar4 = 0;\n    do {\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    } while (ifp < ifs + nifs);\n    if ((list_mode != 0) && (iVar1 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar1 = 0;\n  }\n  close(sfd);\n  return iVar1;\n}" primitive_type (function_declarator "main(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int sfd;\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  ifconfig *ifp;\n  int iVar4;\n  \n  set_program_name(*argv);\n  parse_cmdline(argc,argv);\n  sfd = socket(2,1,0);\n  if (sfd < 0) {\n    piVar3 = __errno_location();\n    error(0,*piVar3,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  if (ifs < ifs + nifs) {\n    ifp = ifs;\n    iVar4 = 0;\n    do {\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    } while (ifp < ifs + nifs);\n    if ((list_mode != 0) && (iVar1 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar1 = 0;\n  }\n  close(sfd);\n  return iVar1;\n}" { (declaration "int sfd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "ifconfig *ifp;" type_identifier (pointer_declarator "*ifp" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "set_program_name(*argv);" (call_expression "set_program_name(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) ))) ;) (expression_statement "parse_cmdline(argc,argv);" (call_expression "parse_cmdline(argc,argv)" identifier (argument_list "(argc,argv)" ( identifier , identifier ))) ;) (expression_statement "sfd = socket(2,1,0);" (assignment_expression "sfd = socket(2,1,0)" identifier = (call_expression "socket(2,1,0)" identifier (argument_list "(2,1,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (sfd < 0) {\n    piVar3 = __errno_location();\n    error(0,*piVar3,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" if (parenthesized_expression "(sfd < 0)" ( (binary_expression "sfd < 0" identifier < number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    error(0,*piVar3,"socket error");\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar3,"socket error");" (call_expression "error(0,*piVar3,"socket error")" identifier (argument_list "(0,*piVar3,"socket error")" ( number_literal , (pointer_expression "*piVar3" * identifier) , (string_literal ""socket error"" " string_content ") ))) ;) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (ifs < ifs + nifs) {\n    ifp = ifs;\n    iVar4 = 0;\n    do {\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    } while (ifp < ifs + nifs);\n    if ((list_mode != 0) && (iVar1 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar1 = 0;\n  }" if (parenthesized_expression "(ifs < ifs + nifs)" ( (binary_expression "ifs < ifs + nifs" identifier < (binary_expression "ifs + nifs" identifier + identifier)) )) (compound_statement "{\n    ifp = ifs;\n    iVar4 = 0;\n    do {\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    } while (ifp < ifs + nifs);\n    if ((list_mode != 0) && (iVar1 != 0)) {\n      putc(10,stdout);\n    }\n  }" { (expression_statement "ifp = ifs;" (assignment_expression "ifp = ifs" identifier = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    } while (ifp < ifs + nifs);" do (compound_statement "{\n      if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }\n      ifp = ifp + 1;\n      iVar4 = iVar1;\n    }" { (if_statement "if (list_mode == 0) {\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }\n      else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }" if (parenthesized_expression "(list_mode == 0)" ( (binary_expression "list_mode == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = configure_if(sfd,ifp);\n        if (iVar1 != 0) break;\n      }" { (expression_statement "iVar1 = configure_if(sfd,ifp);" (assignment_expression "iVar1 = configure_if(sfd,ifp)" identifier = (call_expression "configure_if(sfd,ifp)" identifier (argument_list "(sfd,ifp)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) break;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) }) (else_clause "else {\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }" else (compound_statement "{\n        uVar2 = if_nametoindex(ifp->name);\n        iVar1 = iVar4;\n        if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }\n      }" { (expression_statement "uVar2 = if_nametoindex(ifp->name);" (assignment_expression "uVar2 = if_nametoindex(ifp->name)" identifier = (call_expression "if_nametoindex(ifp->name)" identifier (argument_list "(ifp->name)" ( (field_expression "ifp->name" identifier -> field_identifier) )))) ;) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" identifier = identifier) ;) (if_statement "if (uVar2 != 0) {\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar1 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",ifp->name);\n        }" { (expression_statement "iVar1 = iVar4 + 1;" (assignment_expression "iVar1 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            putc(0x20,stdout);\n          }" { (expression_statement "putc(0x20,stdout);" (call_expression "putc(0x20,stdout)" identifier (argument_list "(0x20,stdout)" ( number_literal , identifier ))) ;) })) (expression_statement "__printf_chk(1,"%s",ifp->name);" (call_expression "__printf_chk(1,"%s",ifp->name)" identifier (argument_list "(1,"%s",ifp->name)" ( number_literal , (string_literal ""%s"" " string_content ") , (field_expression "ifp->name" identifier -> field_identifier) ))) ;) })) }))) (expression_statement "ifp = ifp + 1;" (assignment_expression "ifp = ifp + 1" identifier = (binary_expression "ifp + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(ifp < ifs + nifs)" ( (binary_expression "ifp < ifs + nifs" identifier < (binary_expression "ifs + nifs" identifier + identifier)) )) ;) (if_statement "if ((list_mode != 0) && (iVar1 != 0)) {\n      putc(10,stdout);\n    }" if (parenthesized_expression "((list_mode != 0) && (iVar1 != 0))" ( (binary_expression "(list_mode != 0) && (iVar1 != 0)" (parenthesized_expression "(list_mode != 0)" ( (binary_expression "list_mode != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      putc(10,stdout);\n    }" { (expression_statement "putc(10,stdout);" (call_expression "putc(10,stdout)" identifier (argument_list "(10,stdout)" ( number_literal , identifier ))) ;) })) }) (else_clause "else {\n    iVar1 = 0;\n  }" else (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (expression_statement "close(sfd);" (call_expression "close(sfd)" identifier (argument_list "(sfd)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_001055a5(undefined4 param_1,undefined8 *param_2)\n\n{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}\n\n" (function_definition "int FUN_001055a5(undefined4 param_1,undefined8 *param_2)\n\n{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}" primitive_type (function_declarator "FUN_001055a5(undefined4 param_1,undefined8 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined8 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "FUN_0010bae0(*param_2);" (call_expression "FUN_0010bae0(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "FUN_00107526(param_1,param_2);" (call_expression "FUN_00107526(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "__fd = socket(2,1,0);" (assignment_expression "__fd = socket(2,1,0)" identifier = (call_expression "socket(2,1,0)" identifier (argument_list "(2,1,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }" if (parenthesized_expression "(__fd < 0)" ( (binary_expression "__fd < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar2,"socket error");" (call_expression "error(0,*piVar2,"socket error")" identifier (argument_list "(0,*piVar2,"socket error")" ( number_literal , (pointer_expression "*piVar2" * identifier) , (string_literal ""socket error"" " string_content ") ))) ;) (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }" if (parenthesized_expression "(DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc)" ( (binary_expression "DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier < (binary_expression "DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier + (binary_expression "(long)DAT_0011a4a0 * 0xc" (cast_expression "(long)DAT_0011a4a0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal))) )) (compound_statement "{\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }" { (expression_statement "puVar3 = DAT_0011a498;" (assignment_expression "puVar3 = DAT_0011a498" identifier = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);" do (compound_statement "{\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    }" { (if_statement "if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" if (parenthesized_expression "(DAT_0011a4bc == 0)" ( (binary_expression "DAT_0011a4bc == 0" identifier == number_literal) )) (compound_statement "{\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }" { (expression_statement "iVar5 = FUN_001066a8(__fd,puVar3);" (assignment_expression "iVar5 = FUN_001066a8(__fd,puVar3)" identifier = (call_expression "FUN_001066a8(__fd,puVar3)" identifier (argument_list "(__fd,puVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 != 0) break;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) }) (else_clause "else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" else (compound_statement "{\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" { (expression_statement "uVar1 = if_nametoindex((char *)*puVar3);" (assignment_expression "uVar1 = if_nametoindex((char *)*puVar3)" identifier = (call_expression "if_nametoindex((char *)*puVar3)" identifier (argument_list "((char *)*puVar3)" ( (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) )))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }" { (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n            putc(0x20,stdout);\n          }" { (expression_statement "putc(0x20,stdout);" (call_expression "putc(0x20,stdout)" identifier (argument_list "(0x20,stdout)" ( number_literal , identifier ))) ;) })) (expression_statement "__printf_chk(1,"%s",*puVar3);" (call_expression "__printf_chk(1,"%s",*puVar3)" identifier (argument_list "(1,"%s",*puVar3)" ( number_literal , (string_literal ""%s"" " string_content ") , (pointer_expression "*puVar3" * identifier) ))) ;) })) }))) (expression_statement "puVar3 = puVar3 + 0xc;" (assignment_expression "puVar3 = puVar3 + 0xc" identifier = (binary_expression "puVar3 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc)" ( (binary_expression "puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier < (binary_expression "DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" identifier + (binary_expression "(long)DAT_0011a4a0 * 0xc" (cast_expression "(long)DAT_0011a4a0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal))) )) ;) (if_statement "if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }" if (parenthesized_expression "((DAT_0011a4bc != 0) && (iVar5 != 0))" ( (binary_expression "(DAT_0011a4bc != 0) && (iVar5 != 0)" (parenthesized_expression "(DAT_0011a4bc != 0)" ( (binary_expression "DAT_0011a4bc != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      putc(10,stdout);\n    }" { (expression_statement "putc(10,stdout);" (call_expression "putc(10,stdout)" identifier (argument_list "(10,stdout)" ( number_literal , identifier ))) ;) })) }) (else_clause "else {\n    iVar5 = 0;\n  }" else (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (string_literal " string_content ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (pointer_expression * IDENT) ))) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_001055a5(undefined4 param_1,undefined8 *param_2)\n\n{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}" (primitive_type "int") (function_declarator "FUN_001055a5(undefined4 param_1,undefined8 *param_2)" (identifier "FUN_001055a5") (parameter_list "(undefined4 param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int __fd;\n  uint uVar1;\n  int *piVar2;\n  undefined8 *puVar3;\n  int iVar4;\n  int iVar5;\n  \n  FUN_0010bae0(*param_2);\n  FUN_00107526(param_1,param_2);\n  __fd = socket(2,1,0);\n  if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }\n  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }\n  close(__fd);\n  return iVar5;\n}" ({ "{") (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "FUN_0010bae0(*param_2);" (call_expression "FUN_0010bae0(*param_2)" (identifier "FUN_0010bae0") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "FUN_00107526(param_1,param_2);" (call_expression "FUN_00107526(param_1,param_2)" (identifier "FUN_00107526") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "__fd = socket(2,1,0);" (assignment_expression "__fd = socket(2,1,0)" (identifier "__fd") (= "=") (call_expression "socket(2,1,0)" (identifier "socket") (argument_list "(2,1,0)" (( "(") (number_literal "2") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (__fd < 0) {\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }" (if "if") (parenthesized_expression "(__fd < 0)" (( "(") (binary_expression "__fd < 0" (identifier "__fd") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = __errno_location();\n    error(0,*piVar2,"socket error");\n                    \n    exit(1);\n  }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(0,*piVar2,"socket error");" (call_expression "error(0,*piVar2,"socket error")" (identifier "error") (argument_list "(0,*piVar2,"socket error")" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (string_literal ""socket error"" (" """) (string_content "socket error") (" """)) () ")"))) (; ";")) (expression_statement "exit(1);" (call_expression "exit(1)" (identifier "exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }\n  else {\n    iVar5 = 0;\n  }" (if "if") (parenthesized_expression "(DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc)" (( "(") (binary_expression "DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" (identifier "DAT_0011a498") (< "<") (binary_expression "DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" (identifier "DAT_0011a498") (+ "+") (binary_expression "(long)DAT_0011a4a0 * 0xc" (cast_expression "(long)DAT_0011a4a0" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_0011a4a0")) (* "*") (number_literal "0xc")))) () ")")) (compound_statement "{\n    puVar3 = DAT_0011a498;\n    iVar4 = 0;\n    do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);\n    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }\n  }" ({ "{") (expression_statement "puVar3 = DAT_0011a498;" (assignment_expression "puVar3 = DAT_0011a498" (identifier "puVar3") (= "=") (identifier "DAT_0011a498")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);" (do "do") (compound_statement "{\n      if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }\n      puVar3 = puVar3 + 0xc;\n      iVar4 = iVar5;\n    }" ({ "{") (if_statement "if (DAT_0011a4bc == 0) {\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }\n      else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" (if "if") (parenthesized_expression "(DAT_0011a4bc == 0)" (( "(") (binary_expression "DAT_0011a4bc == 0" (identifier "DAT_0011a4bc") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = FUN_001066a8(__fd,puVar3);\n        if (iVar5 != 0) break;\n      }" ({ "{") (expression_statement "iVar5 = FUN_001066a8(__fd,puVar3);" (assignment_expression "iVar5 = FUN_001066a8(__fd,puVar3)" (identifier "iVar5") (= "=") (call_expression "FUN_001066a8(__fd,puVar3)" (identifier "FUN_001066a8") (argument_list "(__fd,puVar3)" (( "(") (identifier "__fd") (, ",") (identifier "puVar3") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) break;" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (else_clause "else {\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" (else "else") (compound_statement "{\n        uVar1 = if_nametoindex((char *)*puVar3);\n        iVar5 = iVar4;\n        if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }\n      }" ({ "{") (expression_statement "uVar1 = if_nametoindex((char *)*puVar3);" (assignment_expression "uVar1 = if_nametoindex((char *)*puVar3)" (identifier "uVar1") (= "=") (call_expression "if_nametoindex((char *)*puVar3)" (identifier "if_nametoindex") (argument_list "((char *)*puVar3)" (( "(") (cast_expression "(char *)*puVar3" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) () ")")))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (uVar1 != 0) {\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar5 = iVar4 + 1;\n          if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }\n          __printf_chk(1,"%s",*puVar3);\n        }" ({ "{") (expression_statement "iVar5 = iVar4 + 1;" (assignment_expression "iVar5 = iVar4 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar4 != 0) {\n            putc(0x20,stdout);\n          }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            putc(0x20,stdout);\n          }" ({ "{") (expression_statement "putc(0x20,stdout);" (call_expression "putc(0x20,stdout)" (identifier "putc") (argument_list "(0x20,stdout)" (( "(") (number_literal "0x20") (, ",") (identifier "stdout") () ")"))) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,"%s",*puVar3);" (call_expression "__printf_chk(1,"%s",*puVar3)" (identifier "__printf_chk") (argument_list "(1,"%s",*puVar3)" (( "(") (number_literal "1") (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar3 = puVar3 + 0xc;" (assignment_expression "puVar3 = puVar3 + 0xc" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 0xc" (identifier "puVar3") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" (identifier "iVar4") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc)" (( "(") (binary_expression "puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" (identifier "puVar3") (< "<") (binary_expression "DAT_0011a498 + (long)DAT_0011a4a0 * 0xc" (identifier "DAT_0011a498") (+ "+") (binary_expression "(long)DAT_0011a4a0 * 0xc" (cast_expression "(long)DAT_0011a4a0" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_0011a4a0")) (* "*") (number_literal "0xc")))) () ")")) (; ";")) (if_statement "if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {\n      putc(10,stdout);\n    }" (if "if") (parenthesized_expression "((DAT_0011a4bc != 0) && (iVar5 != 0))" (( "(") (binary_expression "(DAT_0011a4bc != 0) && (iVar5 != 0)" (parenthesized_expression "(DAT_0011a4bc != 0)" (( "(") (binary_expression "DAT_0011a4bc != 0" (identifier "DAT_0011a4bc") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      putc(10,stdout);\n    }" ({ "{") (expression_statement "putc(10,stdout);" (call_expression "putc(10,stdout)" (identifier "putc") (argument_list "(10,stdout)" (( "(") (number_literal "10") (, ",") (identifier "stdout") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar5 = 0;\n  }" (else "else") (compound_statement "{\n    iVar5 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

int function_1(int argc,char **argv)

{
  int var_4;
  int var_12;
  type_1 var_14;
  int *piVar3;
  type_2 *var_18;
  int var_15;
  
  var_1(*argv);
  var_2(argc,argv);
  var_4 = var_3(2,1,0);
  if (var_4 < 0) {
    piVar3 = var_5();
    var_6(0,*piVar3,"socket error");
                    /* WARNING: Subroutine does not return */
    var_7(1);
  }
  if (var_8 < var_8 + var_9) {
    var_18 = var_8;
    var_15 = 0;
    do {
      if (var_10 == 0) {
        var_12 = var_11(var_4,var_18);
        if (var_12 != 0) break;
      }
      else {
        var_14 = var_13(var_18->name);
        var_12 = var_15;
        if (var_14 != 0) {
          var_12 = var_15 + 1;
          if (var_15 != 0) {
            var_16(0x20,stdout);
          }
          var_17(1,"%s",var_18->name);
        }
      }
      var_18 = var_18 + 1;
      var_15 = var_12;
    } while (var_18 < var_8 + var_9);
    if ((var_10 != 0) && (var_12 != 0)) {
      var_16(10,stdout);
    }
  }
  else {
    var_12 = 0;
  }
  var_19(var_4);
  return var_12;
}


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

int MASKED(undefined4 param_1,undefined8 *param_2)

{
  int __fd;
  uint uVar1;
  int *piVar2;
  undefined8 *puVar3;
  int iVar4;
  int iVar5;
  
  FUN_0010bae0(*param_2);
  FUN_00107526(param_1,param_2);
  __fd = socket(2,1,0);
  if (__fd < 0) {
    piVar2 = __errno_location();
    error(0,*piVar2,"socket error");
                    /* WARNING: Subroutine does not return */
    exit(1);
  }
  if (DAT_0011a498 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc) {
    puVar3 = DAT_0011a498;
    iVar4 = 0;
    do {
      if (DAT_0011a4bc == 0) {
        iVar5 = FUN_001066a8(__fd,puVar3);
        if (iVar5 != 0) break;
      }
      else {
        uVar1 = if_nametoindex((char *)*puVar3);
        iVar5 = iVar4;
        if (uVar1 != 0) {
          iVar5 = iVar4 + 1;
          if (iVar4 != 0) {
            putc(0x20,stdout);
          }
          __printf_chk(1,"%s",*puVar3);
        }
      }
      puVar3 = puVar3 + 0xc;
      iVar4 = iVar5;
    } while (puVar3 < DAT_0011a498 + (long)DAT_0011a4a0 * 0xc);
    if ((DAT_0011a4bc != 0) && (iVar5 != 0)) {
      putc(10,stdout);
    }
  }
  else {
    iVar5 = 0;
  }
  close(__fd);
  return iVar5;
}

