#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_ContentDirectory_Search(void *, char *, int,
                                                        int, int);
int /*<<< orphan*/ printf(char *, char *, char *, char *, unsigned int,
                          unsigned int, char *);
void UPnPContentDirectory_Search(void *upnptoken, char *ContainerID,
                                 char *SearchCriteria, char *Filter,
                                 unsigned int StartingIndex,
                                 unsigned int RequestedCount,
                                 char *SortCriteria) {
  printf("Invoke: UPnPContentDirectory_Search(%s,%s,%s,%u,%u,%s);\r\n",
         ContainerID, SearchCriteria, Filter, StartingIndex, RequestedCount,
         SortCriteria);
  UPnPResponse_ContentDirectory_Search(upnptoken, "Sample String", 250, 250,
                                       250);
}


x86 assembly (clang, -O0):
<UPnPContentDirectory_Search>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    0x10(%rbp),%rax
lea    0xe9d(%rip),%rdi
mov    %rax,(%rsp)
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0xfa,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1040 <UPnPResponse_ContentDirectory_Search@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UPnPContentDirectory_Search>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    0x20(%rsp),%rax
mov    %rax,(%rsp)
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rsi
mov    %rbx,%rdi
mov    $0xfa,%edx
mov    $0xfa,%ecx
mov    $0xfa,%r8d
add    $0x10,%rsp
pop    %rbx
jmp    1040 <UPnPResponse_ContentDirectory_Search@plt>

LLVM IR (-O0):
@.str = [58 x i8] c"Invoke: UPnPContentDirectory_Search(%s,%s,%s,%u,%u,%s);\0D\0A\00"
@.str.1 = [14 x i8] c"Sample String\00"
define void @UPnPContentDirectory_Search(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4, i32 %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i8* %6, i8** %14
%15 = load i8*, i8** %9
%16 = load i8*, i8** %10
%17 = load i8*, i8** %11
%18 = load i32, i32* %12
%19 = load i32, i32* %13
%20 = load i8*, i8** %14
%21 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %16, i8* %17, i32 %18, i32 %19, i8* %20)
%22 = load i8*, i8** %8
%23 = call i32 @UPnPResponse_ContentDirectory_Search(i8* %22, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 250, i32 250, i32 250)
ret void
}

LLVM IR (-O2):
@.str = [58 x i8] c"Invoke: UPnPContentDirectory_Search(%s,%s,%s,%u,%u,%s);\0D\0A\00"
@.str.1 = [14 x i8] c"Sample String\00"
define void @UPnPContentDirectory_Search(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4, i32 %5, i8* %6) {
%8 = tail call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2, i8* %3, i32 %4, i32 %5, i8* %6)
%9 = tail call i32 @UPnPResponse_ContentDirectory_Search(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 250, i32 250, i32 250)
ret void
}