#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 *, char *, char *, char *);
void AVRCP_ResponseSink_AVTransport_GetMediaInfo(
    struct UPnPService *Service, int ErrorCode, void *User,
    unsigned int NrTracks, char *MediaDuration, char *CurrentURI,
    char *CurrentURIMetaData, char *NextURI, char *NextURIMetaData,
    char *PlayMedium, char *RecordMedium, char *WriteStatus) {
  printf(
      "AVRCP_ Invoke Response: "
      "AVTransport/GetMediaInfo[ErrorCode:%d](%u,%s,%s,%s,%s,%s,%s,%s,%s)\r\n",
      ErrorCode, NrTracks, MediaDuration, CurrentURI, CurrentURIMetaData,
      NextURI, NextURIMetaData, PlayMedium, RecordMedium, WriteStatus);
}


x86 assembly (clang, -O0):
<AVRCP_ResponseSink_AVTransport_GetMediaInfo>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x1c(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%r14
mov    0x20(%rbp),%rbx
mov    0x28(%rbp),%r11
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%rax
lea    0xe8a(%rip),%rdi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<AVRCP_ResponseSink_AVTransport_GetMediaInfo>:
sub    $0x28,%rsp
mov    %r9,%rax
mov    0x30(%rsp),%r9
movups 0x38(%rsp),%xmm0
movups 0x48(%rsp),%xmm1
mov    0x58(%rsp),%rdx
mov    %rdx,0x20(%rsp)
movups %xmm1,0x10(%rsp)
movups %xmm0,(%rsp)
lea    0xec0(%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/GetMediaInfo[ErrorCode:%d](%u,%s,%s,%s,%s,%s,%s,%s,%s)\0D\0A\00"
define void @AVRCP_ResponseSink_AVTransport_GetMediaInfo(%struct.UPnPService* %0, i32 %1, i8* %2, i32 %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11) {
%13 = alloca %struct.UPnPService*
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
store %struct.UPnPService* %0, %struct.UPnPService** %13
store i32 %1, i32* %14
store i8* %2, i8** %15
store i32 %3, i32* %16
store i8* %4, i8** %17
store i8* %5, i8** %18
store i8* %6, i8** %19
store i8* %7, i8** %20
store i8* %8, i8** %21
store i8* %9, i8** %22
store i8* %10, i8** %23
store i8* %11, i8** %24
%25 = load i32, i32* %14
%26 = load i32, i32* %16
%27 = load i8*, i8** %17
%28 = load i8*, i8** %18
%29 = load i8*, i8** %19
%30 = load i8*, i8** %20
%31 = load i8*, i8** %21
%32 = load i8*, i8** %22
%33 = load i8*, i8** %23
%34 = load i8*, i8** %24
%35 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i32 %25, i32 %26, i8* %27, i8* %28, i8* %29, i8* %30, i8* %31, i8* %32, i8* %33, i8* %34)
ret void
}

LLVM IR (-O2):
%struct.UPnPService = type { i32 }
@.str = [93 x i8] c"AVRCP_ Invoke Response: AVTransport/GetMediaInfo[ErrorCode:%d](%u,%s,%s,%s,%s,%s,%s,%s,%s)\0D\0A\00"
define void @AVRCP_ResponseSink_AVTransport_GetMediaInfo(%struct.UPnPService* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11) {
%13 = 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, i8* %9, i8* %10, i8* %11)
ret void
}