#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 sockaddr_nl {
  int nl_groups;
  int nlmsg_len;
  int nlmsg_pid;
  int nlmsg_type;
  int msg_namelen;
  int msg_iovlen;
  struct iovec *msg_iov;
  void *msg_name;
  int /*<<< orphan*/ nlmsg_flags;
  scalar_t__ nl_pid;
  scalar_t__ nl_pad;
  int /*<<< orphan*/ nl_family;
};
struct nlmsghdr {
  int nl_groups;
  int nlmsg_len;
  int nlmsg_pid;
  int nlmsg_type;
  int msg_namelen;
  int msg_iovlen;
  struct iovec *msg_iov;
  void *msg_name;
  int /*<<< orphan*/ nlmsg_flags;
  scalar_t__ nl_pid;
  scalar_t__ nl_pad;
  int /*<<< orphan*/ nl_family;
};
struct msghdr {
  int nl_groups;
  int nlmsg_len;
  int nlmsg_pid;
  int nlmsg_type;
  int msg_namelen;
  int msg_iovlen;
  struct iovec *msg_iov;
  void *msg_name;
  int /*<<< orphan*/ nlmsg_flags;
  scalar_t__ nl_pid;
  scalar_t__ nl_pad;
  int /*<<< orphan*/ nl_family;
};
struct iovec {
  int iov_len;
  void *iov_base;
};
typedef int /*<<< orphan*/ msg;
typedef int /*<<< orphan*/ d_nladdr;

