#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct ifreq {
  int dummy;
};
typedef int __u32;

/* Variables and functions */
int IFF_ALLMULTI;
int IFF_DYNAMIC;
int IFF_MULTICAST;
int IFF_NOARP;
int IFF_NOTRAILERS;
int IFF_PROMISC;
int IFF_UP;
int /*<<< orphan*/ NEXT_ARG();
scalar_t__ do_changename(char *, char *);
int do_chflags(char *, int, int);
int /*<<< orphan*/ duparg(char *, char *);
int /*<<< orphan*/ duparg2(char *, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int get_address(char *, int *);
scalar_t__ get_integer(int *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ invarg(char *, char *);
scalar_t__ matches(char *, char *);
int on_off(char *, char *);
scalar_t__ parse_address(char *, int, int, char *, struct ifreq *);
scalar_t__ set_address(struct ifreq *, int);
scalar_t__ set_mtu(char *, int);
scalar_t__ set_qlen(char *, int);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ usage();
int do_set(int argc, char **argv) {
  char *dev = NULL;
  __u32 mask = 0;
  __u32 flags = 0;
  int qlen = -1;
  int mtu = -1;
  char *newaddr = NULL;
  char *newbrd = NULL;
  struct ifreq ifr0, ifr1;
  char *newname = NULL;
  int htype, halen;
  while (argc > 0) {
    if (strcmp(*argv, "up") == 0) {
      mask |= IFF_UP;
      flags |= IFF_UP;
    } else if (strcmp(*argv, "down") == 0) {
      mask |= IFF_UP;
      flags &= ~IFF_UP;
    } else if (strcmp(*argv, "name") == 0) {
      NEXT_ARG();
      newname = *argv;
    } else if (matches(*argv, "address") == 0) {
      NEXT_ARG();
      newaddr = *argv;
    } else if (matches(*argv, "broadcast") == 0 || strcmp(*argv, "brd") == 0) {
      NEXT_ARG();
      newbrd = *argv;
    } else if (matches(*argv, "txqueuelen") == 0 ||
               strcmp(*argv, "qlen") == 0 || matches(*argv, "txqlen") == 0) {
      NEXT_ARG();
      if (qlen != -1)
        duparg("txqueuelen", *argv);
      if (get_integer(&qlen, *argv, 0))
        invarg("Invalid \"txqueuelen\" value\n", *argv);
    } else if (strcmp(*argv, "mtu") == 0) {
      NEXT_ARG();
      if (mtu != -1)
        duparg("mtu", *argv);
      if (get_integer(&mtu, *argv, 0))
        invarg("Invalid \"mtu\" value\n", *argv);
    } else if (strcmp(*argv, "multicast") == 0) {
      NEXT_ARG();
      mask |= IFF_MULTICAST;
      if (strcmp(*argv, "on") == 0) {
        flags |= IFF_MULTICAST;
      } else if (strcmp(*argv, "off") == 0) {
        flags &= ~IFF_MULTICAST;
      } else
        return on_off("multicast", *argv);
    } else if (strcmp(*argv, "allmulticast") == 0) {
      NEXT_ARG();
      mask |= IFF_ALLMULTI;
      if (strcmp(*argv, "on") == 0) {
        flags |= IFF_ALLMULTI;
      } else if (strcmp(*argv, "off") == 0) {
        flags &= ~IFF_ALLMULTI;
      } else
        return on_off("allmulticast", *argv);
    } else if (strcmp(*argv, "promisc") == 0) {
      NEXT_ARG();
      mask |= IFF_PROMISC;
      if (strcmp(*argv, "on") == 0) {
        flags |= IFF_PROMISC;
      } else if (strcmp(*argv, "off") == 0) {
        flags &= ~IFF_PROMISC;
      } else
        return on_off("promisc", *argv);
    } else if (strcmp(*argv, "trailers") == 0) {
      NEXT_ARG();
      mask |= IFF_NOTRAILERS;
      if (strcmp(*argv, "off") == 0) {
        flags |= IFF_NOTRAILERS;
      } else if (strcmp(*argv, "on") == 0) {
        flags &= ~IFF_NOTRAILERS;
      } else
        return on_off("trailers", *argv);
    } else if (strcmp(*argv, "arp") == 0) {
      NEXT_ARG();
      mask |= IFF_NOARP;
      if (strcmp(*argv, "on") == 0) {
        flags &= ~IFF_NOARP;
      } else if (strcmp(*argv, "off") == 0) {
        flags |= IFF_NOARP;
      } else
        return on_off("noarp", *argv);
    } else if (matches(*argv, "dynamic") == 0) {
      NEXT_ARG();
      mask |= IFF_DYNAMIC;
      if (strcmp(*argv, "on") == 0) {
        flags |= IFF_DYNAMIC;
      } else if (strcmp(*argv, "off") == 0) {
        flags &= ~IFF_DYNAMIC;
      } else
        return on_off("dynamic", *argv);
    } else {
      if (strcmp(*argv, "dev") == 0) {
        NEXT_ARG();
      }
      if (matches(*argv, "help") == 0)
        usage();
      if (dev)
        duparg2("dev", *argv);
      dev = *argv;
    }
    argc--;
    argv++;
  }
  if (!dev) {
    fprintf(stderr,
            "Not enough of information: \"dev\" argument is required.\n");
    exit(-1);
  }
  if (newaddr || newbrd) {
    halen = get_address(dev, &htype);
    if (halen < 0)
      return -1;
    if (newaddr) {
      if (parse_address(dev, htype, halen, newaddr, &ifr0) < 0)
        return -1;
    }
    if (newbrd) {
      if (parse_address(dev, htype, halen, newbrd, &ifr1) < 0)
        return -1;
    }
  }
  if (newname && strcmp(dev, newname)) {
    if (strlen(newname) == 0)
      invarg("\"\" is not a valid device identifier\n", "name");
    if (do_changename(dev, newname) < 0)
      return -1;
    dev = newname;
  }
  if (qlen != -1) {
    if (set_qlen(dev, qlen) < 0)
      return -1;
  }
  if (mtu != -1) {
    if (set_mtu(dev, mtu) < 0)
      return -1;
  }
  if (newaddr || newbrd) {
    if (newbrd) {
      if (set_address(&ifr1, 1) < 0)
        return -1;
    }
    if (newaddr) {
      if (set_address(&ifr0, 0) < 0)
        return -1;
    }
  }
  if (mask)
    return do_chflags(dev, flags, mask);
  return 0;
}


x86 assembly (clang, -O0):
<do_set>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0xffffffff,-0x24(%rbp)
movl   $0xffffffff,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x50(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1a1a <do_set+0x7ea>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd6d(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12c5 <do_set+0x95>
mov    0x2d2f(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2d20(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1a00 <do_set+0x7d0>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd30(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1308 <do_set+0xd8>
mov    0x2cef(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2ce0(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    19fb <do_set+0x7cb>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcf2(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    133c <do_set+0x10c>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
jmp    19f6 <do_set+0x7c6>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcc3(%rip),%rsi
call   1070 <matches@plt>
cmp    $0x0,%rax
jne    1370 <do_set+0x140>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
jmp    19f1 <do_set+0x7c1>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc97(%rip),%rsi
call   1070 <matches@plt>
cmp    $0x0,%rax
je     13aa <do_set+0x17a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc84(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13c1 <do_set+0x191>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
jmp    19ec <do_set+0x7bc>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc54(%rip),%rsi
call   1070 <matches@plt>
cmp    $0x0,%rax
je     1418 <do_set+0x1e8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc44(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1418 <do_set+0x1e8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc25(%rip),%rsi
call   1070 <matches@plt>
cmp    $0x0,%rax
jne    1470 <do_set+0x240>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
cmpl   $0xffffffff,-0x24(%rbp)
je     143c <do_set+0x20c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xbec(%rip),%rdi
call   1050 <duparg@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    -0x24(%rbp),%rdi
xor    %edx,%edx
call   1060 <get_integer@plt>
cmp    $0x0,%rax
je     146b <do_set+0x23b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xbcf(%rip),%rdi
call   1130 <invarg@plt>
jmp    19e7 <do_set+0x7b7>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xbd3(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    14e5 <do_set+0x2b5>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
cmpl   $0xffffffff,-0x28(%rbp)
je     14b1 <do_set+0x281>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xba5(%rip),%rdi
call   1050 <duparg@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    -0x28(%rbp),%rdi
xor    %edx,%edx
call   1060 <get_integer@plt>
cmp    $0x0,%rax
je     14e0 <do_set+0x2b0>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xb7a(%rip),%rdi
call   1130 <invarg@plt>
jmp    19e2 <do_set+0x7b2>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb81(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    15a2 <do_set+0x372>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    0x2ad0(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb44(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1549 <do_set+0x319>
mov    0x2aa4(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    159d <do_set+0x36d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb16(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    157d <do_set+0x34d>
mov    0x2a73(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1598 <do_set+0x368>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xae9(%rip),%rdi
call   10b0 <on_off@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    159d <do_set+0x36d>
jmp    19dd <do_set+0x7ad>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xac1(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    165f <do_set+0x42f>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    0x29eb(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa87(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1606 <do_set+0x3d6>
mov    0x29bf(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    165a <do_set+0x42a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa59(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    163a <do_set+0x40a>
mov    0x298e(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1655 <do_set+0x425>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xa29(%rip),%rdi
call   10b0 <on_off@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    165a <do_set+0x42a>
jmp    19d8 <do_set+0x7a8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa11(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    171c <do_set+0x4ec>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    0x2926(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x9ca(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    16c3 <do_set+0x493>
mov    0x28fa(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1717 <do_set+0x4e7>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x99c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    16f7 <do_set+0x4c7>
mov    0x28c9(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1712 <do_set+0x4e2>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x979(%rip),%rdi
call   10b0 <on_off@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1717 <do_set+0x4e7>
jmp    19d3 <do_set+0x7a3>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x95c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    17d9 <do_set+0x5a9>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    0x2859(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x910(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1780 <do_set+0x550>
mov    0x282d(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    17d4 <do_set+0x5a4>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x8dc(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    17b4 <do_set+0x584>
mov    0x27fc(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    17cf <do_set+0x59f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x8c4(%rip),%rdi
call   10b0 <on_off@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    17d4 <do_set+0x5a4>
jmp    19ce <do_set+0x79e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x8aa(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1896 <do_set+0x666>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    0x27e4(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x850(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1840 <do_set+0x610>
mov    0x27b8(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1891 <do_set+0x661>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x81f(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1871 <do_set+0x641>
mov    0x2784(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    188c <do_set+0x65c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x810(%rip),%rdi
call   10b0 <on_off@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1891 <do_set+0x661>
jmp    19c9 <do_set+0x799>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x7f1(%rip),%rsi
call   1070 <matches@plt>
cmp    $0x0,%rax
jne    1953 <do_set+0x723>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    0x270f(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x793(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    18fa <do_set+0x6ca>
mov    0x26e3(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    194e <do_set+0x71e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x765(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    192e <do_set+0x6fe>
mov    0x26b2(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1949 <do_set+0x719>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x759(%rip),%rdi
call   10b0 <on_off@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    194e <do_set+0x71e>
jmp    19c4 <do_set+0x794>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x73c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1977 <do_set+0x747>
mov    $0x0,%al
call   10d0 <NEXT_ARG@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0x71c(%rip),%rsi
call   1070 <matches@plt>
cmp    $0x0,%rax
jne    199b <do_set+0x76b>
mov    $0x0,%al
call   10f0 <usage@plt>
cmpq   $0x0,-0x18(%rbp)
je     19b9 <do_set+0x789>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x6e9(%rip),%rdi
call   1110 <duparg2@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    19c9 <do_set+0x799>
jmp    19ce <do_set+0x79e>
jmp    19d3 <do_set+0x7a3>
jmp    19d8 <do_set+0x7a8>
jmp    19dd <do_set+0x7ad>
jmp    19e2 <do_set+0x7b2>
jmp    19e7 <do_set+0x7b7>
jmp    19ec <do_set+0x7bc>
jmp    19f1 <do_set+0x7c1>
jmp    19f6 <do_set+0x7c6>
jmp    19fb <do_set+0x7cb>
jmp    1a00 <do_set+0x7d0>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    127b <do_set+0x4b>
cmpq   $0x0,-0x18(%rbp)
jne    1a44 <do_set+0x814>
mov    0x2594(%rip),%rax
mov    (%rax),%edi
lea    0x671(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0xffffffff,%edi
call   1120 <exit@plt>
cmpq   $0x0,-0x30(%rbp)
jne    1a5a <do_set+0x82a>
cmpq   $0x0,-0x38(%rbp)
je     1aff <do_set+0x8cf>
mov    -0x18(%rbp),%rdi
lea    -0x54(%rbp),%rsi
call   1030 <get_address@plt>
mov    %eax,-0x58(%rbp)
cmpl   $0x0,-0x58(%rbp)
jge    1a80 <do_set+0x850>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
cmpq   $0x0,-0x30(%rbp)
je     1abd <do_set+0x88d>
mov    -0x18(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    -0x58(%rbp),%edx
mov    -0x30(%rbp),%rcx
lea    -0x40(%rbp),%r8
call   1140 <parse_address@plt>
cmp    $0x0,%rax
jge    1ab8 <do_set+0x888>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1abd <do_set+0x88d>
cmpq   $0x0,-0x38(%rbp)
je     1afa <do_set+0x8ca>
mov    -0x18(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    -0x58(%rbp),%edx
mov    -0x38(%rbp),%rcx
lea    -0x48(%rbp),%r8
call   1140 <parse_address@plt>
cmp    $0x0,%rax
jge    1af5 <do_set+0x8c5>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1afa <do_set+0x8ca>
jmp    1aff <do_set+0x8cf>
cmpq   $0x0,-0x50(%rbp)
je     1b72 <do_set+0x942>
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1b72 <do_set+0x942>
mov    -0x50(%rbp),%rdi
call   1080 <strlen@plt>
cmp    $0x0,%rax
jne    1b47 <do_set+0x917>
lea    0x5a3(%rip),%rdi
lea    0x4c6(%rip),%rsi
call   1130 <invarg@plt>
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1040 <do_changename@plt>
cmp    $0x0,%rax
jge    1b6a <do_set+0x93a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
mov    -0x50(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
je     1ba3 <do_set+0x973>
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1150 <set_qlen@plt>
cmp    $0x0,%rax
jge    1b9e <do_set+0x96e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1ba3 <do_set+0x973>
cmpl   $0xffffffff,-0x28(%rbp)
je     1bd4 <do_set+0x9a4>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%esi
call   10e0 <set_mtu@plt>
cmp    $0x0,%rax
jge    1bcf <do_set+0x99f>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1bd4 <do_set+0x9a4>
cmpq   $0x0,-0x30(%rbp)
jne    1bea <do_set+0x9ba>
cmpq   $0x0,-0x38(%rbp)
je     1c54 <do_set+0xa24>
cmpq   $0x0,-0x38(%rbp)
je     1c1e <do_set+0x9ee>
lea    -0x48(%rbp),%rdi
mov    $0x1,%esi
call   10c0 <set_address@plt>
cmp    $0x0,%rax
jge    1c19 <do_set+0x9e9>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1c1e <do_set+0x9ee>
cmpq   $0x0,-0x30(%rbp)
je     1c4f <do_set+0xa1f>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
call   10c0 <set_address@plt>
cmp    $0x0,%rax
jge    1c4a <do_set+0xa1a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
jmp    1c4f <do_set+0xa1f>
jmp    1c54 <do_set+0xa24>
cmpl   $0x0,-0x1c(%rbp)
je     1c75 <do_set+0xa45>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
call   1100 <do_chflags@plt>
mov    %eax,-0x4(%rbp)
jmp    1c7c <do_set+0xa4c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_set>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movl   $0xffffffff,0x14(%rsp)
ff
movl   $0xffffffff,0x10(%rsp)
ff
test   %edi,%edi
jle    19e1 <do_set+0x7c1>
mov    %rsi,%r13
mov    %edi,%r15d
add    $0x1,%r15d
mov    0x2d89(%rip),%r14
mov    0x2d5a(%rip),%r12
mov    0x2d4b(%rip),%rbp
mov    0x2d34(%rip),%rbx
xor    %eax,%eax
mov    %rax,0x40(%rsp)
xor    %eax,%eax
mov    %rax,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x38(%rsp)
movl   $0x0,(%rsp)
movl   $0x0,0x4(%rsp)
xor    %eax,%eax
mov    %rax,0x8(%rsp)
jmp    12c2 <do_set+0xa2>
nopl   0x0(%rax)
mov    0x2d31(%rip),%rax
mov    (%rax),%eax
or     %eax,0x4(%rsp)
or     %eax,(%rsp)
add    $0x8,%r13
add    $0xffffffff,%r15d
cmp    $0x1,%r15d
jle    17f1 <do_set+0x5d1>
mov    0x0(%r13),%rdi
lea    0xd33(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12a0 <do_set+0x80>
mov    0x0(%r13),%rdi
lea    0xd21(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     14b0 <do_set+0x290>
mov    0x0(%r13),%rdi
lea    0xd0d(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     14c7 <do_set+0x2a7>
mov    0x0(%r13),%rdi
lea    0xcf9(%rip),%rsi
call   1070 <matches@plt>
test   %rax,%rax
je     14f1 <do_set+0x2d1>
mov    0x0(%r13),%rdi
lea    0xce8(%rip),%rsi
call   1070 <matches@plt>
test   %rax,%rax
je     14dc <do_set+0x2bc>
mov    0x0(%r13),%rdi
lea    0xcd9(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     14dc <do_set+0x2bc>
mov    0x0(%r13),%rdi
lea    0xcc4(%rip),%rsi
call   1070 <matches@plt>
test   %rax,%rax
je     1506 <do_set+0x2e6>
mov    0x0(%r13),%rdi
lea    0xcb8(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1506 <do_set+0x2e6>
mov    0x0(%r13),%rdi
lea    0xc9d(%rip),%rsi
call   1070 <matches@plt>
test   %rax,%rax
je     1506 <do_set+0x2e6>
mov    0x0(%r13),%rdi
lea    0xca7(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1552 <do_set+0x332>
mov    0x0(%r13),%rdi
lea    0xcb1(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     159e <do_set+0x37e>
mov    0x0(%r13),%rdi
lea    0xc95(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     15ea <do_set+0x3ca>
mov    0x0(%r13),%rdi
lea    0xc89(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1638 <do_set+0x418>
mov    0x0(%r13),%rdi
lea    0xc78(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1699 <do_set+0x479>
mov    0x0(%r13),%rdi
lea    0xc6a(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     16f9 <do_set+0x4d9>
mov    0x0(%r13),%rdi
lea    0xc55(%rip),%rsi
call   1070 <matches@plt>
test   %rax,%rax
je     1767 <do_set+0x547>
mov    0x0(%r13),%rdi
lea    0xc44(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    146a <do_set+0x24a>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x0(%r13),%rdi
lea    0xc2c(%rip),%rsi
call   1070 <matches@plt>
test   %rax,%rax
jne    1486 <do_set+0x266>
xor    %eax,%eax
call   10e0 <usage@plt>
cmpq   $0x0,0x8(%rsp)
je     149e <do_set+0x27e>
mov    0x0(%r13),%rsi
lea    0xc04(%rip),%rdi
call   1100 <duparg2@plt>
mov    0x0(%r13),%rax
mov    %rax,0x8(%rsp)
jmp    12b0 <do_set+0x90>
nopl   0x0(%rax)
mov    0x2b21(%rip),%rax
mov    (%rax),%eax
or     %eax,0x4(%rsp)
not    %eax
and    %eax,(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x0(%r13),%rax
mov    %rax,0x40(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x0(%r13),%rax
mov    %rax,0x18(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x0(%r13),%rax
mov    %rax,0x38(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
cmpl   $0xffffffff,0x14(%rsp)
je     1524 <do_set+0x304>
mov    0x0(%r13),%rsi
lea    0xb04(%rip),%rdi
call   1050 <duparg@plt>
mov    0x0(%r13),%rsi
lea    0x14(%rsp),%rdi
xor    %edx,%edx
call   1060 <get_integer@plt>
test   %rax,%rax
je     12b0 <do_set+0x90>
mov    0x0(%r13),%rsi
lea    0xaed(%rip),%rdi
call   1120 <invarg@plt>
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
cmpl   $0xffffffff,0x10(%rsp)
je     1570 <do_set+0x350>
mov    0x0(%r13),%rsi
lea    0xae6(%rip),%rdi
call   1050 <duparg@plt>
mov    0x0(%r13),%rsi
lea    0x10(%rsp),%rdi
xor    %edx,%edx
call   1060 <get_integer@plt>
test   %rax,%rax
je     12b0 <do_set+0x90>
mov    0x0(%r13),%rsi
lea    0xac1(%rip),%rdi
call   1120 <invarg@plt>
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x4(%rsp),%eax
or     (%r14),%eax
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rdi
lea    0xaaf(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1684 <do_set+0x464>
mov    0x0(%r13),%rdi
lea    0xa99(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1972 <do_set+0x752>
mov    (%r14),%eax
jmp    14bd <do_set+0x29d>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x4(%rsp),%eax
or     (%r12),%eax
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rdi
lea    0xa62(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     16e3 <do_set+0x4c3>
mov    0x0(%r13),%rdi
lea    0xa4c(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1984 <do_set+0x764>
mov    (%r12),%eax
jmp    14bd <do_set+0x29d>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x4(%rsp),%eax
or     0x0(%rbp),%eax
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rdi
lea    0xa15(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1752 <do_set+0x532>
mov    0x0(%r13),%rdi
lea    0x9ff(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1996 <do_set+0x776>
mov    0x0(%rbp),%eax
jmp    14bd <do_set+0x29d>
mov    (%rsp),%eax
mov    0x2952(%rip),%r14
or     (%r14),%eax
mov    %eax,(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x4(%rsp),%eax
or     (%rbx),%eax
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rdi
lea    0x9b8(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     17bb <do_set+0x59b>
mov    0x0(%r13),%rdi
lea    0x99c(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    19a8 <do_set+0x788>
mov    (%rbx),%eax
jmp    14bd <do_set+0x29d>
mov    (%rsp),%eax
mov    0x28cb(%rip),%r12
or     (%r12),%eax
mov    %eax,(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x4(%rsp),%eax
mov    0x28dd(%rip),%rcx
or     (%rcx),%eax
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rdi
lea    0x94e(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     17cf <do_set+0x5af>
mov    0x0(%r13),%rdi
lea    0x938(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    19ba <do_set+0x79a>
mov    (%rsp),%eax
mov    0x289b(%rip),%rcx
jmp    17e7 <do_set+0x5c7>
mov    (%rsp),%eax
mov    0x2854(%rip),%rbp
or     0x0(%rbp),%eax
mov    %eax,(%rsp)
jmp    12b0 <do_set+0x90>
xor    %eax,%eax
call   10c0 <NEXT_ARG@plt>
mov    0x4(%rsp),%eax
mov    0x2857(%rip),%rcx
or     (%rcx),%eax
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rdi
lea    0x8e0(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     17dd <do_set+0x5bd>
mov    0x0(%r13),%rdi
lea    0x8ce(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    19cc <do_set+0x7ac>
mov    0x281c(%rip),%rax
mov    (%rax),%eax
jmp    14bd <do_set+0x29d>
mov    (%rsp),%eax
mov    0x27db(%rip),%rbx
or     (%rbx),%eax
mov    %eax,(%rsp)
jmp    12b0 <do_set+0x90>
mov    0x2812(%rip),%rax
mov    (%rax),%eax
jmp    14bd <do_set+0x29d>
mov    (%rsp),%eax
mov    0x27e9(%rip),%rcx
or     (%rcx),%eax
mov    %eax,(%rsp)
jmp    12b0 <do_set+0x90>
cmpq   $0x0,0x8(%rsp)
je     19e1 <do_set+0x7c1>
mov    0x38(%rsp),%r13
mov    %r13,%rax
or     0x18(%rsp),%rax
setne  %r12b
je     1883 <do_set+0x663>
lea    0x24(%rsp),%rsi
mov    0x8(%rsp),%rdi
call   1030 <get_address@plt>
mov    $0xffffffff,%r14d
test   %eax,%eax
js     195b <do_set+0x73b>
mov    %eax,%r15d
test   %r13,%r13
je     1857 <do_set+0x637>
mov    0x24(%rsp),%esi
lea    0x30(%rsp),%r8
mov    0x8(%rsp),%rdi
mov    %r15d,%edx
mov    %r13,%rcx
call   1130 <parse_address@plt>
test   %rax,%rax
js     195b <do_set+0x73b>
cmpq   $0x0,0x18(%rsp)
je     1883 <do_set+0x663>
mov    0x24(%rsp),%esi
lea    0x28(%rsp),%r8
mov    0x8(%rsp),%rdi
mov    %r15d,%edx
mov    0x18(%rsp),%rcx
call   1130 <parse_address@plt>
test   %rax,%rax
js     195b <do_set+0x73b>
mov    0x40(%rsp),%r14
test   %r14,%r14
je     18d0 <do_set+0x6b0>
mov    0x8(%rsp),%r15
mov    %r15,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     18d7 <do_set+0x6b7>
cmpb   $0x0,(%r14)
jne    18bb <do_set+0x69b>
lea    0x82f(%rip),%rdi
lea    0x752(%rip),%rsi
call   1120 <invarg@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <do_changename@plt>
test   %rax,%rax
jns    18da <do_set+0x6ba>
jmp    1955 <do_set+0x735>
mov    0x8(%rsp),%r14
jmp    18da <do_set+0x6ba>
mov    %r15,%r14
mov    0x14(%rsp),%esi
cmp    $0xffffffff,%esi
je     18f0 <do_set+0x6d0>
mov    %r14,%rdi
call   1140 <set_qlen@plt>
test   %rax,%rax
js     1955 <do_set+0x735>
mov    0x10(%rsp),%esi
cmp    $0xffffffff,%esi
je     1906 <do_set+0x6e6>
mov    %r14,%rdi
call   10d0 <set_mtu@plt>
test   %rax,%rax
js     1955 <do_set+0x735>
test   %r12b,%r12b
je     193d <do_set+0x71d>
cmpq   $0x0,0x18(%rsp)
je     1927 <do_set+0x707>
lea    0x28(%rsp),%rdi
mov    $0x1,%esi
call   10b0 <set_address@plt>
test   %rax,%rax
js     1955 <do_set+0x735>
test   %r13,%r13
je     193d <do_set+0x71d>
lea    0x30(%rsp),%rdi
xor    %esi,%esi
call   10b0 <set_address@plt>
test   %rax,%rax
js     1955 <do_set+0x735>
mov    0x4(%rsp),%edx
test   %edx,%edx
je     196d <do_set+0x74d>
mov    %r14,%rdi
mov    (%rsp),%esi
call   10f0 <do_chflags@plt>
mov    %eax,%r14d
jmp    195b <do_set+0x73b>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r14d,%r14d
jmp    195b <do_set+0x73b>
mov    0x0(%r13),%rsi
lea    0x6f7(%rip),%rdi
call   10a0 <on_off@plt>
jmp    1950 <do_set+0x730>
mov    0x0(%r13),%rsi
lea    0x6e2(%rip),%rdi
call   10a0 <on_off@plt>
jmp    1950 <do_set+0x730>
mov    0x0(%r13),%rsi
lea    0x6dd(%rip),%rdi
call   10a0 <on_off@plt>
jmp    1950 <do_set+0x730>
mov    0x0(%r13),%rsi
lea    0x6d3(%rip),%rdi
call   10a0 <on_off@plt>
jmp    1950 <do_set+0x730>
mov    0x0(%r13),%rsi
lea    0x6ca(%rip),%rdi
call   10a0 <on_off@plt>
jmp    1950 <do_set+0x730>
mov    0x0(%r13),%rsi
lea    0x6be(%rip),%rdi
call   10a0 <on_off@plt>
jmp    1950 <do_set+0x730>
mov    0x25d8(%rip),%rax
mov    (%rax),%edi
lea    0x6b5(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0xffffffff,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
%struct.ifreq = type { i32 }
@.str = [3 x i8] c"up\00"
@IFF_UP = global i32 0
@.str.1 = [5 x i8] c"down\00"
@.str.2 = [5 x i8] c"name\00"
@.str.3 = [8 x i8] c"address\00"
@.str.4 = [10 x i8] c"broadcast\00"
@.str.5 = [4 x i8] c"brd\00"
@.str.6 = [11 x i8] c"txqueuelen\00"
@.str.7 = [5 x i8] c"qlen\00"
@.str.8 = [7 x i8] c"txqlen\00"
@.str.9 = [28 x i8] c"Invalid \22txqueuelen\22 value\0A\00"
@.str.10 = [4 x i8] c"mtu\00"
@.str.11 = [21 x i8] c"Invalid \22mtu\22 value\0A\00"
@.str.12 = [10 x i8] c"multicast\00"
@IFF_MULTICAST = global i32 0
@.str.13 = [3 x i8] c"on\00"
@.str.14 = [4 x i8] c"off\00"
@.str.15 = [13 x i8] c"allmulticast\00"
@IFF_ALLMULTI = global i32 0
@.str.16 = [8 x i8] c"promisc\00"
@IFF_PROMISC = global i32 0
@.str.17 = [9 x i8] c"trailers\00"
@IFF_NOTRAILERS = global i32 0
@.str.18 = [4 x i8] c"arp\00"
@IFF_NOARP = global i32 0
@.str.19 = [6 x i8] c"noarp\00"
@.str.20 = [8 x i8] c"dynamic\00"
@IFF_DYNAMIC = global i32 0
@.str.21 = [4 x i8] c"dev\00"
@.str.22 = [5 x i8] c"help\00"
@stderr = global i32 0
@.str.23 = [56 x i8] c"Not enough of information: \22dev\22 argument is required.\0A\00"
@.str.24 = [37 x i8] c"\22\22 is not a valid device identifier\0A\00"
define i32 @do_set(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca %struct.ifreq
%14 = alloca %struct.ifreq
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 -1, i32* %9
store i32 -1, i32* %10
store i8* null, i8** %11
store i8* null, i8** %12
store i8* null, i8** %15
br label %18
18: ; preds = %374, %2
%19 = load i32, i32* %4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %379
21: ; preds = %18
%22 = load i8**, i8*** %5
%23 = load i8*, i8** %22
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %33
26: ; preds = %21
%27 = load i32, i32* @IFF_UP
%28 = load i32, i32* %7
%29 = or i32 %28, %27
store i32 %29, i32* %7
%30 = load i32, i32* @IFF_UP
%31 = load i32, i32* %8
%32 = or i32 %31, %30
store i32 %32, i32* %8
br label %374
33: ; preds = %21
%34 = load i8**, i8*** %5
%35 = load i8*, i8** %34
%36 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %33
%39 = load i32, i32* @IFF_UP
%40 = load i32, i32* %7
%41 = or i32 %40, %39
store i32 %41, i32* %7
%42 = load i32, i32* @IFF_UP
%43 = xor i32 %42, -1
%44 = load i32, i32* %8
%45 = and i32 %44, %43
store i32 %45, i32* %8
br label %373
46: ; preds = %33
%47 = load i8**, i8*** %5
%48 = load i8*, i8** %47
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %46
%52 = call i32 (...) @NEXT_ARG()
%53 = load i8**, i8*** %5
%54 = load i8*, i8** %53
store i8* %54, i8** %15
br label %372
55: ; preds = %46
%56 = load i8**, i8*** %5
%57 = load i8*, i8** %56
%58 = call i64 @matches(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %55
%61 = call i32 (...) @NEXT_ARG()
%62 = load i8**, i8*** %5
%63 = load i8*, i8** %62
store i8* %63, i8** %11
br label %371
64: ; preds = %55
%65 = load i8**, i8*** %5
%66 = load i8*, i8** %65
%67 = call i64 @matches(i8* %66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %64
%70 = load i8**, i8*** %5
%71 = load i8*, i8** %70
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %69, %64
%75 = call i32 (...) @NEXT_ARG()
%76 = load i8**, i8*** %5
%77 = load i8*, i8** %76
store i8* %77, i8** %12
br label %370
78: ; preds = %69
%79 = load i8**, i8*** %5
%80 = load i8*, i8** %79
%81 = call i64 @matches(i8* %80, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %93, label %83
83: ; preds = %78
%84 = load i8**, i8*** %5
%85 = load i8*, i8** %84
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %93, label %88
88: ; preds = %83
%89 = load i8**, i8*** %5
%90 = load i8*, i8** %89
%91 = call i64 @matches(i8* %90, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %111
93: ; preds = %88, %83, %78
%94 = call i32 (...) @NEXT_ARG()
%95 = load i32, i32* %9
%96 = icmp ne i32 %95, -1
br i1 %96, label %97, label %101
97: ; preds = %93
%98 = load i8**, i8*** %5
%99 = load i8*, i8** %98
%100 = call i32 @duparg(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %97, %93
%102 = load i8**, i8*** %5
%103 = load i8*, i8** %102
%104 = call i64 @get_integer(i32* %9, i8* %103, i32 0)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %101
%107 = load i8**, i8*** %5
%108 = load i8*, i8** %107
%109 = call i32 @invarg(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %108)
br label %110
110: ; preds = %106, %101
br label %369
111: ; preds = %88
%112 = load i8**, i8*** %5
%113 = load i8*, i8** %112
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %134
116: ; preds = %111
%117 = call i32 (...) @NEXT_ARG()
%118 = load i32, i32* %10
%119 = icmp ne i32 %118, -1
br i1 %119, label %120, label %124
120: ; preds = %116
%121 = load i8**, i8*** %5
%122 = load i8*, i8** %121
%123 = call i32 @duparg(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %122)
br label %124
124: ; preds = %120, %116
%125 = load i8**, i8*** %5
%126 = load i8*, i8** %125
%127 = call i64 @get_integer(i32* %10, i8* %126, i32 0)
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %133
129: ; preds = %124
%130 = load i8**, i8*** %5
%131 = load i8*, i8** %130
%132 = call i32 @invarg(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i8* %131)
br label %133
133: ; preds = %129, %124
br label %368
134: ; preds = %111
%135 = load i8**, i8*** %5
%136 = load i8*, i8** %135
%137 = call i64 @strcmp(i8* %136, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %168
139: ; preds = %134
%140 = call i32 (...) @NEXT_ARG()
%141 = load i32, i32* @IFF_MULTICAST
%142 = load i32, i32* %7
%143 = or i32 %142, %141
store i32 %143, i32* %7
%144 = load i8**, i8*** %5
%145 = load i8*, i8** %144
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %152
148: ; preds = %139
%149 = load i32, i32* @IFF_MULTICAST
%150 = load i32, i32* %8
%151 = or i32 %150, %149
store i32 %151, i32* %8
br label %167
152: ; preds = %139
%153 = load i8**, i8*** %5
%154 = load i8*, i8** %153
%155 = call i64 @strcmp(i8* %154, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%156 = icmp eq i64 %155, 0
br i1 %156, label %157, label %162
157: ; preds = %152
%158 = load i32, i32* @IFF_MULTICAST
%159 = xor i32 %158, -1
%160 = load i32, i32* %8
%161 = and i32 %160, %159
store i32 %161, i32* %8
br label %166
162: ; preds = %152
%163 = load i8**, i8*** %5
%164 = load i8*, i8** %163
%165 = call i32 @on_off(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* %164)
store i32 %165, i32* %3
br label %497
166: ; preds = %157
br label %167
167: ; preds = %166, %148
br label %367
168: ; preds = %134
%169 = load i8**, i8*** %5
%170 = load i8*, i8** %169
%171 = call i64 @strcmp(i8* %170, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %202
173: ; preds = %168
%174 = call i32 (...) @NEXT_ARG()
%175 = load i32, i32* @IFF_ALLMULTI
%176 = load i32, i32* %7
%177 = or i32 %176, %175
store i32 %177, i32* %7
%178 = load i8**, i8*** %5
%179 = load i8*, i8** %178
%180 = call i64 @strcmp(i8* %179, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%181 = icmp eq i64 %180, 0
br i1 %181, label %182, label %186
182: ; preds = %173
%183 = load i32, i32* @IFF_ALLMULTI
%184 = load i32, i32* %8
%185 = or i32 %184, %183
store i32 %185, i32* %8
br label %201
186: ; preds = %173
%187 = load i8**, i8*** %5
%188 = load i8*, i8** %187
%189 = call i64 @strcmp(i8* %188, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%190 = icmp eq i64 %189, 0
br i1 %190, label %191, label %196
191: ; preds = %186
%192 = load i32, i32* @IFF_ALLMULTI
%193 = xor i32 %192, -1
%194 = load i32, i32* %8
%195 = and i32 %194, %193
store i32 %195, i32* %8
br label %200
196: ; preds = %186
%197 = load i8**, i8*** %5
%198 = load i8*, i8** %197
%199 = call i32 @on_off(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i8* %198)
store i32 %199, i32* %3
br label %497
200: ; preds = %191
br label %201
201: ; preds = %200, %182
br label %366
202: ; preds = %168
%203 = load i8**, i8*** %5
%204 = load i8*, i8** %203
%205 = call i64 @strcmp(i8* %204, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%206 = icmp eq i64 %205, 0
br i1 %206, label %207, label %236
207: ; preds = %202
%208 = call i32 (...) @NEXT_ARG()
%209 = load i32, i32* @IFF_PROMISC
%210 = load i32, i32* %7
%211 = or i32 %210, %209
store i32 %211, i32* %7
%212 = load i8**, i8*** %5
%213 = load i8*, i8** %212
%214 = call i64 @strcmp(i8* %213, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%215 = icmp eq i64 %214, 0
br i1 %215, label %216, label %220
216: ; preds = %207
%217 = load i32, i32* @IFF_PROMISC
%218 = load i32, i32* %8
%219 = or i32 %218, %217
store i32 %219, i32* %8
br label %235
220: ; preds = %207
%221 = load i8**, i8*** %5
%222 = load i8*, i8** %221
%223 = call i64 @strcmp(i8* %222, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%224 = icmp eq i64 %223, 0
br i1 %224, label %225, label %230
225: ; preds = %220
%226 = load i32, i32* @IFF_PROMISC
%227 = xor i32 %226, -1
%228 = load i32, i32* %8
%229 = and i32 %228, %227
store i32 %229, i32* %8
br label %234
230: ; preds = %220
%231 = load i8**, i8*** %5
%232 = load i8*, i8** %231
%233 = call i32 @on_off(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8* %232)
store i32 %233, i32* %3
br label %497
234: ; preds = %225
br label %235
235: ; preds = %234, %216
br label %365
236: ; preds = %202
%237 = load i8**, i8*** %5
%238 = load i8*, i8** %237
%239 = call i64 @strcmp(i8* %238, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%240 = icmp eq i64 %239, 0
br i1 %240, label %241, label %270
241: ; preds = %236
%242 = call i32 (...) @NEXT_ARG()
%243 = load i32, i32* @IFF_NOTRAILERS
%244 = load i32, i32* %7
%245 = or i32 %244, %243
store i32 %245, i32* %7
%246 = load i8**, i8*** %5
%247 = load i8*, i8** %246
%248 = call i64 @strcmp(i8* %247, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%249 = icmp eq i64 %248, 0
br i1 %249, label %250, label %254
250: ; preds = %241
%251 = load i32, i32* @IFF_NOTRAILERS
%252 = load i32, i32* %8
%253 = or i32 %252, %251
store i32 %253, i32* %8
br label %269
254: ; preds = %241
%255 = load i8**, i8*** %5
%256 = load i8*, i8** %255
%257 = call i64 @strcmp(i8* %256, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%258 = icmp eq i64 %257, 0
br i1 %258, label %259, label %264
259: ; preds = %254
%260 = load i32, i32* @IFF_NOTRAILERS
%261 = xor i32 %260, -1
%262 = load i32, i32* %8
%263 = and i32 %262, %261
store i32 %263, i32* %8
br label %268
264: ; preds = %254
%265 = load i8**, i8*** %5
%266 = load i8*, i8** %265
%267 = call i32 @on_off(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i8* %266)
store i32 %267, i32* %3
br label %497
268: ; preds = %259
br label %269
269: ; preds = %268, %250
br label %364
270: ; preds = %236
%271 = load i8**, i8*** %5
%272 = load i8*, i8** %271
%273 = call i64 @strcmp(i8* %272, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%274 = icmp eq i64 %273, 0
br i1 %274, label %275, label %304
275: ; preds = %270
%276 = call i32 (...) @NEXT_ARG()
%277 = load i32, i32* @IFF_NOARP
%278 = load i32, i32* %7
%279 = or i32 %278, %277
store i32 %279, i32* %7
%280 = load i8**, i8*** %5
%281 = load i8*, i8** %280
%282 = call i64 @strcmp(i8* %281, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%283 = icmp eq i64 %282, 0
br i1 %283, label %284, label %289
284: ; preds = %275
%285 = load i32, i32* @IFF_NOARP
%286 = xor i32 %285, -1
%287 = load i32, i32* %8
%288 = and i32 %287, %286
store i32 %288, i32* %8
br label %303
289: ; preds = %275
%290 = load i8**, i8*** %5
%291 = load i8*, i8** %290
%292 = call i64 @strcmp(i8* %291, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%293 = icmp eq i64 %292, 0
br i1 %293, label %294, label %298
294: ; preds = %289
%295 = load i32, i32* @IFF_NOARP
%296 = load i32, i32* %8
%297 = or i32 %296, %295
store i32 %297, i32* %8
br label %302
298: ; preds = %289
%299 = load i8**, i8*** %5
%300 = load i8*, i8** %299
%301 = call i32 @on_off(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* %300)
store i32 %301, i32* %3
br label %497
302: ; preds = %294
br label %303
303: ; preds = %302, %284
br label %363
304: ; preds = %270
%305 = load i8**, i8*** %5
%306 = load i8*, i8** %305
%307 = call i64 @matches(i8* %306, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0))
%308 = icmp eq i64 %307, 0
br i1 %308, label %309, label %338
309: ; preds = %304
%310 = call i32 (...) @NEXT_ARG()
%311 = load i32, i32* @IFF_DYNAMIC
%312 = load i32, i32* %7
%313 = or i32 %312, %311
store i32 %313, i32* %7
%314 = load i8**, i8*** %5
%315 = load i8*, i8** %314
%316 = call i64 @strcmp(i8* %315, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%317 = icmp eq i64 %316, 0
br i1 %317, label %318, label %322
318: ; preds = %309
%319 = load i32, i32* @IFF_DYNAMIC
%320 = load i32, i32* %8
%321 = or i32 %320, %319
store i32 %321, i32* %8
br label %337
322: ; preds = %309
%323 = load i8**, i8*** %5
%324 = load i8*, i8** %323
%325 = call i64 @strcmp(i8* %324, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%326 = icmp eq i64 %325, 0
br i1 %326, label %327, label %332
327: ; preds = %322
%328 = load i32, i32* @IFF_DYNAMIC
%329 = xor i32 %328, -1
%330 = load i32, i32* %8
%331 = and i32 %330, %329
store i32 %331, i32* %8
br label %336
332: ; preds = %322
%333 = load i8**, i8*** %5
%334 = load i8*, i8** %333
%335 = call i32 @on_off(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* %334)
store i32 %335, i32* %3
br label %497
336: ; preds = %327
br label %337
337: ; preds = %336, %318
br label %362
338: ; preds = %304
%339 = load i8**, i8*** %5
%340 = load i8*, i8** %339
%341 = call i64 @strcmp(i8* %340, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%342 = icmp eq i64 %341, 0
br i1 %342, label %343, label %345
343: ; preds = %338
%344 = call i32 (...) @NEXT_ARG()
br label %345
345: ; preds = %343, %338
%346 = load i8**, i8*** %5
%347 = load i8*, i8** %346
%348 = call i64 @matches(i8* %347, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0))
%349 = icmp eq i64 %348, 0
br i1 %349, label %350, label %352
350: ; preds = %345
%351 = call i32 (...) @usage()
br label %352
352: ; preds = %350, %345
%353 = load i8*, i8** %6
%354 = icmp ne i8* %353, null
br i1 %354, label %355, label %359
355: ; preds = %352
%356 = load i8**, i8*** %5
%357 = load i8*, i8** %356
%358 = call i32 @duparg2(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* %357)
br label %359
359: ; preds = %355, %352
%360 = load i8**, i8*** %5
%361 = load i8*, i8** %360
store i8* %361, i8** %6
br label %362
362: ; preds = %359, %337
br label %363
363: ; preds = %362, %303
br label %364
364: ; preds = %363, %269
br label %365
365: ; preds = %364, %235
br label %366
366: ; preds = %365, %201
br label %367
367: ; preds = %366, %167
br label %368
368: ; preds = %367, %133
br label %369
369: ; preds = %368, %110
br label %370
370: ; preds = %369, %74
br label %371
371: ; preds = %370, %60
br label %372
372: ; preds = %371, %51
br label %373
373: ; preds = %372, %38
br label %374
374: ; preds = %373, %26
%375 = load i32, i32* %4
%376 = add nsw i32 %375, -1
store i32 %376, i32* %4
%377 = load i8**, i8*** %5
%378 = getelementptr inbounds i8*, i8** %377, i32 1
store i8** %378, i8*** %5
br label %18
379: ; preds = %18
%380 = load i8*, i8** %6
%381 = icmp ne i8* %380, null
br i1 %381, label %386, label %382
382: ; preds = %379
%383 = load i32, i32* @stderr
%384 = call i32 @fprintf(i32 %383, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i64 0, i64 0))
%385 = call i32 @exit(i32 -1)
unreachable
386: ; preds = %379
%387 = load i8*, i8** %11
%388 = icmp ne i8* %387, null
br i1 %388, label %392, label %389
389: ; preds = %386
%390 = load i8*, i8** %12
%391 = icmp ne i8* %390, null
br i1 %391, label %392, label %423
392: ; preds = %389, %386
%393 = load i8*, i8** %6
%394 = call i32 @get_address(i8* %393, i32* %16)
store i32 %394, i32* %17
%395 = load i32, i32* %17
%396 = icmp slt i32 %395, 0
br i1 %396, label %397, label %398
397: ; preds = %392
store i32 -1, i32* %3
br label %497
398: ; preds = %392
%399 = load i8*, i8** %11
%400 = icmp ne i8* %399, null
br i1 %400, label %401, label %410
401: ; preds = %398
%402 = load i8*, i8** %6
%403 = load i32, i32* %16
%404 = load i32, i32* %17
%405 = load i8*, i8** %11
%406 = call i64 @parse_address(i8* %402, i32 %403, i32 %404, i8* %405, %struct.ifreq* %13)
%407 = icmp slt i64 %406, 0
br i1 %407, label %408, label %409
408: ; preds = %401
store i32 -1, i32* %3
br label %497
409: ; preds = %401
br label %410
410: ; preds = %409, %398
%411 = load i8*, i8** %12
%412 = icmp ne i8* %411, null
br i1 %412, label %413, label %422
413: ; preds = %410
%414 = load i8*, i8** %6
%415 = load i32, i32* %16
%416 = load i32, i32* %17
%417 = load i8*, i8** %12
%418 = call i64 @parse_address(i8* %414, i32 %415, i32 %416, i8* %417, %struct.ifreq* %14)
%419 = icmp slt i64 %418, 0
br i1 %419, label %420, label %421
420: ; preds = %413
store i32 -1, i32* %3
br label %497
421: ; preds = %413
br label %422
422: ; preds = %421, %410
br label %423
423: ; preds = %422, %389
%424 = load i8*, i8** %15
%425 = icmp ne i8* %424, null
br i1 %425, label %426, label %445
426: ; preds = %423
%427 = load i8*, i8** %6
%428 = load i8*, i8** %15
%429 = call i64 @strcmp(i8* %427, i8* %428)
%430 = icmp ne i64 %429, 0
br i1 %430, label %431, label %445
431: ; preds = %426
%432 = load i8*, i8** %15
%433 = call i64 @strlen(i8* %432)
%434 = icmp eq i64 %433, 0
br i1 %434, label %435, label %437
435: ; preds = %431
%436 = call i32 @invarg(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %437
437: ; preds = %435, %431
%438 = load i8*, i8** %6
%439 = load i8*, i8** %15
%440 = call i64 @do_changename(i8* %438, i8* %439)
%441 = icmp slt i64 %440, 0
br i1 %441, label %442, label %443
442: ; preds = %437
store i32 -1, i32* %3
br label %497
443: ; preds = %437
%444 = load i8*, i8** %15
store i8* %444, i8** %6
br label %445
445: ; preds = %443, %426, %423
%446 = load i32, i32* %9
%447 = icmp ne i32 %446, -1
br i1 %447, label %448, label %455
448: ; preds = %445
%449 = load i8*, i8** %6
%450 = load i32, i32* %9
%451 = call i64 @set_qlen(i8* %449, i32 %450)
%452 = icmp slt i64 %451, 0
br i1 %452, label %453, label %454
453: ; preds = %448
store i32 -1, i32* %3
br label %497
454: ; preds = %448
br label %455
455: ; preds = %454, %445
%456 = load i32, i32* %10
%457 = icmp ne i32 %456, -1
br i1 %457, label %458, label %465
458: ; preds = %455
%459 = load i8*, i8** %6
%460 = load i32, i32* %10
%461 = call i64 @set_mtu(i8* %459, i32 %460)
%462 = icmp slt i64 %461, 0
br i1 %462, label %463, label %464
463: ; preds = %458
store i32 -1, i32* %3
br label %497
464: ; preds = %458
br label %465
465: ; preds = %464, %455
%466 = load i8*, i8** %11
%467 = icmp ne i8* %466, null
br i1 %467, label %471, label %468
468: ; preds = %465
%469 = load i8*, i8** %12
%470 = icmp ne i8* %469, null
br i1 %470, label %471, label %488
471: ; preds = %468, %465
%472 = load i8*, i8** %12
%473 = icmp ne i8* %472, null
br i1 %473, label %474, label %479
474: ; preds = %471
%475 = call i64 @set_address(%struct.ifreq* %14, i32 1)
%476 = icmp slt i64 %475, 0
br i1 %476, label %477, label %478
477: ; preds = %474
store i32 -1, i32* %3
br label %497
478: ; preds = %474
br label %479
479: ; preds = %478, %471
%480 = load i8*, i8** %11
%481 = icmp ne i8* %480, null
br i1 %481, label %482, label %487
482: ; preds = %479
%483 = call i64 @set_address(%struct.ifreq* %13, i32 0)
%484 = icmp slt i64 %483, 0
br i1 %484, label %485, label %486
485: ; preds = %482
store i32 -1, i32* %3
br label %497
486: ; preds = %482
br label %487
487: ; preds = %486, %479
br label %488
488: ; preds = %487, %468
%489 = load i32, i32* %7
%490 = icmp ne i32 %489, 0
br i1 %490, label %491, label %496
491: ; preds = %488
%492 = load i8*, i8** %6
%493 = load i32, i32* %8
%494 = load i32, i32* %7
%495 = call i32 @do_chflags(i8* %492, i32 %493, i32 %494)
store i32 %495, i32* %3
br label %497
496: ; preds = %488
store i32 0, i32* %3
br label %497
497: ; preds = %496, %491, %485, %477, %463, %453, %442, %420, %408, %397, %332, %298, %264, %230, %196, %162
%498 = load i32, i32* %3
ret i32 %498
}

LLVM IR (-O2):
%struct.ifreq = type { i32 }
@.str = [3 x i8] c"up\00"
@IFF_UP = global i32 0
@.str.1 = [5 x i8] c"down\00"
@.str.2 = [5 x i8] c"name\00"
@.str.3 = [8 x i8] c"address\00"
@.str.4 = [10 x i8] c"broadcast\00"
@.str.5 = [4 x i8] c"brd\00"
@.str.6 = [11 x i8] c"txqueuelen\00"
@.str.7 = [5 x i8] c"qlen\00"
@.str.8 = [7 x i8] c"txqlen\00"
@.str.9 = [28 x i8] c"Invalid \22txqueuelen\22 value\0A\00"
@.str.10 = [4 x i8] c"mtu\00"
@.str.11 = [21 x i8] c"Invalid \22mtu\22 value\0A\00"
@.str.12 = [10 x i8] c"multicast\00"
@IFF_MULTICAST = global i32 0
@.str.13 = [3 x i8] c"on\00"
@.str.14 = [4 x i8] c"off\00"
@.str.15 = [13 x i8] c"allmulticast\00"
@IFF_ALLMULTI = global i32 0
@.str.16 = [8 x i8] c"promisc\00"
@IFF_PROMISC = global i32 0
@.str.17 = [9 x i8] c"trailers\00"
@IFF_NOTRAILERS = global i32 0
@.str.18 = [4 x i8] c"arp\00"
@IFF_NOARP = global i32 0
@.str.19 = [6 x i8] c"noarp\00"
@.str.20 = [8 x i8] c"dynamic\00"
@IFF_DYNAMIC = global i32 0
@.str.21 = [4 x i8] c"dev\00"
@.str.22 = [5 x i8] c"help\00"
@stderr = global i32 0
@.str.23 = [56 x i8] c"Not enough of information: \22dev\22 argument is required.\0A\00"
@.str.24 = [37 x i8] c"\22\22 is not a valid device identifier\0A\00"
define i32 @do_set(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.ifreq
%6 = alloca %struct.ifreq
%7 = alloca i32
%8 = bitcast i32* %3 to i8*
store i32 -1, i32* %3
%9 = bitcast i32* %4 to i8*
store i32 -1, i32* %4
%10 = bitcast %struct.ifreq* %5 to i8*
%11 = bitcast %struct.ifreq* %6 to i8*
%12 = bitcast i32* %7 to i8*
%13 = icmp sgt i32 %0, 0
br i1 %13, label %14, label %289
14: ; preds = %2, %277
%15 = phi i8* [ %283, %277 ], [ null, %2 ]
%16 = phi i8* [ %282, %277 ], [ null, %2 ]
%17 = phi i8* [ %281, %277 ], [ null, %2 ]
%18 = phi i32 [ %280, %277 ], [ 0, %2 ]
%19 = phi i32 [ %279, %277 ], [ 0, %2 ]
%20 = phi i8* [ %278, %277 ], [ null, %2 ]
%21 = phi i8** [ %285, %277 ], [ %1, %2 ]
%22 = phi i32 [ %284, %277 ], [ %0, %2 ]
%23 = load i8*, i8** %21
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %14
%27 = load i32, i32* @IFF_UP
%28 = or i32 %27, %19
%29 = or i32 %27, %18
br label %277
30: ; preds = %14
%31 = load i8*, i8** %21
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, i32* @IFF_UP
%36 = or i32 %35, %19
%37 = xor i32 %35, -1
%38 = and i32 %18, %37
br label %277
39: ; preds = %30
%40 = load i8*, i8** %21
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %39
%44 = call i32 (...) @NEXT_ARG()
%45 = load i8*, i8** %21
br label %277
46: ; preds = %39
%47 = load i8*, i8** %21
%48 = call i64 @matches(i8* %47, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %46
%51 = call i32 (...) @NEXT_ARG()
%52 = load i8*, i8** %21
br label %277
53: ; preds = %46
%54 = load i8*, i8** %21
%55 = call i64 @matches(i8* %54, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %61, label %57
57: ; preds = %53
%58 = load i8*, i8** %21
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %57, %53
%62 = call i32 (...) @NEXT_ARG()
%63 = load i8*, i8** %21
br label %277
64: ; preds = %57
%65 = load i8*, i8** %21
%66 = call i64 @matches(i8* %65, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %76, label %68
68: ; preds = %64
%69 = load i8*, i8** %21
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %68
%73 = load i8*, i8** %21
%74 = call i64 @matches(i8* %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %90
76: ; preds = %72, %68, %64
%77 = call i32 (...) @NEXT_ARG()
%78 = load i32, i32* %3
%79 = icmp eq i32 %78, -1
br i1 %79, label %83, label %80
80: ; preds = %76
%81 = load i8*, i8** %21
%82 = call i32 @duparg(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %81)
br label %83
83: ; preds = %80, %76
%84 = load i8*, i8** %21
%85 = call i64 @get_integer(i32* %3, i8* %84, i32 0)
%86 = icmp eq i64 %85, 0
br i1 %86, label %277, label %87
87: ; preds = %83
%88 = load i8*, i8** %21
%89 = call i32 @invarg(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %88)
br label %277
90: ; preds = %72
%91 = load i8*, i8** %21
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %108
94: ; preds = %90
%95 = call i32 (...) @NEXT_ARG()
%96 = load i32, i32* %4
%97 = icmp eq i32 %96, -1
br i1 %97, label %101, label %98
98: ; preds = %94
%99 = load i8*, i8** %21
%100 = call i32 @duparg(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %98, %94
%102 = load i8*, i8** %21
%103 = call i64 @get_integer(i32* %4, i8* %102, i32 0)
%104 = icmp eq i64 %103, 0
br i1 %104, label %277, label %105
105: ; preds = %101
%106 = load i8*, i8** %21
%107 = call i32 @invarg(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i8* %106)
br label %277
108: ; preds = %90
%109 = load i8*, i8** %21
%110 = call i64 @strcmp(i8* %109, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %133
112: ; preds = %108
%113 = call i32 (...) @NEXT_ARG()
%114 = load i32, i32* @IFF_MULTICAST
%115 = or i32 %114, %19
%116 = load i8*, i8** %21
%117 = call i64 @strcmp(i8* %116, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %112
%120 = load i32, i32* @IFF_MULTICAST
%121 = or i32 %120, %18
br label %277
122: ; preds = %112
%123 = load i8*, i8** %21
%124 = call i64 @strcmp(i8* %123, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %130
126: ; preds = %122
%127 = load i32, i32* @IFF_MULTICAST
%128 = xor i32 %127, -1
%129 = and i32 %18, %128
br label %277
130: ; preds = %122
%131 = load i8*, i8** %21
%132 = call i32 @on_off(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* %131)
br label %349
133: ; preds = %108
%134 = load i8*, i8** %21
%135 = call i64 @strcmp(i8* %134, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %158
137: ; preds = %133
%138 = call i32 (...) @NEXT_ARG()
%139 = load i32, i32* @IFF_ALLMULTI
%140 = or i32 %139, %19
%141 = load i8*, i8** %21
%142 = call i64 @strcmp(i8* %141, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%143 = icmp eq i64 %142, 0
br i1 %143, label %144, label %147
144: ; preds = %137
%145 = load i32, i32* @IFF_ALLMULTI
%146 = or i32 %145, %18
br label %277
147: ; preds = %137
%148 = load i8*, i8** %21
%149 = call i64 @strcmp(i8* %148, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%150 = icmp eq i64 %149, 0
br i1 %150, label %151, label %155
151: ; preds = %147
%152 = load i32, i32* @IFF_ALLMULTI
%153 = xor i32 %152, -1
%154 = and i32 %18, %153
br label %277
155: ; preds = %147
%156 = load i8*, i8** %21
%157 = call i32 @on_off(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i8* %156)
br label %349
158: ; preds = %133
%159 = load i8*, i8** %21
%160 = call i64 @strcmp(i8* %159, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%161 = icmp eq i64 %160, 0
br i1 %161, label %162, label %183
162: ; preds = %158
%163 = call i32 (...) @NEXT_ARG()
%164 = load i32, i32* @IFF_PROMISC
%165 = or i32 %164, %19
%166 = load i8*, i8** %21
%167 = call i64 @strcmp(i8* %166, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%168 = icmp eq i64 %167, 0
br i1 %168, label %169, label %172
169: ; preds = %162
%170 = load i32, i32* @IFF_PROMISC
%171 = or i32 %170, %18
br label %277
172: ; preds = %162
%173 = load i8*, i8** %21
%174 = call i64 @strcmp(i8* %173, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %180
176: ; preds = %172
%177 = load i32, i32* @IFF_PROMISC
%178 = xor i32 %177, -1
%179 = and i32 %18, %178
br label %277
180: ; preds = %172
%181 = load i8*, i8** %21
%182 = call i32 @on_off(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8* %181)
br label %349
183: ; preds = %158
%184 = load i8*, i8** %21
%185 = call i64 @strcmp(i8* %184, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%186 = icmp eq i64 %185, 0
br i1 %186, label %187, label %208
187: ; preds = %183
%188 = call i32 (...) @NEXT_ARG()
%189 = load i32, i32* @IFF_NOTRAILERS
%190 = or i32 %189, %19
%191 = load i8*, i8** %21
%192 = call i64 @strcmp(i8* %191, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%193 = icmp eq i64 %192, 0
br i1 %193, label %194, label %197
194: ; preds = %187
%195 = load i32, i32* @IFF_NOTRAILERS
%196 = or i32 %195, %18
br label %277
197: ; preds = %187
%198 = load i8*, i8** %21
%199 = call i64 @strcmp(i8* %198, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %205
201: ; preds = %197
%202 = load i32, i32* @IFF_NOTRAILERS
%203 = xor i32 %202, -1
%204 = and i32 %18, %203
br label %277
205: ; preds = %197
%206 = load i8*, i8** %21
%207 = call i32 @on_off(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i8* %206)
br label %349
208: ; preds = %183
%209 = load i8*, i8** %21
%210 = call i64 @strcmp(i8* %209, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%211 = icmp eq i64 %210, 0
br i1 %211, label %212, label %233
212: ; preds = %208
%213 = call i32 (...) @NEXT_ARG()
%214 = load i32, i32* @IFF_NOARP
%215 = or i32 %214, %19
%216 = load i8*, i8** %21
%217 = call i64 @strcmp(i8* %216, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%218 = icmp eq i64 %217, 0
br i1 %218, label %219, label %223
219: ; preds = %212
%220 = load i32, i32* @IFF_NOARP
%221 = xor i32 %220, -1
%222 = and i32 %18, %221
br label %277
223: ; preds = %212
%224 = load i8*, i8** %21
%225 = call i64 @strcmp(i8* %224, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%226 = icmp eq i64 %225, 0
br i1 %226, label %227, label %230
227: ; preds = %223
%228 = load i32, i32* @IFF_NOARP
%229 = or i32 %228, %18
br label %277
230: ; preds = %223
%231 = load i8*, i8** %21
%232 = call i32 @on_off(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* %231)
br label %349
233: ; preds = %208
%234 = load i8*, i8** %21
%235 = call i64 @matches(i8* %234, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0))
%236 = icmp eq i64 %235, 0
br i1 %236, label %237, label %258
237: ; preds = %233
%238 = call i32 (...) @NEXT_ARG()
%239 = load i32, i32* @IFF_DYNAMIC
%240 = or i32 %239, %19
%241 = load i8*, i8** %21
%242 = call i64 @strcmp(i8* %241, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%243 = icmp eq i64 %242, 0
br i1 %243, label %244, label %247
244: ; preds = %237
%245 = load i32, i32* @IFF_DYNAMIC
%246 = or i32 %245, %18
br label %277
247: ; preds = %237
%248 = load i8*, i8** %21
%249 = call i64 @strcmp(i8* %248, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%250 = icmp eq i64 %249, 0
br i1 %250, label %251, label %255
251: ; preds = %247
%252 = load i32, i32* @IFF_DYNAMIC
%253 = xor i32 %252, -1
%254 = and i32 %18, %253
br label %277
255: ; preds = %247
%256 = load i8*, i8** %21
%257 = call i32 @on_off(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* %256)
br label %349
258: ; preds = %233
%259 = load i8*, i8** %21
%260 = call i64 @strcmp(i8* %259, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%261 = icmp eq i64 %260, 0
br i1 %261, label %262, label %264
262: ; preds = %258
%263 = call i32 (...) @NEXT_ARG()
br label %264
264: ; preds = %262, %258
%265 = load i8*, i8** %21
%266 = call i64 @matches(i8* %265, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0))
%267 = icmp eq i64 %266, 0
br i1 %267, label %268, label %270
268: ; preds = %264
%269 = call i32 (...) @usage()
br label %270
270: ; preds = %268, %264
%271 = icmp eq i8* %20, null
br i1 %271, label %275, label %272
272: ; preds = %270
%273 = load i8*, i8** %21
%274 = call i32 @duparg2(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* %273)
br label %275
275: ; preds = %272, %270
%276 = load i8*, i8** %21
br label %277
277: ; preds = %34, %50, %87, %83, %126, %119, %176, %169, %227, %219, %244, %251, %275, %194, %201, %144, %151, %101, %105, %61, %43, %26
%278 = phi i8* [ %20, %26 ], [ %20, %34 ], [ %20, %43 ], [ %20, %50 ], [ %20, %61 ], [ %20, %87 ], [ %20, %83 ], [ %20, %105 ], [ %20, %101 ], [ %20, %119 ], [ %20, %126 ], [ %20, %144 ], [ %20, %151 ], [ %20, %169 ], [ %20, %176 ], [ %20, %194 ], [ %20, %201 ], [ %20, %219 ], [ %20, %227 ], [ %20, %244 ], [ %20, %251 ], [ %276, %275 ]
%279 = phi i32 [ %28, %26 ], [ %36, %34 ], [ %19, %43 ], [ %19, %50 ], [ %19, %61 ], [ %19, %87 ], [ %19, %83 ], [ %19, %105 ], [ %19, %101 ], [ %115, %119 ], [ %115, %126 ], [ %140, %144 ], [ %140, %151 ], [ %165, %169 ], [ %165, %176 ], [ %190, %194 ], [ %190, %201 ], [ %215, %219 ], [ %215, %227 ], [ %240, %244 ], [ %240, %251 ], [ %19, %275 ]
%280 = phi i32 [ %29, %26 ], [ %38, %34 ], [ %18, %43 ], [ %18, %50 ], [ %18, %61 ], [ %18, %87 ], [ %18, %83 ], [ %18, %105 ], [ %18, %101 ], [ %121, %119 ], [ %129, %126 ], [ %146, %144 ], [ %154, %151 ], [ %171, %169 ], [ %179, %176 ], [ %196, %194 ], [ %204, %201 ], [ %222, %219 ], [ %229, %227 ], [ %246, %244 ], [ %254, %251 ], [ %18, %275 ]
%281 = phi i8* [ %17, %26 ], [ %17, %34 ], [ %17, %43 ], [ %52, %50 ], [ %17, %61 ], [ %17, %87 ], [ %17, %83 ], [ %17, %105 ], [ %17, %101 ], [ %17, %119 ], [ %17, %126 ], [ %17, %144 ], [ %17, %151 ], [ %17, %169 ], [ %17, %176 ], [ %17, %194 ], [ %17, %201 ], [ %17, %219 ], [ %17, %227 ], [ %17, %244 ], [ %17, %251 ], [ %17, %275 ]
%282 = phi i8* [ %16, %26 ], [ %16, %34 ], [ %16, %43 ], [ %16, %50 ], [ %63, %61 ], [ %16, %87 ], [ %16, %83 ], [ %16, %105 ], [ %16, %101 ], [ %16, %119 ], [ %16, %126 ], [ %16, %144 ], [ %16, %151 ], [ %16, %169 ], [ %16, %176 ], [ %16, %194 ], [ %16, %201 ], [ %16, %219 ], [ %16, %227 ], [ %16, %244 ], [ %16, %251 ], [ %16, %275 ]
%283 = phi i8* [ %15, %26 ], [ %15, %34 ], [ %45, %43 ], [ %15, %50 ], [ %15, %61 ], [ %15, %87 ], [ %15, %83 ], [ %15, %105 ], [ %15, %101 ], [ %15, %119 ], [ %15, %126 ], [ %15, %144 ], [ %15, %151 ], [ %15, %169 ], [ %15, %176 ], [ %15, %194 ], [ %15, %201 ], [ %15, %219 ], [ %15, %227 ], [ %15, %244 ], [ %15, %251 ], [ %15, %275 ]
%284 = add nsw i32 %22, -1
%285 = getelementptr inbounds i8*, i8** %21, i64 1
%286 = icmp sgt i32 %22, 1
br i1 %286, label %14, label %287
287: ; preds = %277
%288 = icmp eq i8* %278, null
br i1 %288, label %289, label %293
289: ; preds = %2, %287
%290 = load i32, i32* @stderr
%291 = call i32 @fprintf(i32 %290, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i64 0, i64 0))
%292 = call i32 @exit(i32 -1)
unreachable
293: ; preds = %287
%294 = icmp ne i8* %281, null
%295 = icmp ne i8* %282, null
%296 = select i1 %294, i1 true, i1 %295
br i1 %296, label %297, label %310
297: ; preds = %293
%298 = call i32 @get_address(i8* %278, i32* %7)
%299 = icmp slt i32 %298, 0
br i1 %299, label %349, label %300
300: ; preds = %297
br i1 %294, label %301, label %305
301: ; preds = %300
%302 = load i32, i32* %7
%303 = call i64 @parse_address(i8* %278, i32 %302, i32 %298, i8* %281, %struct.ifreq* %5)
%304 = icmp slt i64 %303, 0
br i1 %304, label %349, label %305
305: ; preds = %301, %300
br i1 %295, label %306, label %310
306: ; preds = %305
%307 = load i32, i32* %7
%308 = call i64 @parse_address(i8* %278, i32 %307, i32 %298, i8* %282, %struct.ifreq* %6)
%309 = icmp slt i64 %308, 0
br i1 %309, label %349, label %310
310: ; preds = %305, %306, %293
%311 = icmp eq i8* %283, null
br i1 %311, label %323, label %312
312: ; preds = %310
%313 = call i64 @strcmp(i8* %278, i8* %283)
%314 = icmp eq i64 %313, 0
br i1 %314, label %323, label %315
315: ; preds = %312
%316 = load i8, i8* %283
%317 = icmp eq i8 %316, 0
br i1 %317, label %318, label %320
318: ; preds = %315
%319 = call i32 @invarg(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %320
320: ; preds = %318, %315
%321 = call i64 @do_changename(i8* %278, i8* %283)
%322 = icmp slt i64 %321, 0
br i1 %322, label %349, label %323
323: ; preds = %320, %312, %310
%324 = phi i8* [ %278, %312 ], [ %278, %310 ], [ %283, %320 ]
%325 = load i32, i32* %3
%326 = icmp eq i32 %325, -1
br i1 %326, label %330, label %327
327: ; preds = %323
%328 = call i64 @set_qlen(i8* %324, i32 %325)
%329 = icmp slt i64 %328, 0
br i1 %329, label %349, label %330
330: ; preds = %327, %323
%331 = load i32, i32* %4
%332 = icmp eq i32 %331, -1
br i1 %332, label %336, label %333
333: ; preds = %330
%334 = call i64 @set_mtu(i8* %324, i32 %331)
%335 = icmp slt i64 %334, 0
br i1 %335, label %349, label %336
336: ; preds = %333, %330
br i1 %296, label %337, label %345
337: ; preds = %336
br i1 %295, label %338, label %341
338: ; preds = %337
%339 = call i64 @set_address(%struct.ifreq* %6, i32 1)
%340 = icmp slt i64 %339, 0
br i1 %340, label %349, label %341
341: ; preds = %338, %337
br i1 %294, label %342, label %345
342: ; preds = %341
%343 = call i64 @set_address(%struct.ifreq* %5, i32 0)
%344 = icmp slt i64 %343, 0
br i1 %344, label %349, label %345
345: ; preds = %341, %342, %336
%346 = icmp eq i32 %279, 0
br i1 %346, label %349, label %347
347: ; preds = %345
%348 = call i32 @do_chflags(i8* %324, i32 %280, i32 %279)
br label %349
349: ; preds = %345, %342, %338, %333, %327, %320, %306, %301, %297, %347, %255, %230, %205, %180, %155, %130
%350 = phi i32 [ %132, %130 ], [ %157, %155 ], [ %182, %180 ], [ %207, %205 ], [ %232, %230 ], [ %257, %255 ], [ %348, %347 ], [ -1, %297 ], [ -1, %301 ], [ -1, %306 ], [ -1, %320 ], [ -1, %327 ], [ -1, %333 ], [ -1, %338 ], [ -1, %342 ], [ 0, %345 ]
ret i32 %350
}