#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*/ tommy_hash_u32(int /*<<< orphan*/, void *, int);
int /*<<< orphan*/ tommy_hashlin_insert(void *, void *, void *,
                                        int /*<<< orphan*/);
int /*<<< orphan*/ tommy_list_insert_tail(void *, void *, void *);
void add_hash_table(void *ht, void *ht_node, void *ll, void *ll_node, void *obj,
                    void *key, int key_len) {
  tommy_hashlin_insert(ht, ht_node, obj, tommy_hash_u32(0, key, key_len));
  tommy_list_insert_tail(ll, ll_node, obj);
}


x86 assembly (clang, -O0):
<add_hash_table>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rsi
mov    0x10(%rbp),%edx
xor    %edi,%edi
call   1050 <tommy_hash_u32@plt>
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    %eax,%ecx
call   1040 <tommy_hashlin_insert@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <tommy_list_insert_tail@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_hash_table>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r8,%rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%r13
mov    0x30(%rsp),%edx
xor    %edi,%edi
mov    %r9,%rsi
call   1050 <tommy_hash_u32@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
call   1040 <tommy_hashlin_insert@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <tommy_list_insert_tail@plt>

LLVM IR (-O0):
define void @add_hash_table(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i32 %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i32 %6, i32* %14
%15 = load i8*, i8** %8
%16 = load i8*, i8** %9
%17 = load i8*, i8** %12
%18 = load i8*, i8** %13
%19 = load i32, i32* %14
%20 = call i32 @tommy_hash_u32(i32 0, i8* %18, i32 %19)
%21 = call i32 @tommy_hashlin_insert(i8* %15, i8* %16, i8* %17, i32 %20)
%22 = load i8*, i8** %10
%23 = load i8*, i8** %11
%24 = load i8*, i8** %12
%25 = call i32 @tommy_list_insert_tail(i8* %22, i8* %23, i8* %24)
ret void
}

LLVM IR (-O2):
define void @add_hash_table(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i32 %6) {
%8 = tail call i32 @tommy_hash_u32(i32 0, i8* %5, i32 %6)
%9 = tail call i32 @tommy_hashlin_insert(i8* %0, i8* %1, i8* %4, i32 %8)
%10 = tail call i32 @tommy_list_insert_tail(i8* %2, i8* %3, i8* %4)
ret void
}