#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 */
typedef int /*<<< orphan*/ the_message;
struct sockaddr_un {
  int msg_namelen;
  int /*<<< orphan*/ *msg_control;
  TYPE_1__ *msg_iov;
  struct sockaddr_un *msg_name;
  scalar_t__ *sun_path;
  int /*<<< orphan*/ sun_family;
};
struct msghdr {
  int msg_namelen;
  int /*<<< orphan*/ *msg_control;
  TYPE_1__ *msg_iov;
  struct msghdr *msg_name;
  scalar_t__ *sun_path;
  int /*<<< orphan*/ sun_family;
};
struct iovec {
  int dummy;
};
typedef int /*<<< orphan*/ sockaddr;
struct TYPE_2__ {
  int /*<<< orphan*/ *iov_base;
};

/* Variables and functions */
int /*<<< orphan*/ AF_UNIX;
int /*<<< orphan*/ LOG_DEBUG;
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ PF_UNIX;
int /*<<< orphan*/ SOCK_DGRAM;
int bus_pack_message(struct sockaddr_un *, struct iovec *, int const *, int,
                     char const *, int, char const *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(struct sockaddr_un *, int /*<<< orphan*/, int);
int sendmsg(int, struct sockaddr_un *, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(scalar_t__ *, char const *, int);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, ...);
int bus_send_msg(const char *str_bus_path, const int *p_files, int n_files,
                 const char *str_files_metadata, int n_files_metadata_len,
                 const char *str_msg_data, int n_msg_len) {
  int n_sock = socket(PF_UNIX, SOCK_DGRAM, 0);
  if (0 > n_sock) {
    syslog(LOG_ERR, "bus_send_msg: Failed to create socket. %s",
           strerror(errno));
    return -1;
  }
  struct sockaddr_un sockaddr;
  memset(&sockaddr, 0, sizeof(sockaddr));
  sockaddr.sun_family = AF_UNIX;
  strncpy(sockaddr.sun_path, str_bus_path, sizeof(sockaddr.sun_path));
  sockaddr.sun_path[sizeof(sockaddr.sun_path) - 1] = 0;
  struct msghdr the_message;
  memset(&the_message, 0, sizeof(the_message));
  the_message.msg_name = &sockaddr;
  the_message.msg_namelen = sizeof(sockaddr);
  struct iovec msg_iov;
  int n_status = 0;
  n_status = bus_pack_message(&the_message, &msg_iov, p_files, n_files,
                              str_files_metadata, n_files_metadata_len,
                              str_msg_data, n_msg_len);
  if (0 > n_status)
    close(n_sock);
  else {
    n_status = sendmsg(n_sock, &the_message, 0);
    if (0 > n_status)
      syslog(LOG_ERR,
             "bus_send_msg: Failed to send message on channel %s,"
             " error is %s. Is server side running?",
             str_bus_path, strerror(errno));
    free(the_message.msg_iov->iov_base);
    if (NULL != the_message.msg_control)
      free(the_message.msg_control);
    close(n_sock);
  }
  if (0 <= n_status)
    syslog(LOG_DEBUG, "bus_send_msg: Message with %d files was sent through %s",
           n_files, str_bus_path);
  return n_status;
}


x86 assembly (clang, -O0):
<bus_send_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9,-0x38(%rbp)
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
mov    0x2e13(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10b0 <socket@plt>
mov    %eax,-0x3c(%rbp)
xor    %eax,%eax
cmp    -0x3c(%rbp),%eax
jle    121b <bus_send_msg+0x8b>
mov    0x2dcd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xb0(%rbp)
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0xb0(%rbp),%edi
mov    %eax,%edx
lea    0xdf8(%rip),%rsi
mov    $0x0,%al
call   1090 <syslog@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13aa <bus_send_msg+0x21a>
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    0x2dae(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x8,%edx
call   1040 <strncpy@plt>
mov    -0x50(%rbp),%rax
movq   $0x0,0x38(%rax)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x88(%rbp)
movl   $0x30,-0xa0(%rbp)
movl   $0x0,-0xac(%rbp)
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    -0x2c(%rbp),%r9d
mov    -0x38(%rbp),%r10
mov    0x10(%rbp),%eax
lea    -0xa8(%rbp),%rsi
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
call   1060 <bus_pack_message@plt>
mov    %eax,-0xac(%rbp)
xor    %eax,%eax
cmp    -0xac(%rbp),%eax
jle    12d9 <bus_send_msg+0x149>
mov    -0x3c(%rbp),%edi
call   1080 <close@plt>
jmp    1375 <bus_send_msg+0x1e5>
mov    -0x3c(%rbp),%edi
lea    -0xa0(%rbp),%rsi
xor    %edx,%edx
call   1050 <sendmsg@plt>
mov    %eax,-0xac(%rbp)
xor    %eax,%eax
cmp    -0xac(%rbp),%eax
jle    1343 <bus_send_msg+0x1b3>
mov    0x2cab(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xbc(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0xbc(%rbp),%edi
mov    -0xb8(%rbp),%rdx
mov    %eax,%ecx
lea    0xcee(%rip),%rsi
mov    $0x0,%al
call   1090 <syslog@plt>
mov    -0x90(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
xor    %eax,%eax
cmp    -0x98(%rbp),%rax
je     136d <bus_send_msg+0x1dd>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0x3c(%rbp),%edi
call   1080 <close@plt>
xor    %eax,%eax
cmp    -0xac(%rbp),%eax
jg     13a1 <bus_send_msg+0x211>
mov    0x2c36(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
mov    -0x10(%rbp),%rcx
lea    0xce9(%rip),%rsi
mov    $0x0,%al
call   1090 <syslog@plt>
mov    -0xac(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bus_send_msg>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,%r15
mov    %r8d,0x4(%rsp)
mov    %rcx,%r12
mov    %edx,%ebx
mov    %rsi,%r14
mov    %rdi,%rbp
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
mov    0x2e17(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10b0 <socket@plt>
test   %eax,%eax
js     1300 <bus_send_msg+0x170>
mov    %eax,%r13d
lea    0x48(%rsp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x70(%rsp)
mov    0x68(%rsp),%rdi
mov    %rbp,0x8(%rsp)
mov    %rbp,%rsi
mov    $0x8,%edx
call   1040 <strncpy@plt>
mov    0x68(%rsp),%rax
movq   $0x0,0x38(%rax)
mov    %r15,%rbp
lea    0x18(%rsp),%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
lea    0x48(%rsp),%rax
mov    %rax,0x30(%rsp)
movl   $0x30,0x18(%rsp)
lea    0x10(%rsp),%rsi
mov    %r15,%rdi
mov    %ebx,%r15d
mov    %r14,%rdx
mov    %ebx,%ecx
mov    %r12,%r8
mov    0x4(%rsp),%r9d
mov    0xb0(%rsp),%eax
push   %rax
push   %rbp
call   1060 <bus_pack_message@plt>
add    $0x10,%rsp
test   %eax,%eax
js     1330 <bus_send_msg+0x1a0>
lea    0x18(%rsp),%rsi
mov    %r13d,%edi
xor    %edx,%edx
call   1050 <sendmsg@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    12b7 <bus_send_msg+0x127>
mov    0x2d22(%rip),%rax
mov    (%rax),%r14d
mov    0x2d30(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xd84(%rip),%rsi
mov    %r14d,%edi
mov    0x8(%rsp),%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1090 <syslog@plt>
mov    0x28(%rsp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
test   %rdi,%rdi
je     12d3 <bus_send_msg+0x143>
call   1030 <free@plt>
mov    %r13d,%edi
call   1080 <close@plt>
test   %ebx,%ebx
js     133a <bus_send_msg+0x1aa>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
lea    0xd94(%rip),%rsi
mov    %r15d,%edx
mov    0x8(%rsp),%rcx
xor    %eax,%eax
call   1090 <syslog@plt>
jmp    133a <bus_send_msg+0x1aa>
mov    0x2ca9(%rip),%rax
mov    (%rax),%ebx
mov    0x2cb8(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xce2(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <syslog@plt>
mov    $0xffffffff,%ebx
jmp    133a <bus_send_msg+0x1aa>
mov    %eax,%ebx
mov    %r13d,%edi
call   1080 <close@plt>
mov    %ebx,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_un = type { i32, i32*, %struct.TYPE_2__*, %struct.sockaddr_un*, i64*, i32 }
%struct.TYPE_2__ = type { i32* }
%struct.msghdr = type { i32, i32*, %struct.TYPE_2__*, %struct.msghdr*, i64*, i32 }
%struct.iovec = type { i32 }
@PF_UNIX = global i32 0
@SOCK_DGRAM = global i32 0
@LOG_ERR = global i32 0
@.str = [42 x i8] c"bus_send_msg: Failed to create socket. %s\00"
@errno = global i32 0
@AF_UNIX = global i32 0
@.str.1 = [89 x i8] c"bus_send_msg: Failed to send message on channel %s, error is %s. Is server side running?\00"
@LOG_DEBUG = global i32 0
@.str.2 = [56 x i8] c"bus_send_msg: Message with %d files was sent through %s\00"
define i32 @bus_send_msg(i8* %0, i32* %1, i32 %2, i8* %3, i32 %4, i8* %5, i32 %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
%17 = alloca %struct.sockaddr_un
%18 = alloca %struct.msghdr
%19 = alloca %struct.iovec
%20 = alloca i32
store i8* %0, i8** %9
store i32* %1, i32** %10
store i32 %2, i32* %11
store i8* %3, i8** %12
store i32 %4, i32* %13
store i8* %5, i8** %14
store i32 %6, i32* %15
%21 = load i32, i32* @PF_UNIX
%22 = load i32, i32* @SOCK_DGRAM
%23 = call i32 @socket(i32 %21, i32 %22, i32 0)
store i32 %23, i32* %16
%24 = load i32, i32* %16
%25 = icmp sgt i32 0, %24
br i1 %25, label %26, label %31
26: ; preds = %7
%27 = load i32, i32* @LOG_ERR
%28 = load i32, i32* @errno
%29 = call i32 @strerror(i32 %28)
%30 = call i32 (i32, i8*, ...) @syslog(i32 %27, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 %29)
store i32 -1, i32* %8
br label %98
31: ; preds = %7
%32 = call i32 @memset(%struct.sockaddr_un* %17, i32 0, i32 48)
%33 = load i32, i32* @AF_UNIX
%34 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %17, i32 0, i32 5
store i32 %33, i32* %34
%35 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %17, i32 0, i32 4
%36 = load i64*, i64** %35
%37 = load i8*, i8** %9
%38 = call i32 @strncpy(i64* %36, i8* %37, i32 8)
%39 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %17, i32 0, i32 4
%40 = load i64*, i64** %39
%41 = getelementptr inbounds i64, i64* %40, i64 7
store i64 0, i64* %41
%42 = bitcast %struct.msghdr* %18 to %struct.sockaddr_un*
%43 = call i32 @memset(%struct.sockaddr_un* %42, i32 0, i32 48)
%44 = bitcast %struct.sockaddr_un* %17 to %struct.msghdr*
%45 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %18, i32 0, i32 3
store %struct.msghdr* %44, %struct.msghdr** %45
%46 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %18, i32 0, i32 0
store i32 48, i32* %46
store i32 0, i32* %20
%47 = bitcast %struct.msghdr* %18 to %struct.sockaddr_un*
%48 = load i32*, i32** %10
%49 = load i32, i32* %11
%50 = load i8*, i8** %12
%51 = load i32, i32* %13
%52 = load i8*, i8** %14
%53 = load i32, i32* %15
%54 = call i32 @bus_pack_message(%struct.sockaddr_un* %47, %struct.iovec* %19, i32* %48, i32 %49, i8* %50, i32 %51, i8* %52, i32 %53)
store i32 %54, i32* %20
%55 = load i32, i32* %20
%56 = icmp sgt i32 0, %55
br i1 %56, label %57, label %60
57: ; preds = %31
%58 = load i32, i32* %16
%59 = call i32 @close(i32 %58)
br label %88
60: ; preds = %31
%61 = load i32, i32* %16
%62 = bitcast %struct.msghdr* %18 to %struct.sockaddr_un*
%63 = call i32 @sendmsg(i32 %61, %struct.sockaddr_un* %62, i32 0)
store i32 %63, i32* %20
%64 = load i32, i32* %20
%65 = icmp sgt i32 0, %64
br i1 %65, label %66, label %72
66: ; preds = %60
%67 = load i32, i32* @LOG_ERR
%68 = load i8*, i8** %9
%69 = load i32, i32* @errno
%70 = call i32 @strerror(i32 %69)
%71 = call i32 (i32, i8*, ...) @syslog(i32 %67, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.1, i64 0, i64 0), i8* %68, i32 %70)
br label %72
72: ; preds = %66, %60
%73 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %18, i32 0, i32 2
%74 = load %struct.TYPE_2__*, %struct.TYPE_2__** %73
%75 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %74, i32 0, i32 0
%76 = load i32*, i32** %75
%77 = call i32 @free(i32* %76)
%78 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %18, i32 0, i32 1
%79 = load i32*, i32** %78
%80 = icmp ne i32* null, %79
br i1 %80, label %81, label %85
81: ; preds = %72
%82 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %18, i32 0, i32 1
%83 = load i32*, i32** %82
%84 = call i32 @free(i32* %83)
br label %85
85: ; preds = %81, %72
%86 = load i32, i32* %16
%87 = call i32 @close(i32 %86)
br label %88
88: ; preds = %85, %57
%89 = load i32, i32* %20
%90 = icmp sle i32 0, %89
br i1 %90, label %91, label %96
91: ; preds = %88
%92 = load i32, i32* @LOG_DEBUG
%93 = load i32, i32* %11
%94 = load i8*, i8** %9
%95 = call i32 (i32, i8*, ...) @syslog(i32 %92, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i32 %93, i8* %94)
br label %96
96: ; preds = %91, %88
%97 = load i32, i32* %20
store i32 %97, i32* %8
br label %98
98: ; preds = %96, %26
%99 = load i32, i32* %8
ret i32 %99
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i32, i32*, %struct.TYPE_2__*, %struct.sockaddr_un*, i64*, i32 }
%struct.TYPE_2__ = type { i32* }
%struct.msghdr = type { i32, i32*, %struct.TYPE_2__*, %struct.msghdr*, i64*, i32 }
%struct.iovec = type { i32 }
@PF_UNIX = global i32 0
@SOCK_DGRAM = global i32 0
@LOG_ERR = global i32 0
@.str = [42 x i8] c"bus_send_msg: Failed to create socket. %s\00"
@errno = global i32 0
@AF_UNIX = global i32 0
@.str.1 = [89 x i8] c"bus_send_msg: Failed to send message on channel %s, error is %s. Is server side running?\00"
@LOG_DEBUG = global i32 0
@.str.2 = [56 x i8] c"bus_send_msg: Message with %d files was sent through %s\00"
define i32 @bus_send_msg(i8* %0, i32* %1, i32 %2, i8* %3, i32 %4, i8* %5, i32 %6) {
%8 = alloca %struct.sockaddr_un
%9 = alloca %struct.msghdr
%10 = alloca %struct.iovec
%11 = load i32, i32* @PF_UNIX
%12 = load i32, i32* @SOCK_DGRAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %7
%16 = load i32, i32* @LOG_ERR
%17 = load i32, i32* @errno
%18 = tail call i32 @strerror(i32 %17)
%19 = tail call i32 (i32, i8*, ...) @syslog(i32 %16, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 %18)
br label %68
20: ; preds = %7
%21 = bitcast %struct.sockaddr_un* %8 to i8*
%22 = call i32 @memset(%struct.sockaddr_un* %8, i32 0, i32 48)
%23 = load i32, i32* @AF_UNIX
%24 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %8, i64 0, i32 5
store i32 %23, i32* %24
%25 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %8, i64 0, i32 4
%26 = load i64*, i64** %25
%27 = call i32 @strncpy(i64* %26, i8* %0, i32 8)
%28 = load i64*, i64** %25
%29 = getelementptr inbounds i64, i64* %28, i64 7
store i64 0, i64* %29
%30 = bitcast %struct.msghdr* %9 to i8*
%31 = bitcast %struct.msghdr* %9 to %struct.sockaddr_un*
%32 = call i32 @memset(%struct.sockaddr_un* %31, i32 0, i32 48)
%33 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %9, i64 0, i32 3
%34 = bitcast %struct.msghdr** %33 to %struct.sockaddr_un**
store %struct.sockaddr_un* %8, %struct.sockaddr_un** %34
%35 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %9, i64 0, i32 0
store i32 48, i32* %35
%36 = bitcast %struct.iovec* %10 to i8*
%37 = call i32 @bus_pack_message(%struct.sockaddr_un* %31, %struct.iovec* %10, i32* %1, i32 %2, i8* %3, i32 %4, i8* %5, i32 %6)
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %20
%40 = call i32 @close(i32 %13)
br label %66
41: ; preds = %20
%42 = call i32 @sendmsg(i32 %13, %struct.sockaddr_un* %31, i32 0)
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %41
%45 = load i32, i32* @LOG_ERR
%46 = load i32, i32* @errno
%47 = call i32 @strerror(i32 %46)
%48 = call i32 (i32, i8*, ...) @syslog(i32 %45, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %47)
br label %49
49: ; preds = %44, %41
%50 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %9, i64 0, i32 2
%51 = load %struct.TYPE_2__*, %struct.TYPE_2__** %50
%52 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %51, i64 0, i32 0
%53 = load i32*, i32** %52
%54 = call i32 @free(i32* %53)
%55 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %9, i64 0, i32 1
%56 = load i32*, i32** %55
%57 = icmp eq i32* %56, null
br i1 %57, label %60, label %58
58: ; preds = %49
%59 = call i32 @free(i32* %56)
br label %60
60: ; preds = %49, %58
%61 = call i32 @close(i32 %13)
%62 = icmp sgt i32 %42, -1
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load i32, i32* @LOG_DEBUG
%65 = call i32 (i32, i8*, ...) @syslog(i32 %64, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i32 %2, i8* %0)
br label %66
66: ; preds = %39, %63, %60
%67 = phi i32 [ %37, %39 ], [ %42, %63 ], [ %42, %60 ]
br label %68
68: ; preds = %66, %15
%69 = phi i32 [ -1, %15 ], [ %67, %66 ]
ret i32 %69
}