#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_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct sockaddr_in {
  int /*<<< orphan*/ sin_addr;
};
struct TYPE_3__ {
  int /*<<< orphan*/ s_addr;
};
struct ip_mreq {
  int /*<<< orphan*/ imr_interface;
  TYPE_1__ imr_multiaddr;
};
struct ifaddrs {
  int ifa_flags;
  struct ifaddrs *ifa_next;
  TYPE_2__ *ifa_addr;
};
typedef int /*<<< orphan*/ multicast_req;
struct TYPE_4__ {
  scalar_t__ sa_family;
};

/* Variables and functions */
scalar_t__ AF_INET;
int IFF_LOOPBACK;
int IFF_MULTICAST;
int IFF_POINTOPOINT;
int /*<<< orphan*/ IPPROTO_IP;
int /*<<< orphan*/ IP_ADD_MEMBERSHIP;
int /*<<< orphan*/ IP_DROP_MEMBERSHIP;
int /*<<< orphan*/ freeifaddrs(struct ifaddrs *);
scalar_t__ getifaddrs(struct ifaddrs **);
int /*<<< orphan*/ inet_addr(char const *);
char *inet_ntoa(int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct ip_mreq *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char const *, char *);
scalar_t__ setsockopt(int const, int /*<<< orphan*/, int /*<<< orphan*/,
                      struct ip_mreq *, int);
int join_multicast_group_on_all_ifaces(const int sock_fd,
                                       const char *group_ip) {
  struct ifaddrs *addrs;
  if (getifaddrs(&addrs) < 0) {
    return -1;
  }
  const struct ifaddrs *cursor = addrs;
  int joined_count = 0;
  while (cursor != NULL) {
    if (cursor->ifa_addr->sa_family == AF_INET &&
        !(cursor->ifa_flags & IFF_LOOPBACK) &&
        !(cursor->ifa_flags & IFF_POINTOPOINT) &&
        (cursor->ifa_flags & IFF_MULTICAST)) {
      struct ip_mreq multicast_req;
      memset(&multicast_req, 0, sizeof(multicast_req));
      multicast_req.imr_multiaddr.s_addr = inet_addr(group_ip);
      multicast_req.imr_interface =
          ((struct sockaddr_in *)cursor->ifa_addr)->sin_addr;
      setsockopt(sock_fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &multicast_req,
                 sizeof(multicast_req));
      if (setsockopt(sock_fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &multicast_req,
                     sizeof(multicast_req)) >= 0) {
        printf("[e131] Joined multicast group %s on %s\n", group_ip,
               inet_ntoa(((struct sockaddr_in *)cursor->ifa_addr)->sin_addr));
        joined_count++;
      } else {
        freeifaddrs(addrs);
        return -1;
      }
    }
    cursor = cursor->ifa_next;
  }
  freeifaddrs(addrs);
  return joined_count;
}


