#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 /*<<< orphan*/
UPnPResponse_ConnectionManager_PrepareForConnection(void *, int, int, int);
int /*<<< orphan*/ printf(char *, char *, char *, int, char *);
void UPnPConnectionManager_PrepareForConnection(void *upnptoken,
                                                char *RemoteProtocolInfo,
                                                char *PeerConnectionManager,
                                                int PeerConnectionID,
                                                char *Direction) {
  printf("Invoke: UPnPConnectionManager_PrepareForConnection(%s,%s,%d,%s);\r\n",
         RemoteProtocolInfo, PeerConnectionManager, PeerConnectionID,
         Direction);
  UPnPResponse_ConnectionManager_PrepareForConnection(upnptoken, 25000, 25000,
                                                      25000);
}


x86 assembly (clang, -O0):
<UPnPConnectionManager_PrepareForConnection>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x61a8,%ecx
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <UPnPResponse_ConnectionManager_PrepareForConnection@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UPnPConnectionManager_PrepareForConnection>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x61a8,%esi
mov    $0x61a8,%edx
mov    $0x61a8,%ecx
pop    %rbx
jmp    1040 <UPnPResponse_ConnectionManager_PrepareForConnection@plt>

LLVM IR (-O0):
@.str = [67 x i8] c"Invoke: UPnPConnectionManager_PrepareForConnection(%s,%s,%d,%s);\0D\0A\00"
define void @UPnPConnectionManager_PrepareForConnection(i8* %0, i8* %1, i8* %2, i32 %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = load i32, i32* %9
%14 = load i8*, i8** %10
%15 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12, i32 %13, i8* %14)
%16 = load i8*, i8** %6
%17 = call i32 @UPnPResponse_ConnectionManager_PrepareForConnection(i8* %16, i32 25000, i32 25000, i32 25000)
ret void
}

LLVM IR (-O2):
@.str = [67 x i8] c"Invoke: UPnPConnectionManager_PrepareForConnection(%s,%s,%d,%s);\0D\0A\00"
define void @UPnPConnectionManager_PrepareForConnection(i8* %0, i8* %1, i8* %2, i32 %3, i8* %4) {
%6 = tail call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2, i32 %3, i8* %4)
%7 = tail call i32 @UPnPResponse_ConnectionManager_PrepareForConnection(i8* %0, i32 25000, i32 25000, i32 25000)
ret void
}