
int udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)

{
  long lVar1;
  int iVar2;
  int iVar3;
  long in_FS_OFFSET;
  char ifr_buf [40];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  ifr_buf[0] = '\0';
  ifr_buf[1] = '\0';
  ifr_buf[2] = '\0';
  ifr_buf[3] = '\0';
  ifr_buf[4] = '\0';
  ifr_buf[5] = '\0';
  ifr_buf[6] = '\0';
  ifr_buf[7] = '\0';
  ifr_buf[8] = '\0';
  ifr_buf[9] = '\0';
  ifr_buf[10] = '\0';
  ifr_buf[0xb] = '\0';
  ifr_buf[0xc] = '\0';
  ifr_buf[0xd] = '\0';
  ifr_buf[0xe] = '\0';
  ifr_buf[0xf] = '\0';
  ifr_buf[0x10] = '\0';
  ifr_buf[0x11] = '\0';
  ifr_buf[0x12] = '\0';
  ifr_buf[0x13] = '\0';
  ifr_buf[0x14] = '\0';
  ifr_buf[0x15] = '\0';
  ifr_buf[0x16] = '\0';
  ifr_buf[0x17] = '\0';
  ifr_buf[0x18] = '\0';
  ifr_buf[0x19] = '\0';
  ifr_buf[0x1a] = '\0';
  ifr_buf[0x1b] = '\0';
  ifr_buf[0x1c] = '\0';
  ifr_buf[0x1d] = '\0';
  ifr_buf[0x1e] = '\0';
  ifr_buf[0x1f] = '\0';
  ifr_buf[0x20] = '\0';
  ifr_buf[0x21] = '\0';
  ifr_buf[0x22] = '\0';
  ifr_buf[0x23] = '\0';
  ifr_buf[0x24] = '\0';
  ifr_buf[0x25] = '\0';
  ifr_buf[0x26] = '\0';
  ifr_buf[0x27] = '\0';
  iVar2 = xsocket(2,3,0xff);
  ifr_buf[0x10] = '\x02';
  ifr_buf[0x11] = '\0';
  strncpy_IFNAMSIZ(ifr_buf,interface);
  if (nip != (uint32_t *)0x0) {
    iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);
    if (iVar3 != 0) {
      close(iVar2);
      iVar2 = -1;
      goto LAB_001428f3;
    }
    *nip = ifr_buf._20_4_;
  }
  if (ifindex != (int *)0x0) {
    iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");
    if (iVar3 != 0) {
      close(iVar2);
      iVar2 = -1;
      goto LAB_001428f3;
    }
    *ifindex = ifr_buf._16_4_;
  }
  if (mac != (uint8_t *)0x0) {
    iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");
    if (iVar3 != 0) {
      close(iVar2);
      iVar2 = -1;
      goto LAB_001428f3;
    }
    *(undefined4 *)mac = ifr_buf._18_4_;
    *(undefined2 *)(mac + 4) = ifr_buf._22_2_;
  }
  close(iVar2);
  iVar2 = 0;
LAB_001428f3:
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar2;
}



undefined8
FUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)

{
  int __fd;
  int iVar1;
  undefined8 uVar2;
  long in_FS_OFFSET;
  undefined8 local_68;
  undefined8 local_60;
  undefined8 local_58;
  undefined8 local_50;
  undefined8 local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_68 = 0;
  local_60 = 0;
  local_58 = 0;
  local_50 = 0;
  local_48 = 0;
  __fd = FUN_0010ec35(2,3,0xff);
  local_58 = CONCAT62(local_58._2_6_,2);
  FUN_0010df1f(&local_68,param_1);
  if (param_3 != (undefined4 *)0x0) {
    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);
    if (iVar1 != 0) {
      close(__fd);
      uVar2 = 0xffffffff;
      goto LAB_001428f3;
    }
    *param_3 = local_58._4_4_;
  }
  if (param_2 != (undefined4 *)0x0) {
    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");
    if (iVar1 != 0) {
      close(__fd);
      uVar2 = 0xffffffff;
      goto LAB_001428f3;
    }
    *param_2 = (undefined4)local_58;
  }
  if (param_4 != (undefined4 *)0x0) {
    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");
    if (iVar1 != 0) {
      close(__fd);
      uVar2 = 0xffffffff;
      goto LAB_001428f3;
    }
    *param_4 = local_58._2_4_;
    *(undefined2 *)(param_4 + 1) = local_58._6_2_;
  }
  close(__fd);
  uVar2 = 0;
