#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_un {
  scalar_t__ *sun_path;
  int /*<<< orphan*/ sun_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ sockaddr;
typedef int /*<<< orphan*/ nReuse;

/* Variables and functions */
int /*<<< orphan*/ AF_UNIX;
int /*<<< orphan*/ LOG_DEBUG;
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ PF_UNIX;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
int bind(int, struct sockaddr *, int);
int chmod(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ memset(struct sockaddr_un *, int /*<<< orphan*/, int);
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
char const *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(scalar_t__ *, char const *, int);
int /*<<< orphan*/ strtol(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ unlink(scalar_t__ *);
int sbus_create(const char *str_sbus_path) {
  int n_status = 0;
  int n_sbus_handle = socket(PF_UNIX, SOCK_DGRAM, 0);
  if (n_sbus_handle < 0) {
    syslog(LOG_ERR, "sbus_create: Failed to create a socket. %s",
           strerror(errno));
    n_status = -1;
  }
  if (0 <= n_status) {
    struct sockaddr_un sockaddr;
    memset(&sockaddr, 0, sizeof(sockaddr));
    sockaddr.sun_family = AF_UNIX;
    strncpy(sockaddr.sun_path, str_sbus_path, sizeof(sockaddr.sun_path));
    sockaddr.sun_path[sizeof(sockaddr.sun_path) - 1] = 0;
    unlink(sockaddr.sun_path);
    n_status =
        bind(n_sbus_handle, (struct sockaddr *)&sockaddr, sizeof(sockaddr));
    if (-1 == n_status) {
      syslog(LOG_ERR, "sbus_create: Failed to bind to socket. %s",
             strerror(errno));
      close(n_sbus_handle);
    }
    char mode[] = "0777";
    n_status = chmod(str_sbus_path, strtol(mode, 0, 8));
    if (0 != n_status) {
      syslog(LOG_ERR, "sbus_create: Failed to set socket permissions. %s",
             strerror(errno));
      close(n_sbus_handle);
    }
    int nReuse = 1;
    n_status = setsockopt(n_sbus_handle, SOL_SOCKET, SO_REUSEADDR, &nReuse,
                          sizeof(nReuse));
    if (-1 == n_status) {
      syslog(LOG_ERR, "sbus_create: Failed to set socket options. %s",
             strerror(errno));
      close(n_sbus_handle);
    }
  }
  syslog(LOG_DEBUG, "sbus_create: SBus created at - %s", str_sbus_path);
  return (0 <= n_status ? n_sbus_handle : n_status);
}


x86 assembly (clang, -O0):
<sbus_create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
mov    0x2dfd(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    121c <sbus_create+0x6c>
mov    0x2db0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x30(%rbp),%edi
mov    %rax,%rdx
lea    0xdf0(%rip),%rsi
call   1090 <syslog@plt>
movl   $0xffffffff,-0xc(%rbp)
xor    %eax,%eax
cmp    -0xc(%rbp),%eax
jg     13ac <sbus_create+0x1fc>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <strncpy@plt>
mov    -0x20(%rbp),%rax
movq   $0x0,0x38(%rax)
mov    -0x20(%rbp),%rdi
call   1030 <unlink@plt>
mov    -0x10(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x10,%edx
call   10b0 <bind@plt>
mov    %eax,-0xc(%rbp)
mov    $0xffffffff,%eax
cmp    -0xc(%rbp),%eax
jne    12c0 <sbus_create+0x110>
mov    0x2d0d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x34(%rbp),%edi
mov    %rax,%rdx
lea    0xd78(%rip),%rsi
call   1090 <syslog@plt>
mov    -0x10(%rbp),%edi
call   1070 <close@plt>
mov    0xd8f(%rip),%eax
mov    %eax,-0x25(%rbp)
mov    0xd8a(%rip),%al
mov    %al,-0x21(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x25(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1080 <strtol@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%esi
call   10a0 <chmod@plt>
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
cmp    -0xc(%rbp),%eax
je     1337 <sbus_create+0x187>
mov    0x2c96(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2caa(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x44(%rbp),%edi
mov    %rax,%rdx
lea    0xd30(%rip),%rsi
call   1090 <syslog@plt>
mov    -0x10(%rbp),%edi
call   1070 <close@plt>
movl   $0x1,-0x2c(%rbp)
mov    -0x10(%rbp),%edi
mov    0x2c98(%rip),%rax
mov    (%rax),%esi
mov    0x2c67(%rip),%rax
mov    (%rax),%edx
lea    -0x2c(%rbp),%rcx
mov    $0x4,%r8d
call   1050 <setsockopt@plt>
mov    %eax,-0xc(%rbp)
mov    $0xffffffff,%eax
cmp    -0xc(%rbp),%eax
jne    13a7 <sbus_create+0x1f7>
mov    0x2c26(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2c3a(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x48(%rbp),%edi
mov    %rax,%rdx
lea    0xcf2(%rip),%rsi
call   1090 <syslog@plt>
mov    -0x10(%rbp),%edi
call   1070 <close@plt>
jmp    13ac <sbus_create+0x1fc>
mov    0x2bfd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xcfa(%rip),%rsi
call   1090 <syslog@plt>
xor    %eax,%eax
cmp    -0xc(%rbp),%eax
jg     13db <sbus_create+0x22b>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    13e1 <sbus_create+0x231>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sbus_create>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%r14
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
test   %eax,%eax
js     1313 <sbus_create+0x163>
mov    %eax,%ebp
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x10(%rsp),%rdi
mov    %r14,%rsi
mov    $0x8,%edx
call   1040 <strncpy@plt>
mov    0x10(%rsp),%rdi
movq   $0x0,0x38(%rdi)
call   1030 <unlink@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x10,%edx
call   10b0 <bind@plt>
cmp    $0xffffffff,%eax
jne    1266 <sbus_create+0xb6>
mov    0x2d62(%rip),%rax
mov    (%rax),%ebx
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xdd6(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1090 <syslog@plt>
mov    %ebp,%edi
call   1070 <close@plt>
movb   $0x0,0x8(%rsp)
movl   $0x37373730,0x4(%rsp)
37
lea    0x4(%rsp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1080 <strtol@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   10a0 <chmod@plt>
test   %eax,%eax
je     12c1 <sbus_create+0x111>
mov    0x2d07(%rip),%rax
mov    (%rax),%ebx
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xdaa(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1090 <syslog@plt>
mov    %ebp,%edi
call   1070 <close@plt>
movl   $0x1,0xc(%rsp)
mov    0x2d10(%rip),%rax
mov    (%rax),%esi
mov    0x2cdf(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    %ebp,%edi
mov    $0x4,%r8d
call   1050 <setsockopt@plt>
cmp    $0xffffffff,%eax
je     133d <sbus_create+0x18d>
mov    %eax,%ebx
mov    0x2cb5(%rip),%rax
mov    (%rax),%edi
lea    0xdb6(%rip),%rsi
mov    %r14,%rdx
call   1090 <syslog@plt>
test   %ebx,%ebx
cmovs  %ebx,%ebp
jmp    1389 <sbus_create+0x1d9>
mov    0x2c86(%rip),%rax
mov    (%rax),%ebx
mov    0x2c9d(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xccf(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1090 <syslog@plt>
jmp    136c <sbus_create+0x1bc>
mov    0x2c5c(%rip),%rax
mov    (%rax),%ebx
mov    0x2c73(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xd31(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1090 <syslog@plt>
mov    %ebp,%edi
call   1070 <close@plt>
mov    0x2c3d(%rip),%rax
mov    (%rax),%edi
lea    0xd3e(%rip),%rsi
mov    %r14,%rdx
call   1090 <syslog@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_un = type { i64*, i32 }
%struct.sockaddr = type { i32 }
@PF_UNIX = global i32 0
@SOCK_DGRAM = global i32 0
@LOG_ERR = global i32 0
@.str = [43 x i8] c"sbus_create: Failed to create a socket. %s\00"
@errno = global i32 0
@AF_UNIX = global i32 0
@.str.1 = [42 x i8] c"sbus_create: Failed to bind to socket. %s\00"
@__const.sbus_create.mode = [5 x i8] c"0777\00"
@.str.2 = [50 x i8] c"sbus_create: Failed to set socket permissions. %s\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.3 = [46 x i8] c"sbus_create: Failed to set socket options. %s\00"
@LOG_DEBUG = global i32 0
@.str.4 = [34 x i8] c"sbus_create: SBus created at - %s\00"
define i32 @sbus_create(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sockaddr_un
%6 = alloca [5 x i8]
%7 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
%8 = load i32, i32* @PF_UNIX
%9 = load i32, i32* @SOCK_DGRAM
%10 = call i32 @socket(i32 %8, i32 %9, i32 0)
store i32 %10, i32* %4
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = load i32, i32* @LOG_ERR
%15 = load i32, i32* @errno
%16 = call i8* @strerror(i32 %15)
%17 = call i32 @syslog(i32 %14, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i8* %16)
store i32 -1, i32* %3
br label %18
18: ; preds = %13, %1
%19 = load i32, i32* %3
%20 = icmp sle i32 0, %19
br i1 %20, label %21, label %77
21: ; preds = %18
%22 = call i32 @memset(%struct.sockaddr_un* %5, i32 0, i32 16)
%23 = load i32, i32* @AF_UNIX
%24 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %5, i32 0, i32 1
store i32 %23, i32* %24
%25 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %5, i32 0, i32 0
%26 = load i64*, i64** %25
%27 = load i8*, i8** %2
%28 = call i32 @strncpy(i64* %26, i8* %27, i32 8)
%29 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %5, i32 0, i32 0
%30 = load i64*, i64** %29
%31 = getelementptr inbounds i64, i64* %30, i64 7
store i64 0, i64* %31
%32 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %5, i32 0, i32 0
%33 = load i64*, i64** %32
%34 = call i32 @unlink(i64* %33)
%35 = load i32, i32* %4
%36 = bitcast %struct.sockaddr_un* %5 to %struct.sockaddr*
%37 = call i32 @bind(i32 %35, %struct.sockaddr* %36, i32 16)
store i32 %37, i32* %3
%38 = load i32, i32* %3
%39 = icmp eq i32 -1, %38
br i1 %39, label %40, label %47
40: ; preds = %21
%41 = load i32, i32* @LOG_ERR
%42 = load i32, i32* @errno
%43 = call i8* @strerror(i32 %42)
%44 = call i32 @syslog(i32 %41, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %43)
%45 = load i32, i32* %4
%46 = call i32 @close(i32 %45)
br label %47
47: ; preds = %40, %21
%48 = bitcast [5 x i8]* %6 to i8*
%49 = load i8*, i8** %2
%50 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%51 = call i32 @strtol(i8* %50, i32 0, i32 8)
%52 = call i32 @chmod(i8* %49, i32 %51)
store i32 %52, i32* %3
%53 = load i32, i32* %3
%54 = icmp ne i32 0, %53
br i1 %54, label %55, label %62
55: ; preds = %47
%56 = load i32, i32* @LOG_ERR
%57 = load i32, i32* @errno
%58 = call i8* @strerror(i32 %57)
%59 = call i32 @syslog(i32 %56, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* %58)
%60 = load i32, i32* %4
%61 = call i32 @close(i32 %60)
br label %62
62: ; preds = %55, %47
store i32 1, i32* %7
%63 = load i32, i32* %4
%64 = load i32, i32* @SOL_SOCKET
%65 = load i32, i32* @SO_REUSEADDR
%66 = call i32 @setsockopt(i32 %63, i32 %64, i32 %65, i32* %7, i32 4)
store i32 %66, i32* %3
%67 = load i32, i32* %3
%68 = icmp eq i32 -1, %67
br i1 %68, label %69, label %76
69: ; preds = %62
%70 = load i32, i32* @LOG_ERR
%71 = load i32, i32* @errno
%72 = call i8* @strerror(i32 %71)
%73 = call i32 @syslog(i32 %70, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i8* %72)
%74 = load i32, i32* %4
%75 = call i32 @close(i32 %74)
br label %76
76: ; preds = %69, %62
br label %77
77: ; preds = %76, %18
%78 = load i32, i32* @LOG_DEBUG
%79 = load i8*, i8** %2
%80 = call i32 @syslog(i32 %78, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %79)
%81 = load i32, i32* %3
%82 = icmp sle i32 0, %81
br i1 %82, label %83, label %85
83: ; preds = %77
%84 = load i32, i32* %4
br label %87
85: ; preds = %77
%86 = load i32, i32* %3
br label %87
87: ; preds = %85, %83
%88 = phi i32 [ %84, %83 ], [ %86, %85 ]
ret i32 %88
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i64*, i32 }
%struct.sockaddr = type { i32 }
@PF_UNIX = global i32 0
@SOCK_DGRAM = global i32 0
@LOG_ERR = global i32 0
@.str = [43 x i8] c"sbus_create: Failed to create a socket. %s\00"
@errno = global i32 0
@AF_UNIX = global i32 0
@.str.1 = [42 x i8] c"sbus_create: Failed to bind to socket. %s\00"
@__const.sbus_create.mode = [5 x i8] c"0777\00"
@.str.2 = [50 x i8] c"sbus_create: Failed to set socket permissions. %s\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.3 = [46 x i8] c"sbus_create: Failed to set socket options. %s\00"
@LOG_DEBUG = global i32 0
@.str.4 = [34 x i8] c"sbus_create: SBus created at - %s\00"
define i32 @sbus_create(i8* %0) {
%2 = alloca %struct.sockaddr_un
%3 = alloca [5 x i8]
%4 = alloca i32
%5 = load i32, i32* @PF_UNIX
%6 = load i32, i32* @SOCK_DGRAM
%7 = tail call i32 @socket(i32 %5, i32 %6, i32 0)
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %1
%10 = load i32, i32* @LOG_ERR
%11 = load i32, i32* @errno
%12 = tail call i8* @strerror(i32 %11)
%13 = tail call i32 @syslog(i32 %10, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = load i32, i32* @LOG_DEBUG
%15 = tail call i32 @syslog(i32 %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %0)
br label %66
16: ; preds = %1
%17 = bitcast %struct.sockaddr_un* %2 to i8*
%18 = call i32 @memset(%struct.sockaddr_un* %2, i32 0, i32 16)
%19 = load i32, i32* @AF_UNIX
%20 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %2, i64 0, i32 1
store i32 %19, i32* %20
%21 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %2, i64 0, i32 0
%22 = load i64*, i64** %21
%23 = call i32 @strncpy(i64* %22, i8* %0, i32 8)
%24 = load i64*, i64** %21
%25 = getelementptr inbounds i64, i64* %24, i64 7
store i64 0, i64* %25
%26 = call i32 @unlink(i64* %24)
%27 = bitcast %struct.sockaddr_un* %2 to %struct.sockaddr*
%28 = call i32 @bind(i32 %7, %struct.sockaddr* %27, i32 16)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %36
30: ; preds = %16
%31 = load i32, i32* @LOG_ERR
%32 = load i32, i32* @errno
%33 = call i8* @strerror(i32 %32)
%34 = call i32 @syslog(i32 %31, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %33)
%35 = call i32 @close(i32 %7)
br label %36
36: ; preds = %30, %16
%37 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%38 = call i32 @strtol(i8* %37, i32 0, i32 8)
%39 = call i32 @chmod(i8* %0, i32 %38)
%40 = icmp eq i32 %39, 0
br i1 %40, label %47, label %41
41: ; preds = %36
%42 = load i32, i32* @LOG_ERR
%43 = load i32, i32* @errno
%44 = call i8* @strerror(i32 %43)
%45 = call i32 @syslog(i32 %42, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* %44)
%46 = call i32 @close(i32 %7)
br label %47
47: ; preds = %41, %36
%48 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%49 = load i32, i32* @SOL_SOCKET
%50 = load i32, i32* @SO_REUSEADDR
%51 = call i32 @setsockopt(i32 %7, i32 %49, i32 %50, i32* %4, i32 4)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %61
53: ; preds = %47
%54 = load i32, i32* @LOG_ERR
%55 = load i32, i32* @errno
%56 = call i8* @strerror(i32 %55)
%57 = call i32 @syslog(i32 %54, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i8* %56)
%58 = call i32 @close(i32 %7)
%59 = load i32, i32* @LOG_DEBUG
%60 = call i32 @syslog(i32 %59, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %0)
br label %66
61: ; preds = %47
%62 = load i32, i32* @LOG_DEBUG
%63 = call i32 @syslog(i32 %62, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%64 = icmp sgt i32 %51, -1
%65 = select i1 %64, i32 %7, i32 %51
br label %66
66: ; preds = %61, %53, %9
%67 = phi i32 [ -1, %9 ], [ -1, %53 ], [ %65, %61 ]
ret i32 %67
}