#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*/ fmessage(char *, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ fs_private_dir_copy(char const *, char const *,
                                       char const *);
int /*<<< orphan*/ fs_private_dir_mount(char const *, char const *);
int /*<<< orphan*/ timetrace_end();
int /*<<< orphan*/ timetrace_start();
void fs_private_dir_list(const char *private_dir, const char *private_run_dir,
                         const char *private_list) {
  timetrace_start();
  fs_private_dir_copy(private_dir, private_run_dir, private_list);
  fs_private_dir_mount(private_dir, private_run_dir);
  fmessage("Private %s installed in %0.2f ms\n", private_dir, timetrace_end());
}


x86 assembly (clang, -O0):
<fs_private_dir_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <timetrace_start@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1060 <fs_private_dir_copy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <fs_private_dir_mount@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <timetrace_end@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
lea    0xe5b(%rip),%rdi
call   1070 <fmessage@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fs_private_dir_list>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <timetrace_start@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1060 <fs_private_dir_copy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <fs_private_dir_mount@plt>
xor    %eax,%eax
call   1040 <timetrace_end@plt>
lea    0xe74(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
pop    %r14
pop    %r15
jmp    1070 <fmessage@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Private %s installed in %0.2f ms\0A\00"
define void @fs_private_dir_list(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = call i32 (...) @timetrace_start()
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = call i32 @fs_private_dir_copy(i8* %8, i8* %9, i8* %10)
%12 = load i8*, i8** %4
%13 = load i8*, i8** %5
%14 = call i32 @fs_private_dir_mount(i8* %12, i8* %13)
%15 = load i8*, i8** %4
%16 = call i32 (...) @timetrace_end()
%17 = call i32 @fmessage(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %16)
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"Private %s installed in %0.2f ms\0A\00"
define void @fs_private_dir_list(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 (...) @timetrace_start()
%5 = tail call i32 @fs_private_dir_copy(i8* %0, i8* %1, i8* %2)
%6 = tail call i32 @fs_private_dir_mount(i8* %0, i8* %1)
%7 = tail call i32 (...) @timetrace_end()
%8 = tail call i32 @fmessage(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %7)
ret void
}