x86 assembly (clang, -O0):
<join_multicast_group_on_all_ifaces>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x18(%rbp),%rdi
call   1080 <getifaddrs@plt>
cmp    $0x0,%rax
jge    119e <join_multicast_group_on_all_ifaces+0x2e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1308 <join_multicast_group_on_all_ifaces+0x198>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     12f9 <join_multicast_group_on_all_ifaces+0x189>
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%rax
mov    0x2e0e(%rip),%rcx
cmp    (%rcx),%rax
jne    12e8 <join_multicast_group_on_all_ifaces+0x178>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    0x2e18(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
jne    12e8 <join_multicast_group_on_all_ifaces+0x178>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    0x2dc8(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
jne    12e8 <join_multicast_group_on_all_ifaces+0x178>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    0x2db8(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     12e8 <join_multicast_group_on_all_ifaces+0x178>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1060 <memset@plt>
mov    -0x10(%rbp),%rdi
call   1070 <inet_addr@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2d82(%rip),%rax
mov    (%rax),%esi
mov    0x2d59(%rip),%rax
mov    (%rax),%edx
lea    -0x30(%rbp),%rcx
mov    $0x8,%r8d
call   1030 <setsockopt@plt>
mov    -0x8(%rbp),%edi
mov    0x2d5e(%rip),%rax
mov    (%rax),%esi
mov    0x2d65(%rip),%rax
mov    (%rax),%edx
lea    -0x30(%rbp),%rcx
mov    $0x8,%r8d
call   1030 <setsockopt@plt>
cmp    $0x0,%rax
jl     12ce <join_multicast_group_on_all_ifaces+0x15e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%edi
call   1040 <inet_ntoa@plt>
mov    -0x38(%rbp),%rsi
mov    %rax,%rdx
lea    0xd45(%rip),%rdi
call   1050 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12e3 <join_multicast_group_on_all_ifaces+0x173>
mov    -0x18(%rbp),%rdi
call   1090 <freeifaddrs@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1308 <join_multicast_group_on_all_ifaces+0x198>
jmp    12e8 <join_multicast_group_on_all_ifaces+0x178>
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    11ad <join_multicast_group_on_all_ifaces+0x3d>
mov    -0x18(%rbp),%rdi
call   1090 <freeifaddrs@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<join_multicast_group_on_all_ifaces>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
lea    0x10(%rsp),%rdi
call   1080 <getifaddrs@plt>
mov    $0xffffffff,%r15d
test   %rax,%rax
js     12c8 <join_multicast_group_on_all_ifaces+0x158>
mov    0x10(%rsp),%r12
test   %r12,%r12
je     12be <join_multicast_group_on_all_ifaces+0x14e>
mov    %ebx,0x1c(%rsp)
mov    %rbp,0x20(%rsp)
mov    0x2e1e(%rip),%rax
mov    (%rax),%rax
xor    %r15d,%r15d
mov    0x2e31(%rip),%rdx
mov    0x2df2(%rip),%r14
mov    0x2df3(%rip),%rbp
mov    0x20(%rsp),%r13
mov    0x1c(%rsp),%ebx
jmp    11ee <join_multicast_group_on_all_ifaces+0x7e>
mov    0x8(%r12),%r12
test   %r12,%r12
je     12b7 <join_multicast_group_on_all_ifaces+0x147>
mov    0x10(%r12),%rcx
cmp    %rax,(%rcx)
jne    11e0 <join_multicast_group_on_all_ifaces+0x70>
mov    (%r12),%ecx
test   %ecx,(%rdx)
jne    11e0 <join_multicast_group_on_all_ifaces+0x70>
test   %ecx,(%r14)
jne    11e0 <join_multicast_group_on_all_ifaces+0x70>
test   %ecx,0x0(%rbp)
je     11e0 <join_multicast_group_on_all_ifaces+0x70>
lea    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1060 <memset@plt>
mov    %r13,%rdi
call   1070 <inet_addr@plt>
mov    %eax,0xc(%rsp)
mov    0x10(%r12),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2d97(%rip),%rax
mov    (%rax),%esi
mov    0x2d6e(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
lea    0x8(%rsp),%rcx
mov    $0x8,%r8d
call   1030 <setsockopt@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%esi
mov    0x2d7a(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
lea    0x8(%rsp),%rcx
mov    $0x8,%r8d
call   1030 <setsockopt@plt>
test   %rax,%rax
js     12da <join_multicast_group_on_all_ifaces+0x16a>
mov    0x10(%r12),%rax
mov    (%rax),%edi
call   1040 <inet_ntoa@plt>
lea    0xd6e(%rip),%rdi
mov    %r13,%rsi
mov    %rax,%rdx
call   1050 <printf@plt>
add    $0x1,%r15d
mov    0x2d30(%rip),%rax
mov    (%rax),%rax
mov    0x2d46(%rip),%rdx
jmp    11e0 <join_multicast_group_on_all_ifaces+0x70>
mov    0x10(%rsp),%rdi
jmp    12c3 <join_multicast_group_on_all_ifaces+0x153>
xor    %edi,%edi
xor    %r15d,%r15d
call   1090 <freeifaddrs@plt>
mov    %r15d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rsp),%rdi
call   1090 <freeifaddrs@plt>
mov    $0xffffffff,%r15d
jmp    12c8 <join_multicast_group_on_all_ifaces+0x158>

LLVM IR (-O0):
%struct.ifaddrs = type { i32, %struct.ifaddrs*, %struct.TYPE_4__* }
%struct.TYPE_4__ = type { i64 }
%struct.ip_mreq = type { i32, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.sockaddr_in = type { i32 }
@AF_INET = global i64 0
@IFF_LOOPBACK = global i32 0
@IFF_POINTOPOINT = global i32 0
@IFF_MULTICAST = global i32 0
@IPPROTO_IP = global i32 0
@IP_DROP_MEMBERSHIP = global i32 0
@IP_ADD_MEMBERSHIP = global i32 0
@.str = [40 x i8] c"[e131] Joined multicast group %s on %s\0A\00"
define i32 @join_multicast_group_on_all_ifaces(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca %struct.ifaddrs*
%7 = alloca %struct.ifaddrs*
%8 = alloca i32
%9 = alloca %struct.ip_mreq
store i32 %0, i32* %4
store i8* %1, i8** %5
%10 = call i64 @getifaddrs(%struct.ifaddrs** %6)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 -1, i32* %3
br label %93
13: ; preds = %2
%14 = load %struct.ifaddrs*, %struct.ifaddrs** %6
store %struct.ifaddrs* %14, %struct.ifaddrs** %7
store i32 0, i32* %8
br label %15
15: ; preds = %85, %13
%16 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%17 = icmp ne %struct.ifaddrs* %16, null
br i1 %17, label %18, label %89
18: ; preds = %15
%19 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%20 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %19, i32 0, i32 2
%21 = load %struct.TYPE_4__*, %struct.TYPE_4__** %20
%22 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %21, i32 0, i32 0
%23 = load i64, i64* %22
%24 = load i64, i64* @AF_INET
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %85
26: ; preds = %18
%27 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%28 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %27, i32 0, i32 0
%29 = load i32, i32* %28
%30 = load i32, i32* @IFF_LOOPBACK
%31 = and i32 %29, %30
%32 = icmp ne i32 %31, 0
br i1 %32, label %85, label %33
33: ; preds = %26
%34 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%35 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %34, i32 0, i32 0
%36 = load i32, i32* %35
%37 = load i32, i32* @IFF_POINTOPOINT
%38 = and i32 %36, %37
%39 = icmp ne i32 %38, 0
br i1 %39, label %85, label %40
40: ; preds = %33
%41 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%42 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %41, i32 0, i32 0
%43 = load i32, i32* %42
%44 = load i32, i32* @IFF_MULTICAST
%45 = and i32 %43, %44
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %85
47: ; preds = %40
%48 = call i32 @memset(%struct.ip_mreq* %9, i32 0, i32 8)
%49 = load i8*, i8** %5
%50 = call i32 @inet_addr(i8* %49)
%51 = getelementptr inbounds %struct.ip_mreq, %struct.ip_mreq* %9, i32 0, i32 1
%52 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %51, i32 0, i32 0
store i32 %50, i32* %52
%53 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%54 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %53, i32 0, i32 2
%55 = load %struct.TYPE_4__*, %struct.TYPE_4__** %54
%56 = bitcast %struct.TYPE_4__* %55 to %struct.sockaddr_in*
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %56, i32 0, i32 0
%58 = load i32, i32* %57
%59 = getelementptr inbounds %struct.ip_mreq, %struct.ip_mreq* %9, i32 0, i32 0
store i32 %58, i32* %59
%60 = load i32, i32* %4
%61 = load i32, i32* @IPPROTO_IP
%62 = load i32, i32* @IP_DROP_MEMBERSHIP
%63 = call i64 @setsockopt(i32 %60, i32 %61, i32 %62, %struct.ip_mreq* %9, i32 8)
%64 = load i32, i32* %4
%65 = load i32, i32* @IPPROTO_IP
%66 = load i32, i32* @IP_ADD_MEMBERSHIP
%67 = call i64 @setsockopt(i32 %64, i32 %65, i32 %66, %struct.ip_mreq* %9, i32 8)
%68 = icmp sge i64 %67, 0
br i1 %68, label %69, label %81
69: ; preds = %47
%70 = load i8*, i8** %5
%71 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%72 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %71, i32 0, i32 2
%73 = load %struct.TYPE_4__*, %struct.TYPE_4__** %72
%74 = bitcast %struct.TYPE_4__* %73 to %struct.sockaddr_in*
%75 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %74, i32 0, i32 0
%76 = load i32, i32* %75
%77 = call i8* @inet_ntoa(i32 %76)
%78 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %70, i8* %77)
%79 = load i32, i32* %8
%80 = add nsw i32 %79, 1
store i32 %80, i32* %8
br label %84
81: ; preds = %47
%82 = load %struct.ifaddrs*, %struct.ifaddrs** %6
%83 = call i32 @freeifaddrs(%struct.ifaddrs* %82)
store i32 -1, i32* %3
br label %93
84: ; preds = %69
br label %85
85: ; preds = %84, %40, %33, %26, %18
%86 = load %struct.ifaddrs*, %struct.ifaddrs** %7
%87 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %86, i32 0, i32 1
%88 = load %struct.ifaddrs*, %struct.ifaddrs** %87
store %struct.ifaddrs* %88, %struct.ifaddrs** %7
br label %15
89: ; preds = %15
%90 = load %struct.ifaddrs*, %struct.ifaddrs** %6
%91 = call i32 @freeifaddrs(%struct.ifaddrs* %90)
%92 = load i32, i32* %8
store i32 %92, i32* %3
br label %93
93: ; preds = %89, %81, %12
%94 = load i32, i32* %3
ret i32 %94
}

LLVM IR (-O2):
%struct.ifaddrs = type { i32, %struct.ifaddrs*, %struct.TYPE_4__* }
%struct.TYPE_4__ = type { i64 }
%struct.ip_mreq = type { i32, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.sockaddr_in = type { i32 }
@AF_INET = global i64 0
@IFF_LOOPBACK = global i32 0
@IFF_POINTOPOINT = global i32 0
@IFF_MULTICAST = global i32 0
@IPPROTO_IP = global i32 0
@IP_DROP_MEMBERSHIP = global i32 0
@IP_ADD_MEMBERSHIP = global i32 0
@.str = [40 x i8] c"[e131] Joined multicast group %s on %s\0A\00"
define i32 @join_multicast_group_on_all_ifaces(i32 %0, i8* %1) {
%3 = alloca %struct.ifaddrs*
%4 = alloca %struct.ip_mreq
%5 = bitcast %struct.ifaddrs** %3 to i8*
%6 = call i64 @getifaddrs(%struct.ifaddrs** %3)
%7 = icmp slt i64 %6, 0
br i1 %7, label %76, label %8
8: ; preds = %2
%9 = load %struct.ifaddrs*, %struct.ifaddrs** %3
%10 = icmp eq %struct.ifaddrs* %9, null
br i1 %10, label %72, label %11
11: ; preds = %8
%12 = bitcast %struct.ip_mreq* %4 to i8*
%13 = getelementptr inbounds %struct.ip_mreq, %struct.ip_mreq* %4, i64 0, i32 1, i32 0
%14 = getelementptr inbounds %struct.ip_mreq, %struct.ip_mreq* %4, i64 0, i32 0
%15 = load i64, i64* @AF_INET
br label %16
16: ; preds = %11, %64
%17 = phi i64 [ %15, %11 ], [ %65, %64 ]
%18 = phi %struct.ifaddrs* [ %9, %11 ], [ %68, %64 ]
%19 = phi i32 [ 0, %11 ], [ %66, %64 ]
%20 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %18, i64 0, i32 2
%21 = load %struct.TYPE_4__*, %struct.TYPE_4__** %20
%22 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %21, i64 0, i32 0
%23 = load i64, i64* %22
%24 = icmp eq i64 %23, %17
br i1 %24, label %25, label %64
25: ; preds = %16
%26 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %18, i64 0, i32 0
%27 = load i32, i32* %26
%28 = load i32, i32* @IFF_LOOPBACK
%29 = and i32 %28, %27
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %64
31: ; preds = %25
%32 = load i32, i32* @IFF_POINTOPOINT
%33 = and i32 %32, %27
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %64
35: ; preds = %31
%36 = load i32, i32* @IFF_MULTICAST
%37 = and i32 %36, %27
%38 = icmp eq i32 %37, 0
br i1 %38, label %64, label %39
39: ; preds = %35
%40 = call i32 @memset(%struct.ip_mreq* %4, i32 0, i32 8)
%41 = call i32 @inet_addr(i8* %1)
store i32 %41, i32* %13
%42 = bitcast %struct.TYPE_4__** %20 to %struct.sockaddr_in**
%43 = load %struct.sockaddr_in*, %struct.sockaddr_in** %42
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %43, i64 0, i32 0
%45 = load i32, i32* %44
store i32 %45, i32* %14
%46 = load i32, i32* @IPPROTO_IP
%47 = load i32, i32* @IP_DROP_MEMBERSHIP
%48 = call i64 @setsockopt(i32 %0, i32 %46, i32 %47, %struct.ip_mreq* %4, i32 8)
%49 = load i32, i32* @IPPROTO_IP
%50 = load i32, i32* @IP_ADD_MEMBERSHIP
%51 = call i64 @setsockopt(i32 %0, i32 %49, i32 %50, %struct.ip_mreq* %4, i32 8)
%52 = icmp sgt i64 %51, -1
br i1 %52, label %53, label %61
53: ; preds = %39
%54 = load %struct.sockaddr_in*, %struct.sockaddr_in** %42
%55 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %54, i64 0, i32 0
%56 = load i32, i32* %55
%57 = call i8* @inet_ntoa(i32 %56)
%58 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %57)
%59 = add nsw i32 %19, 1
%60 = load i64, i64* @AF_INET
br label %64
61: ; preds = %39
%62 = load %struct.ifaddrs*, %struct.ifaddrs** %3
%63 = call i32 @freeifaddrs(%struct.ifaddrs* %62)
br label %76
64: ; preds = %53, %35, %31, %25, %16
%65 = phi i64 [ %17, %25 ], [ %17, %31 ], [ %17, %35 ], [ %17, %16 ], [ %60, %53 ]
%66 = phi i32 [ %19, %25 ], [ %19, %31 ], [ %19, %35 ], [ %19, %16 ], [ %59, %53 ]
%67 = getelementptr inbounds %struct.ifaddrs, %struct.ifaddrs* %18, i64 0, i32 1
%68 = load %struct.ifaddrs*, %struct.ifaddrs** %67
%69 = icmp eq %struct.ifaddrs* %68, null
br i1 %69, label %70, label %16
70: ; preds = %64
%71 = load %struct.ifaddrs*, %struct.ifaddrs** %3
br label %72
72: ; preds = %70, %8
%73 = phi %struct.ifaddrs* [ null, %8 ], [ %71, %70 ]
%74 = phi i32 [ 0, %8 ], [ %66, %70 ]
%75 = call i32 @freeifaddrs(%struct.ifaddrs* %73)
br label %76
76: ; preds = %61, %72, %2
%77 = phi i32 [ -1, %2 ], [ -1, %61 ], [ %74, %72 ]
ret i32 %77
}