#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_unlink(int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/,
                                  int /*<<< orphan*/ const *,
                                  int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/ *, int,
                                  int /*<<< orphan*/ *);
int /*<<< orphan*/ main_time();
uint8_t fs_rmdir(uint32_t rootinode, uint8_t sesflags, uint32_t parent,
                 uint16_t nleng, const uint8_t *name, uint32_t uid,
                 uint32_t gids, uint32_t *gid) {
  return fs_univ_unlink(main_time(), rootinode, sesflags, parent, nleng, name,
                        uid, gids, gid, 1, NULL);
}


x86 assembly (clang, -O0):
<fs_rmdir>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    $0x0,%al
call   1030 <main_time@plt>
mov    %eax,%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x20(%rbp),%r9
mov    -0x24(%rbp),%r11d
mov    0x10(%rbp),%r10d
mov    0x18(%rbp),%rax
xor    %ebx,%ebx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x1,0x18(%rsp)
movq   $0x0,0x20(%rsp)
call   1040 <fs_univ_unlink@plt>
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @fs_rmdir(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4, i32 %5, i32 %6, i32* %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32* %4, i32** %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32* %7, i32** %16
%17 = call i32 (...) @main_time()
%18 = load i32, i32* %9
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = load i32*, i32** %13
%23 = load i32, i32* %14
%24 = load i32, i32* %15
%25 = load i32*, i32** %16
%26 = call i32 @fs_univ_unlink(i32 %17, i32 %18, i32 %19, i32 %20, i32 %21, i32* %22, i32 %23, i32 %24, i32* %25, i32 1, i32* null)
ret i32 %26
}

LLVM IR (-O2):
define i32 @fs_rmdir(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4, i32 %5, i32 %6, i32* %7) {
%9 = tail call i32 (...) @main_time()
%10 = tail call i32 @fs_univ_unlink(i32 %9, i32 %0, i32 %1, i32 %2, i32 %3, i32* %4, i32 %5, i32 %6, i32* %7, i32 1, i32* null)
ret i32 %10
}