LAB_001428f3:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar2;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x38
MOV R14,RDI
MOV R12,RSI
MOV R13,RDX
MOV RBP,RCX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
MOV R15,RSP
MOV qword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x0
MOV EDX,0xff
MOV ESI,0x3
MOV EDI,0x2
CALL 0x0010ec35
MOV EBX,EAX
MOV word ptr [RSP + 0x10],0x2
MOV RSI,R14
MOV RDI,R15
CALL 0x0010df1f
TEST R13,R13
JZ 0x00142914
MOV RDX,RSP
MOV R8,R14
LEA RCX,[0x1aba70]
MOV ESI,0x8915
MOV EDI,EBX
MOV EAX,0x0
CALL 0x0010edec
TEST EAX,EAX
JZ 0x0014290c
MOV EDI,EBX
CALL 0x0010b7d0
MOV EAX,0xffffffff
MOV RCX,qword ptr [RSP + 0x28]
XOR RCX,qword ptr FS:[0x28]
JZ 0x0014299a
CALL 0x0010b500
MOV EAX,dword ptr [RSP + 0x14]
MOV dword ptr [R13],EAX
TEST R12,R12
JZ 0x00142949
MOV RDX,RSP
LEA RCX,[0x1b8cfc]
MOV ESI,0x8933
MOV EDI,EBX
CALL 0x0010eebd
TEST EAX,EAX
JZ 0x00142941
MOV EDI,EBX
CALL 0x0010b7d0
MOV EAX,0xffffffff
JMP 0x001428f3
MOV EAX,dword ptr [RSP + 0x10]
MOV dword ptr [R12],EAX
TEST RBP,RBP
JZ 0x00142989
MOV RDX,RSP
LEA RCX,[0x1baf3d]
MOV ESI,0x8927
MOV EDI,EBX
CALL 0x0010eebd
TEST EAX,EAX
JZ 0x00142979
MOV EDI,EBX
CALL 0x0010b7d0
MOV EAX,0xffffffff
JMP 0x001428f3
MOV EAX,dword ptr [RSP + 0x12]
MOV dword ptr [RBP],EAX
MOVZX EAX,word ptr [RSP + 0x16]
MOV word ptr [RBP + 0x4],AX
MOV EDI,EBX
CALL 0x0010b7d0
MOV EAX,0x0
JMP 0x001428f3
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "undefined8\nFUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8\nFUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar2;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_60;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_68 = 0;" (assignment_expression "local_68 = 0" identifier = number_literal) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "__fd = FUN_0010ec35(2,3,0xff);" (assignment_expression "__fd = FUN_0010ec35(2,3,0xff)" identifier = (call_expression "FUN_0010ec35(2,3,0xff)" identifier (argument_list "(2,3,0xff)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "local_58 = CONCAT62(local_58._2_6_,2);" (assignment_expression "local_58 = CONCAT62(local_58._2_6_,2)" identifier = (call_expression "CONCAT62(local_58._2_6_,2)" identifier (argument_list "(local_58._2_6_,2)" ( (field_expression "local_58._2_6_" identifier . field_identifier) , number_literal )))) ;) (expression_statement "FUN_0010df1f(&local_68,param_1);" (call_expression "FUN_0010df1f(&local_68,param_1)" identifier (argument_list "(&local_68,param_1)" ( (pointer_expression "&local_68" & identifier) , identifier ))) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }" { (expression_statement "iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);" (assignment_expression "iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" identifier = (call_expression "FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" identifier (argument_list "(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" ( identifier , number_literal , (pointer_expression "&local_68" & identifier) , (string_literal ""is interface %s up and configured?"" " string_content ") , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*param_3 = local_58._4_4_;" (assignment_expression "*param_3 = local_58._4_4_" (pointer_expression "*param_3" * identifier) = (field_expression "local_58._4_4_" identifier . field_identifier)) ;) })) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }" { (expression_statement "iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");" (assignment_expression "iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX")" identifier = (call_expression "FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX")" identifier (argument_list "(__fd,0x8933,&local_68,"SIOCGIFINDEX")" ( identifier , number_literal , (pointer_expression "&local_68" & identifier) , (string_literal ""SIOCGIFINDEX"" " string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*param_2 = (undefined4)local_58;" (assignment_expression "*param_2 = (undefined4)local_58" (pointer_expression "*param_2" * identifier) = (cast_expression "(undefined4)local_58" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) })) (if_statement "if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }" { (expression_statement "iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");" (assignment_expression "iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" identifier = (call_expression "FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" identifier (argument_list "(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" ( identifier , number_literal , (pointer_expression "&local_68" & identifier) , (string_literal ""SIOCGIFHWADDR"" " string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*param_4 = local_58._2_4_;" (assignment_expression "*param_4 = local_58._2_4_" (pointer_expression "*param_4" * identifier) = (field_expression "local_58._2_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined2 *)(param_4 + 1) = local_58._6_2_;" (assignment_expression "*(undefined2 *)(param_4 + 1) = local_58._6_2_" (pointer_expression "*(undefined2 *)(param_4 + 1)" * (cast_expression "(undefined2 *)(param_4 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = (field_expression "local_58._6_2_" identifier . field_identifier)) ;) })) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  char ifr_buf [40];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  ifr_buf[0] = '\0';\n  ifr_buf[1] = '\0';\n  ifr_buf[2] = '\0';\n  ifr_buf[3] = '\0';\n  ifr_buf[4] = '\0';\n  ifr_buf[5] = '\0';\n  ifr_buf[6] = '\0';\n  ifr_buf[7] = '\0';\n  ifr_buf[8] = '\0';\n  ifr_buf[9] = '\0';\n  ifr_buf[10] = '\0';\n  ifr_buf[0xb] = '\0';\n  ifr_buf[0xc] = '\0';\n  ifr_buf[0xd] = '\0';\n  ifr_buf[0xe] = '\0';\n  ifr_buf[0xf] = '\0';\n  ifr_buf[0x10] = '\0';\n  ifr_buf[0x11] = '\0';\n  ifr_buf[0x12] = '\0';\n  ifr_buf[0x13] = '\0';\n  ifr_buf[0x14] = '\0';\n  ifr_buf[0x15] = '\0';\n  ifr_buf[0x16] = '\0';\n  ifr_buf[0x17] = '\0';\n  ifr_buf[0x18] = '\0';\n  ifr_buf[0x19] = '\0';\n  ifr_buf[0x1a] = '\0';\n  ifr_buf[0x1b] = '\0';\n  ifr_buf[0x1c] = '\0';\n  ifr_buf[0x1d] = '\0';\n  ifr_buf[0x1e] = '\0';\n  ifr_buf[0x1f] = '\0';\n  ifr_buf[0x20] = '\0';\n  ifr_buf[0x21] = '\0';\n  ifr_buf[0x22] = '\0';\n  ifr_buf[0x23] = '\0';\n  ifr_buf[0x24] = '\0';\n  ifr_buf[0x25] = '\0';\n  ifr_buf[0x26] = '\0';\n  ifr_buf[0x27] = '\0';\n  iVar2 = xsocket(2,3,0xff);\n  ifr_buf[0x10] = '\x02';\n  ifr_buf[0x11] = '\0';\n  strncpy_IFNAMSIZ(ifr_buf,interface);\n  if (nip != (uint32_t *)0x0) {\n    iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *nip = ifr_buf._20_4_;\n  }\n  if (ifindex != (int *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *ifindex = ifr_buf._16_4_;\n  }\n  if (mac != (uint8_t *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *(undefined4 *)mac = ifr_buf._18_4_;\n    *(undefined2 *)(mac + 4) = ifr_buf._22_2_;\n  }\n  close(iVar2);\n  iVar2 = 0;\nLAB_001428f3:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar2;\n}\n\n" (function_definition "int udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  char ifr_buf [40];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  ifr_buf[0] = '\0';\n  ifr_buf[1] = '\0';\n  ifr_buf[2] = '\0';\n  ifr_buf[3] = '\0';\n  ifr_buf[4] = '\0';\n  ifr_buf[5] = '\0';\n  ifr_buf[6] = '\0';\n  ifr_buf[7] = '\0';\n  ifr_buf[8] = '\0';\n  ifr_buf[9] = '\0';\n  ifr_buf[10] = '\0';\n  ifr_buf[0xb] = '\0';\n  ifr_buf[0xc] = '\0';\n  ifr_buf[0xd] = '\0';\n  ifr_buf[0xe] = '\0';\n  ifr_buf[0xf] = '\0';\n  ifr_buf[0x10] = '\0';\n  ifr_buf[0x11] = '\0';\n  ifr_buf[0x12] = '\0';\n  ifr_buf[0x13] = '\0';\n  ifr_buf[0x14] = '\0';\n  ifr_buf[0x15] = '\0';\n  ifr_buf[0x16] = '\0';\n  ifr_buf[0x17] = '\0';\n  ifr_buf[0x18] = '\0';\n  ifr_buf[0x19] = '\0';\n  ifr_buf[0x1a] = '\0';\n  ifr_buf[0x1b] = '\0';\n  ifr_buf[0x1c] = '\0';\n  ifr_buf[0x1d] = '\0';\n  ifr_buf[0x1e] = '\0';\n  ifr_buf[0x1f] = '\0';\n  ifr_buf[0x20] = '\0';\n  ifr_buf[0x21] = '\0';\n  ifr_buf[0x22] = '\0';\n  ifr_buf[0x23] = '\0';\n  ifr_buf[0x24] = '\0';\n  ifr_buf[0x25] = '\0';\n  ifr_buf[0x26] = '\0';\n  ifr_buf[0x27] = '\0';\n  iVar2 = xsocket(2,3,0xff);\n  ifr_buf[0x10] = '\x02';\n  ifr_buf[0x11] = '\0';\n  strncpy_IFNAMSIZ(ifr_buf,interface);\n  if (nip != (uint32_t *)0x0) {\n    iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *nip = ifr_buf._20_4_;\n  }\n  if (ifindex != (int *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *ifindex = ifr_buf._16_4_;\n  }\n  if (mac != (uint8_t *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *(undefined4 *)mac = ifr_buf._18_4_;\n    *(undefined2 *)(mac + 4) = ifr_buf._22_2_;\n  }\n  close(iVar2);\n  iVar2 = 0;\nLAB_001428f3:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)" identifier (parameter_list "(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)" ( (parameter_declaration "char *interface" primitive_type (pointer_declarator "*interface" * identifier)) , (parameter_declaration "int *ifindex" primitive_type (pointer_declarator "*ifindex" * identifier)) , (parameter_declaration "uint32_t *nip" primitive_type (pointer_declarator "*nip" * identifier)) , (parameter_declaration "uint8_t *mac" primitive_type (pointer_declarator "*mac" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  char ifr_buf [40];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  ifr_buf[0] = '\0';\n  ifr_buf[1] = '\0';\n  ifr_buf[2] = '\0';\n  ifr_buf[3] = '\0';\n  ifr_buf[4] = '\0';\n  ifr_buf[5] = '\0';\n  ifr_buf[6] = '\0';\n  ifr_buf[7] = '\0';\n  ifr_buf[8] = '\0';\n  ifr_buf[9] = '\0';\n  ifr_buf[10] = '\0';\n  ifr_buf[0xb] = '\0';\n  ifr_buf[0xc] = '\0';\n  ifr_buf[0xd] = '\0';\n  ifr_buf[0xe] = '\0';\n  ifr_buf[0xf] = '\0';\n  ifr_buf[0x10] = '\0';\n  ifr_buf[0x11] = '\0';\n  ifr_buf[0x12] = '\0';\n  ifr_buf[0x13] = '\0';\n  ifr_buf[0x14] = '\0';\n  ifr_buf[0x15] = '\0';\n  ifr_buf[0x16] = '\0';\n  ifr_buf[0x17] = '\0';\n  ifr_buf[0x18] = '\0';\n  ifr_buf[0x19] = '\0';\n  ifr_buf[0x1a] = '\0';\n  ifr_buf[0x1b] = '\0';\n  ifr_buf[0x1c] = '\0';\n  ifr_buf[0x1d] = '\0';\n  ifr_buf[0x1e] = '\0';\n  ifr_buf[0x1f] = '\0';\n  ifr_buf[0x20] = '\0';\n  ifr_buf[0x21] = '\0';\n  ifr_buf[0x22] = '\0';\n  ifr_buf[0x23] = '\0';\n  ifr_buf[0x24] = '\0';\n  ifr_buf[0x25] = '\0';\n  ifr_buf[0x26] = '\0';\n  ifr_buf[0x27] = '\0';\n  iVar2 = xsocket(2,3,0xff);\n  ifr_buf[0x10] = '\x02';\n  ifr_buf[0x11] = '\0';\n  strncpy_IFNAMSIZ(ifr_buf,interface);\n  if (nip != (uint32_t *)0x0) {\n    iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *nip = ifr_buf._20_4_;\n  }\n  if (ifindex != (int *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *ifindex = ifr_buf._16_4_;\n  }\n  if (mac != (uint8_t *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *(undefined4 *)mac = ifr_buf._18_4_;\n    *(undefined2 *)(mac + 4) = ifr_buf._22_2_;\n  }\n  close(iVar2);\n  iVar2 = 0;\nLAB_001428f3:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char ifr_buf [40];" primitive_type (array_declarator "ifr_buf [40]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "ifr_buf[0] = '\0';" (assignment_expression "ifr_buf[0] = '\0'" (subscript_expression "ifr_buf[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[1] = '\0';" (assignment_expression "ifr_buf[1] = '\0'" (subscript_expression "ifr_buf[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[2] = '\0';" (assignment_expression "ifr_buf[2] = '\0'" (subscript_expression "ifr_buf[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[3] = '\0';" (assignment_expression "ifr_buf[3] = '\0'" (subscript_expression "ifr_buf[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[4] = '\0';" (assignment_expression "ifr_buf[4] = '\0'" (subscript_expression "ifr_buf[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[5] = '\0';" (assignment_expression "ifr_buf[5] = '\0'" (subscript_expression "ifr_buf[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[6] = '\0';" (assignment_expression "ifr_buf[6] = '\0'" (subscript_expression "ifr_buf[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[7] = '\0';" (assignment_expression "ifr_buf[7] = '\0'" (subscript_expression "ifr_buf[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[8] = '\0';" (assignment_expression "ifr_buf[8] = '\0'" (subscript_expression "ifr_buf[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[9] = '\0';" (assignment_expression "ifr_buf[9] = '\0'" (subscript_expression "ifr_buf[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[10] = '\0';" (assignment_expression "ifr_buf[10] = '\0'" (subscript_expression "ifr_buf[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0xb] = '\0';" (assignment_expression "ifr_buf[0xb] = '\0'" (subscript_expression "ifr_buf[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0xc] = '\0';" (assignment_expression "ifr_buf[0xc] = '\0'" (subscript_expression "ifr_buf[0xc]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0xd] = '\0';" (assignment_expression "ifr_buf[0xd] = '\0'" (subscript_expression "ifr_buf[0xd]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0xe] = '\0';" (assignment_expression "ifr_buf[0xe] = '\0'" (subscript_expression "ifr_buf[0xe]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0xf] = '\0';" (assignment_expression "ifr_buf[0xf] = '\0'" (subscript_expression "ifr_buf[0xf]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x10] = '\0';" (assignment_expression "ifr_buf[0x10] = '\0'" (subscript_expression "ifr_buf[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x11] = '\0';" (assignment_expression "ifr_buf[0x11] = '\0'" (subscript_expression "ifr_buf[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x12] = '\0';" (assignment_expression "ifr_buf[0x12] = '\0'" (subscript_expression "ifr_buf[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x13] = '\0';" (assignment_expression "ifr_buf[0x13] = '\0'" (subscript_expression "ifr_buf[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x14] = '\0';" (assignment_expression "ifr_buf[0x14] = '\0'" (subscript_expression "ifr_buf[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x15] = '\0';" (assignment_expression "ifr_buf[0x15] = '\0'" (subscript_expression "ifr_buf[0x15]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x16] = '\0';" (assignment_expression "ifr_buf[0x16] = '\0'" (subscript_expression "ifr_buf[0x16]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x17] = '\0';" (assignment_expression "ifr_buf[0x17] = '\0'" (subscript_expression "ifr_buf[0x17]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x18] = '\0';" (assignment_expression "ifr_buf[0x18] = '\0'" (subscript_expression "ifr_buf[0x18]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x19] = '\0';" (assignment_expression "ifr_buf[0x19] = '\0'" (subscript_expression "ifr_buf[0x19]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x1a] = '\0';" (assignment_expression "ifr_buf[0x1a] = '\0'" (subscript_expression "ifr_buf[0x1a]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x1b] = '\0';" (assignment_expression "ifr_buf[0x1b] = '\0'" (subscript_expression "ifr_buf[0x1b]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x1c] = '\0';" (assignment_expression "ifr_buf[0x1c] = '\0'" (subscript_expression "ifr_buf[0x1c]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x1d] = '\0';" (assignment_expression "ifr_buf[0x1d] = '\0'" (subscript_expression "ifr_buf[0x1d]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x1e] = '\0';" (assignment_expression "ifr_buf[0x1e] = '\0'" (subscript_expression "ifr_buf[0x1e]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x1f] = '\0';" (assignment_expression "ifr_buf[0x1f] = '\0'" (subscript_expression "ifr_buf[0x1f]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x20] = '\0';" (assignment_expression "ifr_buf[0x20] = '\0'" (subscript_expression "ifr_buf[0x20]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x21] = '\0';" (assignment_expression "ifr_buf[0x21] = '\0'" (subscript_expression "ifr_buf[0x21]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x22] = '\0';" (assignment_expression "ifr_buf[0x22] = '\0'" (subscript_expression "ifr_buf[0x22]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x23] = '\0';" (assignment_expression "ifr_buf[0x23] = '\0'" (subscript_expression "ifr_buf[0x23]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x24] = '\0';" (assignment_expression "ifr_buf[0x24] = '\0'" (subscript_expression "ifr_buf[0x24]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x25] = '\0';" (assignment_expression "ifr_buf[0x25] = '\0'" (subscript_expression "ifr_buf[0x25]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x26] = '\0';" (assignment_expression "ifr_buf[0x26] = '\0'" (subscript_expression "ifr_buf[0x26]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x27] = '\0';" (assignment_expression "ifr_buf[0x27] = '\0'" (subscript_expression "ifr_buf[0x27]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = xsocket(2,3,0xff);" (assignment_expression "iVar2 = xsocket(2,3,0xff)" identifier = (call_expression "xsocket(2,3,0xff)" identifier (argument_list "(2,3,0xff)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "ifr_buf[0x10] = '\x02';" (assignment_expression "ifr_buf[0x10] = '\x02'" (subscript_expression "ifr_buf[0x10]" identifier [ number_literal ]) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "ifr_buf[0x11] = '\0';" (assignment_expression "ifr_buf[0x11] = '\0'" (subscript_expression "ifr_buf[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "strncpy_IFNAMSIZ(ifr_buf,interface);" (call_expression "strncpy_IFNAMSIZ(ifr_buf,interface)" identifier (argument_list "(ifr_buf,interface)" ( identifier , identifier ))) ;) (if_statement "if (nip != (uint32_t *)0x0) {\n    iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *nip = ifr_buf._20_4_;\n  }" if (parenthesized_expression "(nip != (uint32_t *)0x0)" ( (binary_expression "nip != (uint32_t *)0x0" identifier != (cast_expression "(uint32_t *)0x0" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *nip = ifr_buf._20_4_;\n  }" { (expression_statement "iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);" (assignment_expression "iVar3 = ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface)" identifier = (call_expression "ioctl_or_perror(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface)" identifier (argument_list "(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface)" ( identifier , number_literal , identifier , (string_literal ""is interface %s up and configured?"" " string_content ") , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*nip = ifr_buf._20_4_;" (assignment_expression "*nip = ifr_buf._20_4_" (pointer_expression "*nip" * identifier) = (field_expression "ifr_buf._20_4_" identifier . field_identifier)) ;) })) (if_statement "if (ifindex != (int *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *ifindex = ifr_buf._16_4_;\n  }" if (parenthesized_expression "(ifindex != (int *)0x0)" ( (binary_expression "ifindex != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *ifindex = ifr_buf._16_4_;\n  }" { (expression_statement "iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");" (assignment_expression "iVar3 = bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX")" identifier = (call_expression "bb_ioctl_or_warn(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX")" identifier (argument_list "(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX")" ( identifier , number_literal , identifier , (string_literal ""SIOCGIFINDEX"" " string_content ") )))) ;) (if_statement "if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*ifindex = ifr_buf._16_4_;" (assignment_expression "*ifindex = ifr_buf._16_4_" (pointer_expression "*ifindex" * identifier) = (field_expression "ifr_buf._16_4_" identifier . field_identifier)) ;) })) (if_statement "if (mac != (uint8_t *)0x0) {\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *(undefined4 *)mac = ifr_buf._18_4_;\n    *(undefined2 *)(mac + 4) = ifr_buf._22_2_;\n  }" if (parenthesized_expression "(mac != (uint8_t *)0x0)" ( (binary_expression "mac != (uint8_t *)0x0" identifier != (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");\n    if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }\n    *(undefined4 *)mac = ifr_buf._18_4_;\n    *(undefined2 *)(mac + 4) = ifr_buf._22_2_;\n  }" { (expression_statement "iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");" (assignment_expression "iVar3 = bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR")" identifier = (call_expression "bb_ioctl_or_warn(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR")" identifier (argument_list "(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR")" ( identifier , number_literal , identifier , (string_literal ""SIOCGIFHWADDR"" " string_content ") )))) ;) (if_statement "if (iVar3 != 0) {\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      close(iVar2);\n      iVar2 = -1;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*(undefined4 *)mac = ifr_buf._18_4_;" (assignment_expression "*(undefined4 *)mac = ifr_buf._18_4_" (pointer_expression "*(undefined4 *)mac" * (cast_expression "(undefined4 *)mac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (field_expression "ifr_buf._18_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined2 *)(mac + 4) = ifr_buf._22_2_;" (assignment_expression "*(undefined2 *)(mac + 4) = ifr_buf._22_2_" (pointer_expression "*(undefined2 *)(mac + 4)" * (cast_expression "(undefined2 *)(mac + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(mac + 4)" ( (binary_expression "mac + 4" identifier + number_literal) )))) = (field_expression "ifr_buf._22_2_" identifier . field_identifier)) ;) })) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001428f3:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined8\nFUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8\nFUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar2;\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_60;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_68 = 0;" (assignment_expression "local_68 = 0" identifier = number_literal) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "__fd = FUN_0010ec35(2,3,0xff);" (assignment_expression "__fd = FUN_0010ec35(2,3,0xff)" identifier = (call_expression "FUN_0010ec35(2,3,0xff)" identifier (argument_list "(2,3,0xff)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "local_58 = CONCAT62(local_58._2_6_,2);" (assignment_expression "local_58 = CONCAT62(local_58._2_6_,2)" identifier = (call_expression "CONCAT62(local_58._2_6_,2)" identifier (argument_list "(local_58._2_6_,2)" ( (field_expression "local_58._2_6_" identifier . field_identifier) , number_literal )))) ;) (expression_statement "FUN_0010df1f(&local_68,param_1);" (call_expression "FUN_0010df1f(&local_68,param_1)" identifier (argument_list "(&local_68,param_1)" ( (pointer_expression "&local_68" & identifier) , identifier ))) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }" { (expression_statement "iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);" (assignment_expression "iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" identifier = (call_expression "FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" identifier (argument_list "(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" ( identifier , number_literal , (pointer_expression "&local_68" & identifier) , (string_literal ""is interface %s up and configured?"" " string_content ") , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*param_3 = local_58._4_4_;" (assignment_expression "*param_3 = local_58._4_4_" (pointer_expression "*param_3" * identifier) = (field_expression "local_58._4_4_" identifier . field_identifier)) ;) })) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }" { (expression_statement "iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");" (assignment_expression "iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX")" identifier = (call_expression "FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX")" identifier (argument_list "(__fd,0x8933,&local_68,"SIOCGIFINDEX")" ( identifier , number_literal , (pointer_expression "&local_68" & identifier) , (string_literal ""SIOCGIFINDEX"" " string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*param_2 = (undefined4)local_58;" (assignment_expression "*param_2 = (undefined4)local_58" (pointer_expression "*param_2" * identifier) = (cast_expression "(undefined4)local_58" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) })) (if_statement "if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }" { (expression_statement "iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");" (assignment_expression "iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" identifier = (call_expression "FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" identifier (argument_list "(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" ( identifier , number_literal , (pointer_expression "&local_68" & identifier) , (string_literal ""SIOCGIFHWADDR"" " string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" { (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_001428f3;" goto statement_identifier ;) })) (expression_statement "*param_4 = local_58._2_4_;" (assignment_expression "*param_4 = local_58._2_4_" (pointer_expression "*param_4" * identifier) = (field_expression "local_58._2_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined2 *)(param_4 + 1) = local_58._6_2_;" (assignment_expression "*(undefined2 *)(param_4 + 1) = local_58._6_2_" (pointer_expression "*(undefined2 *)(param_4 + 1)" * (cast_expression "(undefined2 *)(param_4 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = (field_expression "local_58._6_2_" identifier . field_identifier)) ;) })) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (field_expression IDENT . field_identifier) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , (string_literal " string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (field_expression IDENT . field_identifier)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (field_expression IDENT . field_identifier)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined8\nFUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "FUN_0014283f(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "FUN_0014283f") (parameter_list "(undefined8 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 local_60;\n  undefined8 local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = 0;\n  local_60 = 0;\n  local_58 = 0;\n  local_50 = 0;\n  local_48 = 0;\n  __fd = FUN_0010ec35(2,3,0xff);\n  local_58 = CONCAT62(local_58._2_6_,2);\n  FUN_0010df1f(&local_68,param_1);\n  if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }\n  if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }\n  if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }\n  close(__fd);\n  uVar2 = 0;\nLAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar2;\n}" ({ "{") (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "undefined8 local_60;" (type_identifier "undefined8") (identifier "local_60") (; ";")) (declaration "undefined8 local_58;" (type_identifier "undefined8") (identifier "local_58") (; ";")) (declaration "undefined8 local_50;" (type_identifier "undefined8") (identifier "local_50") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_68 = 0;" (assignment_expression "local_68 = 0" (identifier "local_68") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" (identifier "local_60") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "__fd = FUN_0010ec35(2,3,0xff);" (assignment_expression "__fd = FUN_0010ec35(2,3,0xff)" (identifier "__fd") (= "=") (call_expression "FUN_0010ec35(2,3,0xff)" (identifier "FUN_0010ec35") (argument_list "(2,3,0xff)" (( "(") (number_literal "2") (, ",") (number_literal "3") (, ",") (number_literal "0xff") () ")")))) (; ";")) (expression_statement "local_58 = CONCAT62(local_58._2_6_,2);" (assignment_expression "local_58 = CONCAT62(local_58._2_6_,2)" (identifier "local_58") (= "=") (call_expression "CONCAT62(local_58._2_6_,2)" (identifier "CONCAT62") (argument_list "(local_58._2_6_,2)" (( "(") (field_expression "local_58._2_6_" (identifier "local_58") (. ".") (field_identifier "_2_6_")) (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "FUN_0010df1f(&local_68,param_1);" (call_expression "FUN_0010df1f(&local_68,param_1)" (identifier "FUN_0010df1f") (argument_list "(&local_68,param_1)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (param_3 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_3 = local_58._4_4_;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);" (assignment_expression "iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" (identifier "FUN_0010edec") (argument_list "(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1)" (( "(") (identifier "__fd") (, ",") (number_literal "0x8915") (, ",") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (string_literal ""is interface %s up and configured?"" (" """) (string_content "is interface %s up and configured?") (" """)) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" ({ "{") (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_001428f3;" (goto "goto") (statement_identifier "LAB_001428f3") (; ";")) (} "}"))) (expression_statement "*param_3 = local_58._4_4_;" (assignment_expression "*param_3 = local_58._4_4_" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (field_expression "local_58._4_4_" (identifier "local_58") (. ".") (field_identifier "_4_4_"))) (; ";")) (} "}"))) (if_statement "if (param_2 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }" (if "if") (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_2 = (undefined4)local_58;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");" (assignment_expression "iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX")" (identifier "iVar1") (= "=") (call_expression "FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX")" (identifier "FUN_0010eebd") (argument_list "(__fd,0x8933,&local_68,"SIOCGIFINDEX")" (( "(") (identifier "__fd") (, ",") (number_literal "0x8933") (, ",") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (string_literal ""SIOCGIFINDEX"" (" """) (string_content "SIOCGIFINDEX") (" """)) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" ({ "{") (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_001428f3;" (goto "goto") (statement_identifier "LAB_001428f3") (; ";")) (} "}"))) (expression_statement "*param_2 = (undefined4)local_58;" (assignment_expression "*param_2 = (undefined4)local_58" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(undefined4)local_58" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "local_58"))) (; ";")) (} "}"))) (if_statement "if (param_4 != (undefined4 *)0x0) {\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }" (if "if") (parenthesized_expression "(param_4 != (undefined4 *)0x0)" (( "(") (binary_expression "param_4 != (undefined4 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");\n    if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }\n    *param_4 = local_58._2_4_;\n    *(undefined2 *)(param_4 + 1) = local_58._6_2_;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");" (assignment_expression "iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" (identifier "iVar1") (= "=") (call_expression "FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" (identifier "FUN_0010eebd") (argument_list "(__fd,0x8927,&local_68,"SIOCGIFHWADDR")" (( "(") (identifier "__fd") (, ",") (number_literal "0x8927") (, ",") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (string_literal ""SIOCGIFHWADDR"" (" """) (string_content "SIOCGIFHWADDR") (" """)) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      close(__fd);\n      uVar2 = 0xffffffff;\n      goto LAB_001428f3;\n    }" ({ "{") (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_001428f3;" (goto "goto") (statement_identifier "LAB_001428f3") (; ";")) (} "}"))) (expression_statement "*param_4 = local_58._2_4_;" (assignment_expression "*param_4 = local_58._2_4_" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (field_expression "local_58._2_4_" (identifier "local_58") (. ".") (field_identifier "_2_4_"))) (; ";")) (expression_statement "*(undefined2 *)(param_4 + 1) = local_58._6_2_;" (assignment_expression "*(undefined2 *)(param_4 + 1) = local_58._6_2_" (pointer_expression "*(undefined2 *)(param_4 + 1)" (* "*") (cast_expression "(undefined2 *)(param_4 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 1)" (( "(") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1")) () ")")))) (= "=") (field_expression "local_58._6_2_" (identifier "local_58") (. ".") (field_identifier "_6_2_"))) (; ";")) (} "}"))) (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_001428f3:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_001428f3") (: ":") (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(char *interface,int *var_8,uint32_t *var_4,uint8_t *var_10)

{
  long var_11;
  int iVar2;
  int var_6;
  long var_1;
  char ifr_buf [40];
  
  var_11 = *(long *)(var_1 + 0x28);
  ifr_buf[0] = '\0';
  ifr_buf[1] = '\0';
  ifr_buf[2] = '\0';
  ifr_buf[3] = '\0';
  ifr_buf[4] = '\0';
  ifr_buf[5] = '\0';
  ifr_buf[6] = '\0';
  ifr_buf[7] = '\0';
  ifr_buf[8] = '\0';
  ifr_buf[9] = '\0';
  ifr_buf[10] = '\0';
  ifr_buf[0xb] = '\0';
  ifr_buf[0xc] = '\0';
  ifr_buf[0xd] = '\0';
  ifr_buf[0xe] = '\0';
  ifr_buf[0xf] = '\0';
  ifr_buf[0x10] = '\0';
  ifr_buf[0x11] = '\0';
  ifr_buf[0x12] = '\0';
  ifr_buf[0x13] = '\0';
  ifr_buf[0x14] = '\0';
  ifr_buf[0x15] = '\0';
  ifr_buf[0x16] = '\0';
  ifr_buf[0x17] = '\0';
  ifr_buf[0x18] = '\0';
  ifr_buf[0x19] = '\0';
  ifr_buf[0x1a] = '\0';
  ifr_buf[0x1b] = '\0';
  ifr_buf[0x1c] = '\0';
  ifr_buf[0x1d] = '\0';
  ifr_buf[0x1e] = '\0';
  ifr_buf[0x1f] = '\0';
  ifr_buf[0x20] = '\0';
  ifr_buf[0x21] = '\0';
  ifr_buf[0x22] = '\0';
  ifr_buf[0x23] = '\0';
  ifr_buf[0x24] = '\0';
  ifr_buf[0x25] = '\0';
  ifr_buf[0x26] = '\0';
  ifr_buf[0x27] = '\0';
  iVar2 = var_2(2,3,0xff);
  ifr_buf[0x10] = '\x02';
  ifr_buf[0x11] = '\0';
  var_3(ifr_buf,interface);
  if (var_4 != (uint32_t *)0x0) {
    var_6 = var_5(iVar2,0x8915,ifr_buf,"is interface %s up and configured?",interface);
    if (var_6 != 0) {
      var_7(iVar2);
      iVar2 = -1;
      goto LAB_001428f3;
    }
    *var_4 = ifr_buf._20_4_;
  }
  if (var_8 != (int *)0x0) {
    var_6 = var_9(iVar2,0x8933,ifr_buf,"SIOCGIFINDEX");
    if (var_6 != 0) {
      var_7(iVar2);
      iVar2 = -1;
      goto LAB_001428f3;
    }
    *var_8 = ifr_buf._16_4_;
  }
  if (var_10 != (uint8_t *)0x0) {
    var_6 = var_9(iVar2,0x8927,ifr_buf,"SIOCGIFHWADDR");
    if (var_6 != 0) {
      var_7(iVar2);
      iVar2 = -1;
      goto LAB_001428f3;
    }
    *(type_1 *)var_10 = ifr_buf._18_4_;
    *(type_2 *)(var_10 + 4) = ifr_buf._22_2_;
  }
  var_7(iVar2);
  iVar2 = 0;
LAB_001428f3:
  if (var_11 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  return iVar2;
}


(translation_unit (function_definition type: (type_identifier) 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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (field_expression argument: (identifier) field: (field_identifier)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

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

{
  int __fd;
  int iVar1;
  undefined8 uVar2;
  long in_FS_OFFSET;
  undefined8 local_68;
  undefined8 local_60;
  undefined8 local_58;
  undefined8 local_50;
  undefined8 local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_68 = 0;
  local_60 = 0;
  local_58 = 0;
  local_50 = 0;
  local_48 = 0;
  __fd = FUN_0010ec35(2,3,0xff);
  local_58 = CONCAT62(local_58._2_6_,2);
  FUN_0010df1f(&local_68,param_1);
  if (param_3 != (undefined4 *)0x0) {
    iVar1 = FUN_0010edec(__fd,0x8915,&local_68,"is interface %s up and configured?",param_1);
    if (iVar1 != 0) {
      close(__fd);
      uVar2 = 0xffffffff;
      goto LAB_001428f3;
    }
    *param_3 = local_58._4_4_;
  }
  if (param_2 != (undefined4 *)0x0) {
    iVar1 = FUN_0010eebd(__fd,0x8933,&local_68,"SIOCGIFINDEX");
    if (iVar1 != 0) {
      close(__fd);
      uVar2 = 0xffffffff;
      goto LAB_001428f3;
    }
    *param_2 = (undefined4)local_58;
  }
  if (param_4 != (undefined4 *)0x0) {
    iVar1 = FUN_0010eebd(__fd,0x8927,&local_68,"SIOCGIFHWADDR");
    if (iVar1 != 0) {
      close(__fd);
      uVar2 = 0xffffffff;
      goto LAB_001428f3;
    }
    *param_4 = local_58._2_4_;
    *(undefined2 *)(param_4 + 1) = local_58._6_2_;
  }
  close(__fd);
  uVar2 = 0;
LAB_001428f3:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar2;
}

