#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 */
struct UPnPService {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int, char *, char *, int, char *,
                          char *);
void AVRCP_ResponseSink_ConnectionManager_GetCurrentConnectionInfo(
    struct UPnPService *Service, int ErrorCode, void *User, int RcsID,
    int AVTransportID, char *ProtocolInfo, char *PeerConnectionManager,
    int PeerConnectionID, char *Direction, char *Status) {
  printf("AVRCP_ Invoke Response: "
         "ConnectionManager/"
         "GetCurrentConnectionInfo[ErrorCode:%d](%d,%d,%s,%s,%d,%s,%s)\r\n",
         ErrorCode, RcsID, AVTransportID, ProtocolInfo, PeerConnectionManager,
         PeerConnectionID, Direction, Status);
}


x86 assembly (clang, -O0):
<AVRCP_ResponseSink_ConnectionManager_GetCurrentConnectionInfo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%r11d
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
lea    0xe9f(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AVRCP_ResponseSink_ConnectionManager_GetCurrentConnectionInfo>:
sub    $0x18,%rsp
mov    %r9,%rax
mov    0x20(%rsp),%r9
mov    0x28(%rsp),%edx
movaps 0x30(%rsp),%xmm0
movups %xmm0,0x8(%rsp)
mov    %edx,(%rsp)
lea    0xecc(%rip),%rdi
mov    %ecx,%edx
mov    %r8d,%ecx
mov    %rax,%r8
call   1030 <printf@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.UPnPService = type { i32 }
@.str = [105 x i8] c"AVRCP_ Invoke Response: ConnectionManager/GetCurrentConnectionInfo[ErrorCode:%d](%d,%d,%s,%s,%d,%s,%s)\0D\0A\00"
define void @AVRCP_ResponseSink_ConnectionManager_GetCurrentConnectionInfo(%struct.UPnPService* %0, i32 %1, i8* %2, i32 %3, i32 %4, i8* %5, i8* %6, i32 %7, i8* %8, i8* %9) {
%11 = alloca %struct.UPnPService*
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i32
%19 = alloca i8*
%20 = alloca i8*
store %struct.UPnPService* %0, %struct.UPnPService** %11
store i32 %1, i32* %12
store i8* %2, i8** %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i8* %5, i8** %16
store i8* %6, i8** %17
store i32 %7, i32* %18
store i8* %8, i8** %19
store i8* %9, i8** %20
%21 = load i32, i32* %12
%22 = load i32, i32* %14
%23 = load i32, i32* %15
%24 = load i8*, i8** %16
%25 = load i8*, i8** %17
%26 = load i32, i32* %18
%27 = load i8*, i8** %19
%28 = load i8*, i8** %20
%29 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str, i64 0, i64 0), i32 %21, i32 %22, i32 %23, i8* %24, i8* %25, i32 %26, i8* %27, i8* %28)
ret void
}

LLVM IR (-O2):
%struct.UPnPService = type { i32 }
@.str = [105 x i8] c"AVRCP_ Invoke Response: ConnectionManager/GetCurrentConnectionInfo[ErrorCode:%d](%d,%d,%s,%s,%d,%s,%s)\0D\0A\00"
define void @AVRCP_ResponseSink_ConnectionManager_GetCurrentConnectionInfo(%struct.UPnPService* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3, i32 %4, i8* %5, i8* %6, i32 %7, i8* %8, i8* %9) {
%11 = tail call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %3, i32 %4, i8* %5, i8* %6, i32 %7, i8* %8, i8* %9)
ret void
}