#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 */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ fs_univ_snapshot(int /*<<< orphan*/, int /*<<< orphan*/,
                                    int /*<<< orphan*/, int /*<<< orphan*/,
                                    int /*<<< orphan*/, int /*<<< orphan*/,
                                    int /*<<< orphan*/ const *,
                                    int /*<<< orphan*/, int /*<<< orphan*/,
                                    int /*<<< orphan*/ *, int /*<<< orphan*/,
                                    int /*<<< orphan*/);
int /*<<< orphan*/ main_time();
uint8_t fs_snapshot(uint32_t rootinode, uint8_t sesflags, uint32_t inode_src,
                    uint32_t parent_dst, uint16_t nleng_dst,
                    const uint8_t *name_dst, uint32_t uid, uint32_t gids,
                    uint32_t *gid, uint8_t smode, uint16_t cumask) {
  return fs_univ_snapshot(main_time(), rootinode, sesflags, inode_src,
                          parent_dst, nleng_dst, name_dst, uid, gids, gid,
                          smode, cumask);
}


x86 assembly (clang, -O0):
<fs_snapshot>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %ecx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9,-0x38(%rbp)
mov    $0x0,%al
call   1040 <main_time@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
mov    -0x38(%rbp),%r15
mov    0x10(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    0x20(%rbp),%r11
mov    0x28(%rbp),%r10d
mov    0x30(%rbp),%eax
mov    %r15,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10d,0x20(%rsp)
mov    %eax,0x28(%rsp)
call   1030 <fs_univ_snapshot@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<fs_snapshot>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8d,%r15d
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%ebx
mov    %edi,%ebp
xor    %eax,%eax
call   1040 <main_time@plt>
mov    %eax,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %r12d,%r8d
mov    %r15d,%r9d
mov    0x60(%rsp),%eax
push   %rax
mov    0x60(%rsp),%eax
push   %rax
push   0x60(%rsp)
mov    0x60(%rsp),%eax
push   %rax
mov    0x60(%rsp),%eax
push   %rax
push   %r14
call   1030 <fs_univ_snapshot@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @fs_snapshot(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32* %5, i32 %6, i32 %7, i32* %8, i32 %9, i32 %10) {
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32
store i32 %0, i32* %12
store i32 %1, i32* %13
store i32 %2, i32* %14
store i32 %3, i32* %15
store i32 %4, i32* %16
store i32* %5, i32** %17
store i32 %6, i32* %18
store i32 %7, i32* %19
store i32* %8, i32** %20
store i32 %9, i32* %21
store i32 %10, i32* %22
%23 = call i32 (...) @main_time()
%24 = load i32, i32* %12
%25 = load i32, i32* %13
%26 = load i32, i32* %14
%27 = load i32, i32* %15
%28 = load i32, i32* %16
%29 = load i32*, i32** %17
%30 = load i32, i32* %18
%31 = load i32, i32* %19
%32 = load i32*, i32** %20
%33 = load i32, i32* %21
%34 = load i32, i32* %22
%35 = call i32 @fs_univ_snapshot(i32 %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28, i32* %29, i32 %30, i32 %31, i32* %32, i32 %33, i32 %34)
ret i32 %35
}

LLVM IR (-O2):
define i32 @fs_snapshot(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32* %5, i32 %6, i32 %7, i32* %8, i32 %9, i32 %10) {
%12 = tail call i32 (...) @main_time()
%13 = tail call i32 @fs_univ_snapshot(i32 %12, i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32* %5, i32 %6, i32 %7, i32* %8, i32 %9, i32 %10)
ret i32 %13
}