#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 /*<<< orphan*/ nl_pid;
  int /*<<< orphan*/ nl_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ buffersize;

/* Variables and functions */
int /*<<< orphan*/ AF_NETLINK;
int /*<<< orphan*/ PF_NETLINK;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int SO_RCVBUF;
int /*<<< orphan*/ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ memset(struct sockaddr_nl *, int, int);
scalar_t__ setsockopt(int, int /*<<< orphan*/, int, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int init_netlink_socket(int type) {
  int netlink_socket;
  struct sockaddr_nl snl;
  int buffersize = 16 * 1024 * 1024;
  memset(&snl, 0x00, sizeof(struct sockaddr_nl));
  snl.nl_family = AF_NETLINK;
  snl.nl_pid = getpid();
  snl.nl_groups = 1;
  netlink_socket = socket(PF_NETLINK, SOCK_DGRAM, 15);
  if (netlink_socket == -1) {
    fprintf(stderr,
            "[%s]: "
            "Failed socket: %s."
            "\n",
            "opening netlink", strerror(errno));
    ;
    return -1;
  }
  if (setsockopt(netlink_socket, SOL_SOCKET, 33, &buffersize,
                 sizeof(buffersize))) {
    fprintf(stderr,
            "[%s]: "
            "Failed setsockopt: %s. (non-critical)"
            "\n",
            "opening netlink", strerror(errno));
    ;
    buffersize = 106496;
    if (setsockopt(netlink_socket, SOL_SOCKET, SO_RCVBUF, &buffersize,
                   sizeof(buffersize))) {
      fprintf(stderr,
              "[%s]: "
              "Failed setsockopt: %s. (critical)"
              "\n",
              "opening netlink", strerror(errno));
      ;
    }
  }
  switch (type) {
  case 1:
    if (connect(netlink_socket, (struct sockaddr *)&snl,
                sizeof(struct sockaddr_nl))) {
      fprintf(stderr,
              "[%s]: "
              "Failed connect: %s."
              "\n",
              "opening netlink", strerror(errno));
      ;
      close(netlink_socket);
      return -1;
    }
  default:
    if (bind(netlink_socket, (struct sockaddr *)&snl,
             sizeof(struct sockaddr_nl))) {
      fprintf(stderr,
              "[%s]: "
              "Failed bind: %s."
              "\n",
              "opening netlink", strerror(errno));
      ;
      close(netlink_socket);
      return -1;
    }
  }
  return netlink_socket;
}


x86 assembly (clang, -O0):
<init_netlink_socket>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x1000000,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
mov    0x2de2(%rip),%rax
mov    (%rax),%edi
mov    0x2e01(%rip),%rax
mov    (%rax),%esi
mov    $0xf,%edx
call   10b0 <socket@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xffffffff,-0xc(%rbp)
jne    1237 <init_netlink_socket+0xa7>
mov    0x2dc1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x20(%rbp),%edi
mov    %rax,%rcx
lea    0xde1(%rip),%rsi
lea    0xdf4(%rip),%rdx
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13e4 <init_netlink_socket+0x254>
mov    -0xc(%rbp),%edi
mov    0x2da7(%rip),%rax
mov    (%rax),%esi
mov    $0x21,%edx
lea    -0x1c(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
cmp    $0x0,%rax
je     1301 <init_netlink_socket+0x171>
mov    0x2d58(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2d3c(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x24(%rbp),%edi
mov    %rax,%rcx
lea    0xda2(%rip),%rsi
lea    0xd8b(%rip),%rdx
call   1070 <fprintf@plt>
movl   $0x1a000,-0x1c(%rbp)
mov    -0xc(%rbp),%edi
mov    0x2d43(%rip),%rax
mov    (%rax),%esi
mov    0x2d1a(%rip),%rax
mov    (%rax),%edx
lea    -0x1c(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
cmp    $0x0,%rax
je     12fc <init_netlink_socket+0x16c>
mov    0x2cf0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2cd4(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x28(%rbp),%edi
mov    %rax,%rcx
lea    0xd67(%rip),%rsi
lea    0xd23(%rip),%rdx
call   1070 <fprintf@plt>
jmp    1301 <init_netlink_socket+0x171>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
jne    1378 <init_netlink_socket+0x1e8>
jmp    1312 <init_netlink_socket+0x182>
mov    -0xc(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0xc,%edx
call   1090 <connect@plt>
cmp    $0x0,%eax
je     1373 <init_netlink_socket+0x1e3>
mov    0x2c8d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2c71(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x2c(%rbp),%edi
mov    %rax,%rcx
lea    0xd2d(%rip),%rsi
lea    0xcc0(%rip),%rdx
call   1070 <fprintf@plt>
mov    -0xc(%rbp),%edi
call   1060 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13e4 <init_netlink_socket+0x254>
jmp    1378 <init_netlink_socket+0x1e8>
mov    -0xc(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0xc,%edx
call   1080 <bind@plt>
cmp    $0x0,%eax
je     13d9 <init_netlink_socket+0x249>
mov    0x2c27(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2c0b(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x30(%rbp),%edi
mov    %rax,%rcx
lea    0xce2(%rip),%rsi
lea    0xc5a(%rip),%rdx
call   1070 <fprintf@plt>
mov    -0xc(%rbp),%edi
call   1060 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13e4 <init_netlink_socket+0x254>
jmp    13de <init_netlink_socket+0x24e>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_netlink_socket>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edi,%r14d
movl   $0x1000000,0x4(%rsp)
01
lea    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2e17(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
xor    %eax,%eax
call   1040 <getpid@plt>
mov    %eax,0xc(%rsp)
movl   $0x1,0x8(%rsp)
mov    0x2dd7(%rip),%rax
mov    (%rax),%edi
mov    0x2df6(%rip),%rax
mov    (%rax),%esi
mov    $0xf,%edx
call   10b0 <socket@plt>
cmp    $0xffffffff,%eax
je     1336 <init_netlink_socket+0x1a6>
mov    %eax,%ebx
mov    0x2de0(%rip),%r15
mov    (%r15),%esi
lea    0x4(%rsp),%rcx
mov    %eax,%edi
mov    $0x21,%edx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
test   %rax,%rax
je     12ae <init_netlink_socket+0x11e>
mov    0x2d8e(%rip),%r12
mov    (%r12),%ebp
mov    0x2d73(%rip),%r13
mov    0x0(%r13),%edi
call   10a0 <strerror@plt>
lea    0xddd(%rip),%rsi
lea    0xdc6(%rip),%rdx
mov    %ebp,%edi
mov    %rax,%rcx
call   1070 <fprintf@plt>
movl   $0x1a000,0x4(%rsp)
mov    (%r15),%esi
mov    0x2d58(%rip),%rax
mov    (%rax),%edx
lea    0x4(%rsp),%rcx
mov    %ebx,%edi
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
test   %rax,%rax
je     12ae <init_netlink_socket+0x11e>
mov    (%r12),%ebp
mov    0x0(%r13),%edi
call   10a0 <strerror@plt>
lea    0xdba(%rip),%rsi
lea    0xd76(%rip),%rdx
mov    %ebp,%edi
mov    %rax,%rcx
call   1070 <fprintf@plt>
cmp    $0x1,%r14d
jne    12e9 <init_netlink_socket+0x159>
lea    0x8(%rsp),%rsi
mov    %ebx,%edi
mov    $0xc,%edx
call   1090 <connect@plt>
test   %eax,%eax
je     12e9 <init_netlink_socket+0x159>
mov    0x2cf0(%rip),%rax
mov    (%rax),%ebp
mov    0x2cd7(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xd99(%rip),%rsi
jmp    131c <init_netlink_socket+0x18c>
lea    0x8(%rsp),%rsi
mov    %ebx,%edi
mov    $0xc,%edx
call   1080 <bind@plt>
test   %eax,%eax
je     136a <init_netlink_socket+0x1da>
mov    0x2cbb(%rip),%rax
mov    (%rax),%ebp
mov    0x2ca2(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xd7f(%rip),%rsi
lea    0xcf7(%rip),%rdx
mov    %ebp,%edi
mov    %rax,%rcx
call   1070 <fprintf@plt>
mov    %ebx,%edi
call   1060 <close@plt>
jmp    1365 <init_netlink_socket+0x1d5>
mov    0x2c83(%rip),%rax
mov    (%rax),%ebx
mov    0x2c6a(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xcac(%rip),%rsi
lea    0xcbf(%rip),%rdx
mov    %ebx,%edi
mov    %rax,%rcx
call   1070 <fprintf@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_nl = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@AF_NETLINK = global i32 0
@PF_NETLINK = global i32 0
@SOCK_DGRAM = global i32 0
@stderr = global i32 0
@.str = [26 x i8] c"[%s]: Failed socket: %s.\0A\00"
@.str.1 = [16 x i8] c"opening netlink\00"
@errno = global i32 0
@SOL_SOCKET = global i32 0
@.str.2 = [45 x i8] c"[%s]: Failed setsockopt: %s. (non-critical)\0A\00"
@SO_RCVBUF = global i32 0
@.str.3 = [41 x i8] c"[%s]: Failed setsockopt: %s. (critical)\0A\00"
@.str.4 = [27 x i8] c"[%s]: Failed connect: %s.\0A\00"
@.str.5 = [24 x i8] c"[%s]: Failed bind: %s.\0A\00"
define i32 @init_netlink_socket(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sockaddr_nl
%6 = alloca i32
store i32 %0, i32* %3
store i32 16777216, i32* %6
%7 = call i32 @memset(%struct.sockaddr_nl* %5, i32 0, i32 12)
%8 = load i32, i32* @AF_NETLINK
%9 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %5, i32 0, i32 2
store i32 %8, i32* %9
%10 = call i32 (...) @getpid()
%11 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %5, i32 0, i32 1
store i32 %10, i32* %11
%12 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %5, i32 0, i32 0
store i32 1, i32* %12
%13 = load i32, i32* @PF_NETLINK
%14 = load i32, i32* @SOCK_DGRAM
%15 = call i32 @socket(i32 %13, i32 %14, i32 15)
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %23
18: ; preds = %1
%19 = load i32, i32* @stderr
%20 = load i32, i32* @errno
%21 = call i8* @strerror(i32 %20)
%22 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %21)
store i32 -1, i32* %2
br label %74
23: ; preds = %1
%24 = load i32, i32* %4
%25 = load i32, i32* @SOL_SOCKET
%26 = call i64 @setsockopt(i32 %24, i32 %25, i32 33, i32* %6, i32 4)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %44
28: ; preds = %23
%29 = load i32, i32* @stderr
%30 = load i32, i32* @errno
%31 = call i8* @strerror(i32 %30)
%32 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %31)
store i32 106496, i32* %6
%33 = load i32, i32* %4
%34 = load i32, i32* @SOL_SOCKET
%35 = load i32, i32* @SO_RCVBUF
%36 = call i64 @setsockopt(i32 %33, i32 %34, i32 %35, i32* %6, i32 4)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %28
%39 = load i32, i32* @stderr
%40 = load i32, i32* @errno
%41 = call i8* @strerror(i32 %40)
%42 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %41)
br label %43
43: ; preds = %38, %28
br label %44
44: ; preds = %43, %23
%45 = load i32, i32* %3
switch i32 %45, label %59 [
i32 1, label %46
]
46: ; preds = %44
%47 = load i32, i32* %4
%48 = bitcast %struct.sockaddr_nl* %5 to %struct.sockaddr*
%49 = call i32 @connect(i32 %47, %struct.sockaddr* %48, i32 12)
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %58
51: ; preds = %46
%52 = load i32, i32* @stderr
%53 = load i32, i32* @errno
%54 = call i8* @strerror(i32 %53)
%55 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %54)
%56 = load i32, i32* %4
%57 = call i32 @close(i32 %56)
store i32 -1, i32* %2
br label %74
58: ; preds = %46
br label %59
59: ; preds = %44, %58
%60 = load i32, i32* %4
%61 = bitcast %struct.sockaddr_nl* %5 to %struct.sockaddr*
%62 = call i32 @bind(i32 %60, %struct.sockaddr* %61, i32 12)
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %71
64: ; preds = %59
%65 = load i32, i32* @stderr
%66 = load i32, i32* @errno
%67 = call i8* @strerror(i32 %66)
%68 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %67)
%69 = load i32, i32* %4
%70 = call i32 @close(i32 %69)
store i32 -1, i32* %2
br label %74
71: ; preds = %59
br label %72
72: ; preds = %71
%73 = load i32, i32* %4
store i32 %73, i32* %2
br label %74
74: ; preds = %72, %64, %51, %18
%75 = load i32, i32* %2
ret i32 %75
}

LLVM IR (-O2):
%struct.sockaddr_nl = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@AF_NETLINK = global i32 0
@PF_NETLINK = global i32 0
@SOCK_DGRAM = global i32 0
@stderr = global i32 0
@.str = [26 x i8] c"[%s]: Failed socket: %s.\0A\00"
@.str.1 = [16 x i8] c"opening netlink\00"
@errno = global i32 0
@SOL_SOCKET = global i32 0
@.str.2 = [45 x i8] c"[%s]: Failed setsockopt: %s. (non-critical)\0A\00"
@SO_RCVBUF = global i32 0
@.str.3 = [41 x i8] c"[%s]: Failed setsockopt: %s. (critical)\0A\00"
@.str.4 = [27 x i8] c"[%s]: Failed connect: %s.\0A\00"
@.str.5 = [24 x i8] c"[%s]: Failed bind: %s.\0A\00"
define i32 @init_netlink_socket(i32 %0) {
%2 = alloca %struct.sockaddr_nl
%3 = alloca i32
%4 = bitcast %struct.sockaddr_nl* %2 to i8*
%5 = bitcast i32* %3 to i8*
store i32 16777216, i32* %3
%6 = call i32 @memset(%struct.sockaddr_nl* %2, i32 0, i32 12)
%7 = load i32, i32* @AF_NETLINK
%8 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %2, i64 0, i32 2
store i32 %7, i32* %8
%9 = call i32 (...) @getpid()
%10 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %2, i64 0, i32 1
store i32 %9, i32* %10
%11 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %2, i64 0, i32 0
store i32 1, i32* %11
%12 = load i32, i32* @PF_NETLINK
%13 = load i32, i32* @SOCK_DGRAM
%14 = call i32 @socket(i32 %12, i32 %13, i32 15)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %21
16: ; preds = %1
%17 = load i32, i32* @stderr
%18 = load i32, i32* @errno
%19 = call i8* @strerror(i32 %18)
%20 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %19)
br label %61
21: ; preds = %1
%22 = load i32, i32* @SOL_SOCKET
%23 = call i64 @setsockopt(i32 %14, i32 %22, i32 33, i32* %3, i32 4)
%24 = icmp eq i64 %23, 0
br i1 %24, label %39, label %25
25: ; preds = %21
%26 = load i32, i32* @stderr
%27 = load i32, i32* @errno
%28 = call i8* @strerror(i32 %27)
%29 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %28)
store i32 106496, i32* %3
%30 = load i32, i32* @SOL_SOCKET
%31 = load i32, i32* @SO_RCVBUF
%32 = call i64 @setsockopt(i32 %14, i32 %30, i32 %31, i32* %3, i32 4)
%33 = icmp eq i64 %32, 0
br i1 %33, label %39, label %34
34: ; preds = %25
%35 = load i32, i32* @stderr
%36 = load i32, i32* @errno
%37 = call i8* @strerror(i32 %36)
%38 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %37)
br label %39
39: ; preds = %25, %34, %21
%40 = icmp eq i32 %0, 1
br i1 %40, label %41, label %51
41: ; preds = %39
%42 = bitcast %struct.sockaddr_nl* %2 to %struct.sockaddr*
%43 = call i32 @connect(i32 %14, %struct.sockaddr* %42, i32 12)
%44 = icmp eq i32 %43, 0
br i1 %44, label %51, label %45
45: ; preds = %41
%46 = load i32, i32* @stderr
%47 = load i32, i32* @errno
%48 = call i8* @strerror(i32 %47)
%49 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %48)
%50 = call i32 @close(i32 %14)
br label %61
51: ; preds = %39, %41
%52 = bitcast %struct.sockaddr_nl* %2 to %struct.sockaddr*
%53 = call i32 @bind(i32 %14, %struct.sockaddr* %52, i32 12)
%54 = icmp eq i32 %53, 0
br i1 %54, label %61, label %55
55: ; preds = %51
%56 = load i32, i32* @stderr
%57 = load i32, i32* @errno
%58 = call i8* @strerror(i32 %57)
%59 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %58)
%60 = call i32 @close(i32 %14)
br label %61
61: ; preds = %51, %55, %45, %16
%62 = phi i32 [ -1, %16 ], [ -1, %45 ], [ -1, %55 ], [ %14, %51 ]
ret i32 %62
}