#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 lvar_leaf_entry {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ e_char(struct lvar_leaf_entry const *);
int /*<<< orphan*/ e_hash(struct lvar_leaf_entry const *);
int /*<<< orphan*/ e_keysize(struct lvar_leaf_entry const *);
int /*<<< orphan*/ printk(char *, struct lvar_leaf_entry const *,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/);
void e_print(const struct lvar_leaf_entry *ent) {
  printk("        %p %8.8x \"%*.*s\"\n", ent, e_hash(ent), e_keysize(ent),
         e_keysize(ent), e_char(ent));
}


x86 assembly (clang, -O0):
<e_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <e_hash@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <e_keysize@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <e_keysize@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <e_char@plt>
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    %eax,%r9d
lea    0xe67(%rip),%rdi
call   1030 <printk@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_print>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1050 <e_hash@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1040 <e_keysize@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
call   1040 <e_keysize@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1060 <e_char@plt>
lea    0xe8a(%rip),%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %ebp,%r8d
mov    %eax,%r9d
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printk@plt>

LLVM IR (-O0):
%struct.lvar_leaf_entry = type { i32 }
@.str = [26 x i8] c" %p %8.8x \22%*.*s\22\0A\00"
define void @e_print(%struct.lvar_leaf_entry* %0) {
%2 = alloca %struct.lvar_leaf_entry*
store %struct.lvar_leaf_entry* %0, %struct.lvar_leaf_entry** %2
%3 = load %struct.lvar_leaf_entry*, %struct.lvar_leaf_entry** %2
%4 = load %struct.lvar_leaf_entry*, %struct.lvar_leaf_entry** %2
%5 = call i32 @e_hash(%struct.lvar_leaf_entry* %4)
%6 = load %struct.lvar_leaf_entry*, %struct.lvar_leaf_entry** %2
%7 = call i32 @e_keysize(%struct.lvar_leaf_entry* %6)
%8 = load %struct.lvar_leaf_entry*, %struct.lvar_leaf_entry** %2
%9 = call i32 @e_keysize(%struct.lvar_leaf_entry* %8)
%10 = load %struct.lvar_leaf_entry*, %struct.lvar_leaf_entry** %2
%11 = call i32 @e_char(%struct.lvar_leaf_entry* %10)
%12 = call i32 @printk(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), %struct.lvar_leaf_entry* %3, i32 %5, i32 %7, i32 %9, i32 %11)
ret void
}

LLVM IR (-O2):
%struct.lvar_leaf_entry = type { i32 }
@.str = [26 x i8] c" %p %8.8x \22%*.*s\22\0A\00"
define void @e_print(%struct.lvar_leaf_entry* %0) {
%2 = tail call i32 @e_hash(%struct.lvar_leaf_entry* %0)
%3 = tail call i32 @e_keysize(%struct.lvar_leaf_entry* %0)
%4 = tail call i32 @e_keysize(%struct.lvar_leaf_entry* %0)
%5 = tail call i32 @e_char(%struct.lvar_leaf_entry* %0)
%6 = tail call i32 @printk(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), %struct.lvar_leaf_entry* %0, i32 %2, i32 %3, i32 %4, i32 %5)
ret void
}