#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct sockaddr_ll {
  scalar_t__ sll_hatype;
  int *sll_addr;
};
struct ifaddrs {
  TYPE_1__ *ifa_addr;
  struct ifaddrs *ifa_next;
};
struct TYPE_2__ {
  scalar_t__ sa_family;
};

/* Variables and functions */
scalar_t__ AF_PACKET;
scalar_t__ ARPHRD_ETHER;
scalar_t__ ARPHRD_INFINIBAND;
int /*<<< orphan*/ freeifaddrs(struct ifaddrs *);
int /*<<< orphan*/ getifaddrs(struct ifaddrs **);
int /*<<< orphan*/ snprintf(char *, int, char *, int, int, int, int, int, int,
                            ...);
int /*<<< orphan*/ strncpy(char *, char *, int);
scalar_t__ strnlen(char *, int);
void add_macs(char *destination, int maxsize) {
  struct ifaddrs *ifc, *ifa;
  struct sockaddr_ll *lla;
  int offset;
  char macaddr[32];
  offset = 0;
  getifaddrs(&ifa);
  for (ifc = ifa; ifc != NULL; ifc = ifc->ifa_next) {
    if (ifc->ifa_addr->sa_family != AF_PACKET)
      continue;
    lla = (struct sockaddr_ll *)ifc->ifa_addr;
    if (lla->sll_hatype == ARPHRD_INFINIBAND) {
      snprintf(macaddr, 32, "/mac=%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
               lla->sll_addr[12], lla->sll_addr[13], lla->sll_addr[14],
               lla->sll_addr[15], lla->sll_addr[16], lla->sll_addr[17],
               lla->sll_addr[18], lla->sll_addr[19]);
    } else if (lla->sll_hatype == ARPHRD_ETHER) {
      snprintf(macaddr, 32, "/mac=%02x:%02x:%02x:%02x:%02x:%02x",
               lla->sll_addr[0], lla->sll_addr[1], lla->sll_addr[2],
               lla->sll_addr[3], lla->sll_addr[4], lla->sll_addr[5]);
    } else {
      continue;
    }
    strncpy(destination + offset, macaddr, maxsize - offset);
    offset += strnlen(macaddr, 32);
  }
  freeifaddrs(ifa);
}