/* Variables and functions */
int /*<<< orphan*/ AF_NETLINK;
scalar_t__ NLMSG_DATA(struct sockaddr_nl *);
int NLMSG_HDRLEN;
int NLMSG_SPACE(int);
int /*<<< orphan*/ NLM_F_REQUEST;
int /*<<< orphan*/ free(struct sockaddr_nl *);
int getpid();
scalar_t__ malloc(int);
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memset(struct sockaddr_nl *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int sendmsg(int, struct sockaddr_nl *, int /*<<< orphan*/);
int netlink_send(int fd, int cmd, int payloadlen, char *payload) {
  struct sockaddr_nl d_nladdr;
  struct nlmsghdr *nlh = NULL;
  char *data;
  struct iovec iov;
  struct msghdr msg;
  int ret;
  memset(&d_nladdr, 0, sizeof(d_nladdr));
  d_nladdr.nl_family = AF_NETLINK;
  d_nladdr.nl_pad = 0;
  d_nladdr.nl_pid = 0;
  d_nladdr.nl_groups = 1;
  nlh = (struct nlmsghdr *)malloc(NLMSG_SPACE(payloadlen) + NLMSG_HDRLEN + 1);
  if (nlh == NULL) {
    printf("netlink_send(): netlink header memory not allocated\n");
    return -1;
  }
  memset(nlh, 0, NLMSG_SPACE(payloadlen) + NLMSG_HDRLEN + 1);
  nlh->nlmsg_len = NLMSG_SPACE(payloadlen + 1);
  nlh->nlmsg_pid = getpid();
  printf("ieee80211 netlink_send(): sending app pid = %u\n", nlh->nlmsg_pid);
  nlh->nlmsg_flags = NLM_F_REQUEST;
  nlh->nlmsg_type = 21;
  data = (char *)NLMSG_DATA(nlh);
  data[0] = cmd;
  memcpy(&data[1], payload, payloadlen);
  iov.iov_base = (void *)nlh;
  iov.iov_len = nlh->nlmsg_len;
  memset(&msg, 0, sizeof(msg));
  msg.msg_name = (void *)&d_nladdr;
  msg.msg_namelen = sizeof(d_nladdr);
  msg.msg_iov = &iov;
  msg.msg_iovlen = 1;
  ret = sendmsg(fd, &msg, 0);
  free(nlh);
  return ret;
}


x86 assembly (clang, -O0):
<netlink_send>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movq   $0x0,-0x68(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   1070 <memset@plt>
mov    0x2e11(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x1,-0x60(%rbp)
mov    -0x10(%rbp),%edi
call   1080 <NLMSG_SPACE@plt>
mov    %eax,%edi
mov    0x2dfc(%rip),%rax
add    (%rax),%edi
add    $0x1,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jne    1227 <netlink_send+0x97>
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    134e <netlink_send+0x1be>
mov    -0x68(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x10(%rbp),%edi
call   1080 <NLMSG_SPACE@plt>
mov    -0xd8(%rbp),%rdi
mov    %eax,%edx
mov    0x2da6(%rip),%rax
add    (%rax),%edx
add    $0x1,%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x10(%rbp),%edi
add    $0x1,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x68(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2d4a(%rip),%rax
mov    (%rax),%ecx
mov    -0x68(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    -0x68(%rbp),%rax
movl   $0x15,0xc(%rax)
mov    -0x68(%rbp),%rdi
call   10a0 <NLMSG_DATA@plt>
mov    %rax,-0x70(%rbp)
mov    -0xc(%rbp),%eax
mov    %al,%cl
mov    -0x70(%rbp),%rax
mov    %cl,(%rax)
mov    -0x70(%rbp),%rdi
add    $0x1,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%edx
call   1090 <memcpy@plt>
mov    -0x68(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x68(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x80(%rbp)
lea    -0xc8(%rbp),%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   1070 <memset@plt>
lea    -0x60(%rbp),%rax
mov    %rax,-0xa8(%rbp)
movl   $0x48,-0xb8(%rbp)
lea    -0x80(%rbp),%rax
mov    %rax,-0xb0(%rbp)
movl   $0x1,-0xb4(%rbp)
mov    -0x8(%rbp),%edi
lea    -0xc8(%rbp),%rsi
xor    %edx,%edx
call   1040 <sendmsg@plt>
mov    %eax,-0xcc(%rbp)
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0xcc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<netlink_send>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,%r12
mov    %edx,%ebp
mov    %esi,%r13d
mov    %edi,%r15d
lea    0x18(%rsp),%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   1080 <memset@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x58(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x48(%rsp)
movl   $0x1,0x18(%rsp)
mov    %ebp,%edi
call   1090 <NLMSG_SPACE@plt>
mov    0x2df8(%rip),%r14
mov    (%r14),%ecx
lea    (%rax,%rcx,1),%edi
add    $0x1,%edi
call   10c0 <malloc@plt>
test   %rax,%rax
je     12dc <netlink_send+0x13c>
mov    %rax,%rbx
mov    %ebp,%edi
call   1090 <NLMSG_SPACE@plt>
mov    (%r14),%ecx
lea    (%rax,%rcx,1),%edx
add    $0x1,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1080 <memset@plt>
lea    0x1(%rbp),%edi
call   1090 <NLMSG_SPACE@plt>
mov    %eax,0x4(%rbx)
xor    %eax,%eax
call   1060 <getpid@plt>
mov    %eax,0x8(%rbx)
lea    0xdb8(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2d88(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rbx)
movl   $0x15,0xc(%rbx)
mov    %rbx,%rdi
call   10b0 <NLMSG_DATA@plt>
mov    %r13b,(%rax)
lea    0x1(%rax),%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   10a0 <memcpy@plt>
mov    %rbx,0x10(%rsp)
mov    0x4(%rbx),%eax
mov    %eax,0x8(%rsp)
lea    0x60(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   1080 <memset@plt>
lea    0x18(%rsp),%rax
mov    %rax,0x80(%rsp)
movabs $0x100000048,%rax
mov    %rax,0x70(%rsp)
lea    0x8(%rsp),%rax
mov    %rax,0x78(%rsp)
mov    %r15d,%edi
mov    %rbp,%rsi
xor    %edx,%edx
call   1040 <sendmsg@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <free@plt>
jmp    12ed <netlink_send+0x14d>
lea    0xd4d(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_nl = type { i32, i32, i32, i32, i32, i32, %struct.iovec*, i8*, i32, i64, i64, i32 }
%struct.iovec = type { i32, i8* }
%struct.nlmsghdr = type { i32, i32, i32, i32, i32, i32, %struct.iovec*, i8*, i32, i64, i64, i32 }
%struct.msghdr = type { i32, i32, i32, i32, i32, i32, %struct.iovec*, i8*, i32, i64, i64, i32 }
@AF_NETLINK = global i32 0
@NLMSG_HDRLEN = global i32 0
@.str = [53 x i8] c"netlink_send(): netlink header memory not allocated\0A\00"
@.str.1 = [48 x i8] c"ieee80211 netlink_send(): sending app pid = %u\0A\00"
@NLM_F_REQUEST = global i32 0
define i32 @netlink_send(i32 %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca %struct.sockaddr_nl
%11 = alloca %struct.nlmsghdr*
%12 = alloca i8*
%13 = alloca %struct.iovec
%14 = alloca %struct.msghdr
%15 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store %struct.nlmsghdr* null, %struct.nlmsghdr** %11
%16 = call i32 @memset(%struct.sockaddr_nl* %10, i32 0, i32 72)
%17 = load i32, i32* @AF_NETLINK
%18 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %10, i32 0, i32 11
store i32 %17, i32* %18
%19 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %10, i32 0, i32 10
store i64 0, i64* %19
%20 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %10, i32 0, i32 9
store i64 0, i64* %20
%21 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %10, i32 0, i32 0
store i32 1, i32* %21
%22 = load i32, i32* %8
%23 = call i32 @NLMSG_SPACE(i32 %22)
%24 = load i32, i32* @NLMSG_HDRLEN
%25 = add nsw i32 %23, %24
%26 = add nsw i32 %25, 1
%27 = call i64 @malloc(i32 %26)
%28 = inttoptr i64 %27 to %struct.nlmsghdr*
store %struct.nlmsghdr* %28, %struct.nlmsghdr** %11
%29 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%30 = icmp eq %struct.nlmsghdr* %29, null
br i1 %30, label %31, label %33
31: ; preds = %4
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %5
br label %93
33: ; preds = %4
%34 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%35 = bitcast %struct.nlmsghdr* %34 to %struct.sockaddr_nl*
%36 = load i32, i32* %8
%37 = call i32 @NLMSG_SPACE(i32 %36)
%38 = load i32, i32* @NLMSG_HDRLEN
%39 = add nsw i32 %37, %38
%40 = add nsw i32 %39, 1
%41 = call i32 @memset(%struct.sockaddr_nl* %35, i32 0, i32 %40)
%42 = load i32, i32* %8
%43 = add nsw i32 %42, 1
%44 = call i32 @NLMSG_SPACE(i32 %43)
%45 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%46 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %45, i32 0, i32 1
store i32 %44, i32* %46
%47 = call i32 (...) @getpid()
%48 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%49 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %48, i32 0, i32 2
store i32 %47, i32* %49
%50 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%51 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %50, i32 0, i32 2
%52 = load i32, i32* %51
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%54 = load i32, i32* @NLM_F_REQUEST
%55 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%56 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %55, i32 0, i32 8
store i32 %54, i32* %56
%57 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%58 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %57, i32 0, i32 3
store i32 21, i32* %58
%59 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%60 = bitcast %struct.nlmsghdr* %59 to %struct.sockaddr_nl*
%61 = call i64 @NLMSG_DATA(%struct.sockaddr_nl* %60)
%62 = inttoptr i64 %61 to i8*
store i8* %62, i8** %12
%63 = load i32, i32* %7
%64 = trunc i32 %63 to i8
%65 = load i8*, i8** %12
%66 = getelementptr inbounds i8, i8* %65, i64 0
store i8 %64, i8* %66
%67 = load i8*, i8** %12
%68 = getelementptr inbounds i8, i8* %67, i64 1
%69 = load i8*, i8** %9
%70 = load i32, i32* %8
%71 = call i32 @memcpy(i8* %68, i8* %69, i32 %70)
%72 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%73 = bitcast %struct.nlmsghdr* %72 to i8*
%74 = getelementptr inbounds %struct.iovec, %struct.iovec* %13, i32 0, i32 1
store i8* %73, i8** %74
%75 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%76 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %75, i32 0, i32 1
%77 = load i32, i32* %76
%78 = getelementptr inbounds %struct.iovec, %struct.iovec* %13, i32 0, i32 0
store i32 %77, i32* %78
%79 = bitcast %struct.msghdr* %14 to %struct.sockaddr_nl*
%80 = call i32 @memset(%struct.sockaddr_nl* %79, i32 0, i32 72)
%81 = bitcast %struct.sockaddr_nl* %10 to i8*
%82 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %14, i32 0, i32 7
store i8* %81, i8** %82
%83 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %14, i32 0, i32 4
store i32 72, i32* %83
%84 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %14, i32 0, i32 6
store %struct.iovec* %13, %struct.iovec** %84
%85 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %14, i32 0, i32 5
store i32 1, i32* %85
%86 = load i32, i32* %6
%87 = bitcast %struct.msghdr* %14 to %struct.sockaddr_nl*
%88 = call i32 @sendmsg(i32 %86, %struct.sockaddr_nl* %87, i32 0)
store i32 %88, i32* %15
%89 = load %struct.nlmsghdr*, %struct.nlmsghdr** %11
%90 = bitcast %struct.nlmsghdr* %89 to %struct.sockaddr_nl*
%91 = call i32 @free(%struct.sockaddr_nl* %90)
%92 = load i32, i32* %15
store i32 %92, i32* %5
br label %93
93: ; preds = %33, %31
%94 = load i32, i32* %5
ret i32 %94
}

LLVM IR (-O2):
%struct.sockaddr_nl = type { i32, i32, i32, i32, i32, i32, %struct.iovec*, i8*, i32, i64, i64, i32 }
%struct.iovec = type { i32, i8* }
%struct.msghdr = type { i32, i32, i32, i32, i32, i32, %struct.iovec*, i8*, i32, i64, i64, i32 }
%struct.nlmsghdr = type { i32, i32, i32, i32, i32, i32, %struct.iovec*, i8*, i32, i64, i64, i32 }
@AF_NETLINK = global i32 0
@NLMSG_HDRLEN = global i32 0
@.str.1 = [48 x i8] c"ieee80211 netlink_send(): sending app pid = %u\0A\00"
@NLM_F_REQUEST = global i32 0
@str = [52 x i8] c"netlink_send(): netlink header memory not allocated\00"
define i32 @netlink_send(i32 %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca %struct.sockaddr_nl
%6 = alloca %struct.iovec
%7 = alloca %struct.msghdr
%8 = bitcast %struct.sockaddr_nl* %5 to i8*
%9 = bitcast %struct.iovec* %6 to i8*
%10 = bitcast %struct.msghdr* %7 to i8*
%11 = call i32 @memset(%struct.sockaddr_nl* %5, i32 0, i32 72)
%12 = load i32, i32* @AF_NETLINK
%13 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %5, i64 0, i32 11
store i32 %12, i32* %13
%14 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %5, i64 0, i32 9
%15 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %5, i64 0, i32 0
%16 = bitcast i64* %14 to i8*
store i32 1, i32* %15
%17 = call i32 @NLMSG_SPACE(i32 %2)
%18 = load i32, i32* @NLMSG_HDRLEN
%19 = add i32 %17, 1
%20 = add i32 %19, %18
%21 = call i64 @malloc(i32 %20)
%22 = inttoptr i64 %21 to %struct.nlmsghdr*
%23 = icmp eq i64 %21, 0
br i1 %23, label %24, label %26
24: ; preds = %4
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
br label %60
26: ; preds = %4
%27 = inttoptr i64 %21 to %struct.sockaddr_nl*
%28 = call i32 @NLMSG_SPACE(i32 %2)
%29 = load i32, i32* @NLMSG_HDRLEN
%30 = add i32 %28, 1
%31 = add i32 %30, %29
%32 = call i32 @memset(%struct.sockaddr_nl* %27, i32 0, i32 %31)
%33 = add nsw i32 %2, 1
%34 = call i32 @NLMSG_SPACE(i32 %33)
%35 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %22, i64 0, i32 1
store i32 %34, i32* %35
%36 = call i32 (...) @getpid()
%37 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %22, i64 0, i32 2
store i32 %36, i32* %37
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%39 = load i32, i32* @NLM_F_REQUEST
%40 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %22, i64 0, i32 8
store i32 %39, i32* %40
%41 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %22, i64 0, i32 3
store i32 21, i32* %41
%42 = call i64 @NLMSG_DATA(%struct.sockaddr_nl* %27)
%43 = inttoptr i64 %42 to i8*
%44 = trunc i32 %1 to i8
store i8 %44, i8* %43
%45 = getelementptr inbounds i8, i8* %43, i64 1
%46 = call i32 @memcpy(i8* %45, i8* %3, i32 %2)
%47 = inttoptr i64 %21 to i8*
%48 = getelementptr inbounds %struct.iovec, %struct.iovec* %6, i64 0, i32 1
store i8* %47, i8** %48
%49 = load i32, i32* %35
%50 = getelementptr inbounds %struct.iovec, %struct.iovec* %6, i64 0, i32 0
store i32 %49, i32* %50
%51 = bitcast %struct.msghdr* %7 to %struct.sockaddr_nl*
%52 = call i32 @memset(%struct.sockaddr_nl* %51, i32 0, i32 72)
%53 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %7, i64 0, i32 7
%54 = bitcast i8** %53 to %struct.sockaddr_nl**
store %struct.sockaddr_nl* %5, %struct.sockaddr_nl** %54
%55 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %7, i64 0, i32 4
store i32 72, i32* %55
%56 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %7, i64 0, i32 6
store %struct.iovec* %6, %struct.iovec** %56
%57 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %7, i64 0, i32 5
store i32 1, i32* %57
%58 = call i32 @sendmsg(i32 %0, %struct.sockaddr_nl* %51, i32 0)
%59 = call i32 @free(%struct.sockaddr_nl* %27)
br label %60
60: ; preds = %26, %24
%61 = phi i32 [ -1, %24 ], [ %58, %26 ]
ret i32 %61
}