#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 */

/* Variables and functions */
int growl_tcp_notify(char const *const, char const *const, char const *const,
                     char const *const, char const *const, char const *const,
                     char const *, char const *const);
int growl_tcp_register(char const *const, char const *const, char const **const,
                       int, char const *const, char const *const);
int growl(const char *const server, const char *const appname,
          const char *const notify, const char *const title,
          const char *const message, const char *const icon,
          const char *const password, const char *url) {
  int rc = growl_tcp_register(server, appname, (const char **const)&notify, 1,
                              password, icon);
  if (rc == 0) {
    rc = growl_tcp_notify(server, appname, notify, title, message, password,
                          url, icon);
  }
  return rc;
}


x86 assembly (clang, -O0):
<growl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    0x10(%rbp),%r8
mov    -0x30(%rbp),%r9
lea    -0x18(%rbp),%rdx
mov    $0x1,%ecx
call   1030 <growl_tcp_register@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    11a4 <growl+0x84>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%r10
mov    -0x30(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <growl_tcp_notify@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<growl>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r13
mov    %r8,%r14
mov    %rcx,%r15
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    0x40(%rsp),%r12
mov    %rdx,(%rsp)
mov    %rsp,%rdx
mov    $0x1,%ecx
mov    %r12,%r8
call   1030 <growl_tcp_register@plt>
test   %eax,%eax
jne    1179 <growl+0x59>
mov    (%rsp),%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15,%rcx
mov    %r14,%r8
mov    %r12,%r9
push   %r13
push   0x50(%rsp)
call   1040 <growl_tcp_notify@plt>
add    $0x10,%rsp
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @growl(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
%18 = load i8*, i8** %9
%19 = load i8*, i8** %10
%20 = load i8*, i8** %15
%21 = load i8*, i8** %14
%22 = call i32 @growl_tcp_register(i8* %18, i8* %19, i8** %11, i32 1, i8* %20, i8* %21)
store i32 %22, i32* %17
%23 = load i32, i32* %17
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %8
%26 = load i8*, i8** %9
%27 = load i8*, i8** %10
%28 = load i8*, i8** %11
%29 = load i8*, i8** %12
%30 = load i8*, i8** %13
%31 = load i8*, i8** %15
%32 = load i8*, i8** %16
%33 = load i8*, i8** %14
%34 = call i32 @growl_tcp_notify(i8* %26, i8* %27, i8* %28, i8* %29, i8* %30, i8* %31, i8* %32, i8* %33)
store i32 %34, i32* %17
br label %35
35: ; preds = %25, %8
%36 = load i32, i32* %17
ret i32 %36
}

LLVM IR (-O2):
define i32 @growl(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i8*
store i8* %2, i8** %9
%10 = call i32 @growl_tcp_register(i8* %0, i8* %1, i8** %9, i32 1, i8* %6, i8* %5)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i8*, i8** %9
%14 = call i32 @growl_tcp_notify(i8* %0, i8* %1, i8* %13, i8* %3, i8* %4, i8* %6, i8* %7, i8* %5)
br label %15
15: ; preds = %12, %8
%16 = phi i32 [ %14, %12 ], [ %10, %8 ]
ret i32 %16
}