#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 fwknop_sendSPAPacket(char *, char *, char *, char *, char *);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, char *);
int run_fwknop(char *allowip, char *accessStr, char *server, char *key,
               char *timeout) {
  printf("Running fwknop with Options: %s:%s:%s:%s:%s\n", allowip, accessStr,
         server, key, timeout);
  int res = fwknop_sendSPAPacket(allowip, accessStr, server, key, timeout);
  return res;
}


x86 assembly (clang, -O0):
<run_fwknop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1040 <fwknop_sendSPAPacket@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_fwknop>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
lea    0xec1(%rip),%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <fwknop_sendSPAPacket@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"Running fwknop with Options: %s:%s:%s:%s:%s\0A\00"
define i32 @run_fwknop(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%12 = load i8*, i8** %6
%13 = load i8*, i8** %7
%14 = load i8*, i8** %8
%15 = load i8*, i8** %9
%16 = load i8*, i8** %10
%17 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13, i8* %14, i8* %15, i8* %16)
%18 = load i8*, i8** %6
%19 = load i8*, i8** %7
%20 = load i8*, i8** %8
%21 = load i8*, i8** %9
%22 = load i8*, i8** %10
%23 = call i32 @fwknop_sendSPAPacket(i8* %18, i8* %19, i8* %20, i8* %21, i8* %22)
store i32 %23, i32* %11
%24 = load i32, i32* %11
ret i32 %24
}

LLVM IR (-O2):
@.str = [45 x i8] c"Running fwknop with Options: %s:%s:%s:%s:%s\0A\00"
define i32 @run_fwknop(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = tail call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i8* %2, i8* %3, i8* %4)
%7 = tail call i32 @fwknop_sendSPAPacket(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4)
ret i32 %7
}