#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_udp_notify(char const *const, char const *const, char const *const,
                     char const *const, char const *const, char const *const);
int growl_udp_register(char const *const, char const *const, char const **const,
                       int, char const *const);
int growl_udp(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_udp_register(server, appname, (const char **const)&notify, 1,
                              password);
  if (rc == 0) {
    rc = growl_udp_notify(server, appname, notify, title, message, password);
  }
  return rc;
  (void)icon;
  (void)url;
}


x86 assembly (clang, -O0):
<growl_udp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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
lea    -0x18(%rbp),%rdx
mov    $0x1,%ecx
call   1040 <growl_udp_register@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    118f <growl_udp+0x6f>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    0x10(%rbp),%r9
call   1030 <growl_udp_notify@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<growl_udp>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r8,%r14
mov    %rcx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0x40(%rsp),%r15
mov    %rdx,0x8(%rsp)
lea    0x8(%rsp),%rdx
mov    $0x1,%ecx
mov    %r15,%r8
call   1040 <growl_udp_register@plt>
test   %eax,%eax
jne    1172 <growl_udp+0x52>
mov    0x8(%rsp),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1030 <growl_udp_notify@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @growl_udp(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 = call i32 @growl_udp_register(i8* %18, i8* %19, i8** %11, i32 1, i8* %20)
store i32 %21, i32* %17
%22 = load i32, i32* %17
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %8
%25 = load i8*, i8** %9
%26 = load i8*, i8** %10
%27 = load i8*, i8** %11
%28 = load i8*, i8** %12
%29 = load i8*, i8** %13
%30 = load i8*, i8** %15
%31 = call i32 @growl_udp_notify(i8* %25, i8* %26, i8* %27, i8* %28, i8* %29, i8* %30)
store i32 %31, i32* %17
br label %32
32: ; preds = %24, %8
%33 = load i32, i32* %17
ret i32 %33
}

LLVM IR (-O2):
define i32 @growl_udp(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* nocapture readnone %5, i8* %6, i8* nocapture readnone %7) {
%9 = alloca i8*
store i8* %2, i8** %9
%10 = call i32 @growl_udp_register(i8* %0, i8* %1, i8** %9, i32 1, i8* %6)
%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_udp_notify(i8* %0, i8* %1, i8* %13, i8* %3, i8* %4, i8* %6)
br label %15
15: ; preds = %12, %8
%16 = phi i32 [ %14, %12 ], [ %10, %8 ]
ret i32 %16
}