x86 assembly (clang, -O0):
<add_macs>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x80,%rsp
mov    %rdi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
movl   $0x0,-0x3c(%rbp)
lea    -0x30(%rbp),%rdi
call   1060 <getifaddrs@plt>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     132d <add_macs+0x1dd>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    0x2e3f(%rip),%rcx
cmp    (%rcx),%rax
je     11a7 <add_macs+0x57>
jmp    131c <add_macs+0x1cc>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    0x2e10(%rip),%rcx
cmp    (%rcx),%rax
jne    1258 <add_macs+0x108>
lea    -0x60(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x30(%rax),%ecx
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x34(%rax),%r8d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x38(%rax),%r9d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x3c(%rax),%r14d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x40(%rax),%ebx
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x44(%rax),%r11d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x48(%rax),%r10d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x4c(%rax),%eax
mov    $0x20,%esi
lea    0xdca(%rip),%rdx
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1040 <snprintf@plt>
jmp    12e7 <add_macs+0x197>
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    0x2d82(%rip),%rcx
cmp    (%rcx),%rax
jne    12dd <add_macs+0x18d>
lea    -0x60(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    (%rax),%ecx
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x4(%rax),%r8d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%r9d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0xc(%rax),%r11d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x10(%rax),%r10d
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x14(%rax),%eax
mov    $0x20,%esi
lea    0xd69(%rip),%rdx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <snprintf@plt>
jmp    12e2 <add_macs+0x192>
jmp    131c <add_macs+0x1cc>
jmp    12e7 <add_macs+0x197>
mov    -0x18(%rbp),%rdi
movslq -0x3c(%rbp),%rax
add    %rax,%rdi
lea    -0x60(%rbp),%rsi
mov    -0x1c(%rbp),%edx
sub    -0x3c(%rbp),%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
mov    $0x20,%esi
call   1050 <strnlen@plt>
mov    %rax,%rcx
movslq -0x3c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
jmp    117d <add_macs+0x2d>
mov    -0x30(%rbp),%rdi
call   1070 <freeifaddrs@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_macs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %esi,0xc(%rsp)
mov    %rdi,0x18(%rsp)
lea    0x10(%rsp),%rdi
call   1060 <getifaddrs@plt>
mov    0x10(%rsp),%r12
xor    %edi,%edi
test   %r12,%r12
je     1296 <add_macs+0x146>
mov    0x2e50(%rip),%rax
mov    (%rax),%rax
mov    0x2e3e(%rip),%r15
lea    0x20(%rsp),%r14
xor    %ebx,%ebx
jmp    1232 <add_macs+0xe2>
xchg   %ax,%ax
mov    0x8(%rcx),%rax
mov    0x30(%rax),%ecx
mov    0x34(%rax),%r8d
mov    0x38(%rax),%r9d
mov    0x3c(%rax),%r10d
mov    0x40(%rax),%r11d
mov    0x44(%rax),%ebp
mov    %r14,%rdi
mov    %r15,%r14
mov    0x48(%rax),%r15d
mov    0x4c(%rax),%r13d
sub    $0x8,%rsp
mov    $0x20,%esi
lea    0xe28(%rip),%rdx
xor    %eax,%eax
push   %r13
push   %r15
mov    %r14,%r15
mov    %rdi,%r14
push   %rbp
push   %r11
push   %r10
call   1040 <snprintf@plt>
add    $0x30,%rsp
movslq %ebx,%rbp
mov    0x18(%rsp),%rax
lea    (%rax,%rbp,1),%rdi
mov    0xc(%rsp),%edx
sub    %ebp,%edx
mov    %r14,%rsi
call   1030 <strncpy@plt>
mov    %r14,%rdi
mov    $0x20,%esi
call   1050 <strnlen@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    0x2db3(%rip),%rax
mov    (%rax),%rax
mov    0x8(%r12),%r12
test   %r12,%r12
je     1291 <add_macs+0x141>
mov    (%r12),%rcx
cmp    %rax,(%rcx)
jne    1228 <add_macs+0xd8>
cmp    (%r15),%rax
je     11a0 <add_macs+0x50>
mov    0x2d9d(%rip),%rdx
cmp    (%rdx),%rax
jne    1228 <add_macs+0xd8>
mov    0x8(%rcx),%rax
mov    (%rax),%ecx
mov    0x4(%rax),%r8d
mov    0x8(%rax),%r9d
mov    0xc(%rax),%r10d
mov    0x10(%rax),%r11d
mov    0x14(%rax),%ebp
sub    $0x8,%rsp
mov    %r14,%rdi
mov    $0x20,%esi
lea    0xdb1(%rip),%rdx
xor    %eax,%eax
push   %rbp
push   %r11
push   %r10
call   1040 <snprintf@plt>
add    $0x20,%rsp
jmp    11f2 <add_macs+0xa2>
mov    0x10(%rsp),%rdi
call   1070 <freeifaddrs@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ifaddrs = type { %struct.TYPE_2__*, %struct.ifaddrs* }
%struct.TYPE_2__ = type { i64 }
%struct.sockaddr_ll = type { i64, i32* }
@AF_PACKET = global i64 0
@ARPHRD_INFINIBAND = global i64 0
@.str = [45 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\00"
@ARPHRD_ETHER = global i64 0
@.str.1 = [35 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x\00"
define void @add_macs(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca %struct.ifaddrs*
%6 = alloca %struct.ifaddrs*
%7 = alloca %struct.sockaddr_ll*
%8 = alloca i32
%9 = alloca [32 x i8]
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32 0, i32* %8
%10 = call i32 @getifaddrs(%struct.ifaddrs** %6)
%11 = load %struct.ifaddrs*, %struct.ifaddrs** %6
store %struct.ifaddrs* %11, %struct.ifaddrs** %5
br label %12
12: ; preds = %134, %2
%13 = load %struct.ifaddrs*, %struct.ifaddrs** %5
%14 = icmp ne %struct.ifaddrs* %13, null
br i1 %14, label %15, label %138
15: ; preds = %12
%16 = load %struct.ifaddrs*, %struct.ifaddrs** %5
%17 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %16, i32 0, i32 0
%18 = load %struct.TYPE_2__*, %struct.TYPE_2__** %17
%19 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %18, i32 0, i32 0
%20 = load i64, i64* %19
%21 = load i64, i64* @AF_PACKET
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %15
br label %134
24: ; preds = %15
%25 = load %struct.ifaddrs*, %struct.ifaddrs** %5
%26 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %25, i32 0, i32 0
%27 = load %struct.TYPE_2__*, %struct.TYPE_2__** %26
%28 = bitcast %struct.TYPE_2__* %27 to %struct.sockaddr_ll*
store %struct.sockaddr_ll* %28, %struct.sockaddr_ll** %7
%29 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%30 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %29, i32 0, i32 0
%31 = load i64, i64* %30
%32 = load i64, i64* @ARPHRD_INFINIBAND
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %77
34: ; preds = %24
%35 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%36 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%37 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %36, i32 0, i32 1
%38 = load i32*, i32** %37
%39 = getelementptr inbounds i32, i32* %38, i64 12
%40 = load i32, i32* %39
%41 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%42 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %41, i32 0, i32 1
%43 = load i32*, i32** %42
%44 = getelementptr inbounds i32, i32* %43, i64 13
%45 = load i32, i32* %44
%46 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%47 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %46, i32 0, i32 1
%48 = load i32*, i32** %47
%49 = getelementptr inbounds i32, i32* %48, i64 14
%50 = load i32, i32* %49
%51 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%52 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %51, i32 0, i32 1
%53 = load i32*, i32** %52
%54 = getelementptr inbounds i32, i32* %53, i64 15
%55 = load i32, i32* %54
%56 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%57 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %56, i32 0, i32 1
%58 = load i32*, i32** %57
%59 = getelementptr inbounds i32, i32* %58, i64 16
%60 = load i32, i32* %59
%61 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%62 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %61, i32 0, i32 1
%63 = load i32*, i32** %62
%64 = getelementptr inbounds i32, i32* %63, i64 17
%65 = load i32, i32* %64
%66 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%67 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %66, i32 0, i32 1
%68 = load i32*, i32** %67
%69 = getelementptr inbounds i32, i32* %68, i64 18
%70 = load i32, i32* %69
%71 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%72 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %71, i32 0, i32 1
%73 = load i32*, i32** %72
%74 = getelementptr inbounds i32, i32* %73, i64 19
%75 = load i32, i32* %74
%76 = call i32 (i8*, i32, i8*, i32, i32, i32, i32, i32, i32, ...) @snprintf(i8* %35, i32 32, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %40, i32 %45, i32 %50, i32 %55, i32 %60, i32 %65, i32 %70, i32 %75)
br label %118
77: ; preds = %24
%78 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%79 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %78, i32 0, i32 0
%80 = load i64, i64* %79
%81 = load i64, i64* @ARPHRD_ETHER
%82 = icmp eq i64 %80, %81
br i1 %82, label %83, label %116
83: ; preds = %77
%84 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%85 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%86 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %85, i32 0, i32 1
%87 = load i32*, i32** %86
%88 = getelementptr inbounds i32, i32* %87, i64 0
%89 = load i32, i32* %88
%90 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%91 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %90, i32 0, i32 1
%92 = load i32*, i32** %91
%93 = getelementptr inbounds i32, i32* %92, i64 1
%94 = load i32, i32* %93
%95 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%96 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %95, i32 0, i32 1
%97 = load i32*, i32** %96
%98 = getelementptr inbounds i32, i32* %97, i64 2
%99 = load i32, i32* %98
%100 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%101 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %100, i32 0, i32 1
%102 = load i32*, i32** %101
%103 = getelementptr inbounds i32, i32* %102, i64 3
%104 = load i32, i32* %103
%105 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%106 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %105, i32 0, i32 1
%107 = load i32*, i32** %106
%108 = getelementptr inbounds i32, i32* %107, i64 4
%109 = load i32, i32* %108
%110 = load %struct.sockaddr_ll*, %struct.sockaddr_ll** %7
%111 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %110, i32 0, i32 1
%112 = load i32*, i32** %111
%113 = getelementptr inbounds i32, i32* %112, i64 5
%114 = load i32, i32* %113
%115 = call i32 (i8*, i32, i8*, i32, i32, i32, i32, i32, i32, ...) @snprintf(i8* %84, i32 32, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i32 %89, i32 %94, i32 %99, i32 %104, i32 %109, i32 %114)
br label %117
116: ; preds = %77
br label %134
117: ; preds = %83
br label %118
118: ; preds = %117, %34
%119 = load i8*, i8** %3
%120 = load i32, i32* %8
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, i8* %119, i64 %121
%123 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%124 = load i32, i32* %4
%125 = load i32, i32* %8
%126 = sub nsw i32 %124, %125
%127 = call i32 @strncpy(i8* %122, i8* %123, i32 %126)
%128 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%129 = call i64 @strnlen(i8* %128, i32 32)
%130 = load i32, i32* %8
%131 = sext i32 %130 to i64
%132 = add nsw i64 %131, %129
%133 = trunc i64 %132 to i32
store i32 %133, i32* %8
br label %134
134: ; preds = %118, %116, %23
%135 = load %struct.ifaddrs*, %struct.ifaddrs** %5
%136 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %135, i32 0, i32 1
%137 = load %struct.ifaddrs*, %struct.ifaddrs** %136
store %struct.ifaddrs* %137, %struct.ifaddrs** %5
br label %12
138: ; preds = %12
%139 = load %struct.ifaddrs*, %struct.ifaddrs** %6
%140 = call i32 @freeifaddrs(%struct.ifaddrs* %139)
ret void
}

LLVM IR (-O2):
%struct.ifaddrs = type { %struct.TYPE_2__*, %struct.ifaddrs* }
%struct.TYPE_2__ = type { i64 }
@AF_PACKET = global i64 0
@ARPHRD_INFINIBAND = global i64 0
@.str = [45 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\00"
@ARPHRD_ETHER = global i64 0
@.str.1 = [35 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x\00"
define void @add_macs(i8* %0, i32 %1) {
%3 = alloca %struct.ifaddrs*
%4 = alloca [32 x i8]
%5 = bitcast %struct.ifaddrs** %3 to i8*
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%7 = call i32 @getifaddrs(%struct.ifaddrs** %3)
%8 = load %struct.ifaddrs*, %struct.ifaddrs** %3
%9 = icmp eq %struct.ifaddrs* %8, null
br i1 %9, label %81, label %10
10: ; preds = %2
%11 = load i64, i64* @AF_PACKET
br label %12
12: ; preds = %10, %73
%13 = phi i64 [ %74, %73 ], [ %11, %10 ]
%14 = phi %struct.ifaddrs* [ %77, %73 ], [ %8, %10 ]
%15 = phi i32 [ %75, %73 ], [ 0, %10 ]
%16 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %14, i64 0, i32 0
%17 = load %struct.TYPE_2__*, %struct.TYPE_2__** %16
%18 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %17, i64 0, i32 0
%19 = load i64, i64* %18
%20 = icmp eq i64 %19, %13
br i1 %20, label %21, label %73
21: ; preds = %12
%22 = load i64, i64* @ARPHRD_INFINIBAND
%23 = icmp eq i64 %13, %22
br i1 %23, label %24, label %45
24: ; preds = %21
%25 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %17, i64 1
%26 = bitcast %struct.TYPE_2__* %25 to i32**
%27 = load i32*, i32** %26
%28 = getelementptr inbounds i32, i32* %27, i64 12
%29 = load i32, i32* %28
%30 = getelementptr inbounds i32, i32* %27, i64 13
%31 = load i32, i32* %30
%32 = getelementptr inbounds i32, i32* %27, i64 14
%33 = load i32, i32* %32
%34 = getelementptr inbounds i32, i32* %27, i64 15
%35 = load i32, i32* %34
%36 = getelementptr inbounds i32, i32* %27, i64 16
%37 = load i32, i32* %36
%38 = getelementptr inbounds i32, i32* %27, i64 17
%39 = load i32, i32* %38
%40 = getelementptr inbounds i32, i32* %27, i64 18
%41 = load i32, i32* %40
%42 = getelementptr inbounds i32, i32* %27, i64 19
%43 = load i32, i32* %42
%44 = call i32 (i8*, i32, i8*, i32, i32, i32, i32, i32, i32, ...) @snprintf(i8* %6, i32 32, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %29, i32 %31, i32 %33, i32 %35, i32 %37, i32 %39, i32 %41, i32 %43)
br label %64
45: ; preds = %21
%46 = load i64, i64* @ARPHRD_ETHER
%47 = icmp eq i64 %13, %46
br i1 %47, label %48, label %73
48: ; preds = %45
%49 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %17, i64 1
%50 = bitcast %struct.TYPE_2__* %49 to i32**
%51 = load i32*, i32** %50
%52 = load i32, i32* %51
%53 = getelementptr inbounds i32, i32* %51, i64 1
%54 = load i32, i32* %53
%55 = getelementptr inbounds i32, i32* %51, i64 2
%56 = load i32, i32* %55
%57 = getelementptr inbounds i32, i32* %51, i64 3
%58 = load i32, i32* %57
%59 = getelementptr inbounds i32, i32* %51, i64 4
%60 = load i32, i32* %59
%61 = getelementptr inbounds i32, i32* %51, i64 5
%62 = load i32, i32* %61
%63 = call i32 (i8*, i32, i8*, i32, i32, i32, i32, i32, i32, ...) @snprintf(i8* %6, i32 32, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i32 %52, i32 %54, i32 %56, i32 %58, i32 %60, i32 %62)
br label %64
64: ; preds = %48, %24
%65 = sext i32 %15 to i64
%66 = getelementptr inbounds i8, i8* %0, i64 %65
%67 = sub nsw i32 %1, %15
%68 = call i32 @strncpy(i8* %66, i8* %6, i32 %67)
%69 = call i64 @strnlen(i8* %6, i32 32)
%70 = trunc i64 %69 to i32
%71 = add i32 %15, %70
%72 = load i64, i64* @AF_PACKET
br label %73
73: ; preds = %45, %12, %64
%74 = phi i64 [ %13, %12 ], [ %72, %64 ], [ %13, %45 ]
%75 = phi i32 [ %15, %12 ], [ %71, %64 ], [ %15, %45 ]
%76 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %14, i64 0, i32 1
%77 = load %struct.ifaddrs*, %struct.ifaddrs** %76
%78 = icmp eq %struct.ifaddrs* %77, null
br i1 %78, label %79, label %12
79: ; preds = %73
%80 = load %struct.ifaddrs*, %struct.ifaddrs** %3
br label %81
81: ; preds = %79, %2
%82 = phi %struct.ifaddrs* [ %80, %79 ], [ null, %2 ]
%83 = call i32 @freeifaddrs(%struct.ifaddrs* %82)
ret void
}