#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, unsigned int, char *, char *, char *,
                          char *, char *, int, int);
void AVRCP_ResponseSink_AVTransport_GetPositionInfo(
    struct UPnPService *Service, int ErrorCode, void *User, unsigned int Track,
    char *TrackDuration, char *TrackMetaData, char *TrackURI, char *RelTime,
    char *AbsTime, int RelCount, int AbsCount) {
  printf(
      "AVRCP_ Invoke Response: "
      "AVTransport/GetPositionInfo[ErrorCode:%d](%u,%s,%s,%s,%s,%s,%d,%d)\r\n",
      ErrorCode, Track, TrackDuration, TrackMetaData, TrackURI, RelTime,
      AbsTime, RelCount, AbsCount);
}


x86 assembly (clang, -O0):
<AVRCP_ResponseSink_AVTransport_GetPositionInfo>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%r11
mov    0x28(%rbp),%r10d
mov    0x30(%rbp),%eax
lea    0xe97(%rip),%rdi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1030 <printf@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<AVRCP_ResponseSink_AVTransport_GetPositionInfo>:
sub    $0x28,%rsp
mov    %r9,%rax
mov    0x30(%rsp),%r9
movups 0x38(%rsp),%xmm0
mov    0x48(%rsp),%edx
mov    0x50(%rsp),%edi
mov    %edi,0x18(%rsp)
mov    %edx,0x10(%rsp)
movups %xmm0,(%rsp)
lea    0xec4(%rip),%rdi
mov    %ecx,%edx
mov    %r8,%rcx
mov    %rax,%r8
call   1030 <printf@plt>
add    $0x28,%rsp
ret

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

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