#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;

/* Variables and functions */
int /*<<< orphan*/ strlen(char const *);
int /*<<< orphan*/ test_output(int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/, int);
void simpletest(const char *password, const char *salt, const char *header,
                uint8_t garlic) {
  test_output((uint8_t *)password, strlen(password), (uint8_t *)salt,
              strlen(salt), (uint8_t *)header, strlen(header), garlic, 64);
}


x86 assembly (clang, -O0):
<simpletest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    %eax,%r9d
mov    -0x1c(%rbp),%eax
mov    %eax,(%rsp)
movl   $0x40,0x8(%rsp)
call   1030 <test_output@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simpletest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %eax,%r13d
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r12,%rdx
mov    %ebp,%ecx
mov    %r15,%r8
mov    %eax,%r9d
push   $0x40
push   %r14
call   1030 <test_output@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @simpletest(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = bitcast i8* %9 to i32*
%11 = load i8*, i8** %5
%12 = call i32 @strlen(i8* %11)
%13 = load i8*, i8** %6
%14 = bitcast i8* %13 to i32*
%15 = load i8*, i8** %6
%16 = call i32 @strlen(i8* %15)
%17 = load i8*, i8** %7
%18 = bitcast i8* %17 to i32*
%19 = load i8*, i8** %7
%20 = call i32 @strlen(i8* %19)
%21 = load i32, i32* %8
%22 = call i32 @test_output(i32* %10, i32 %12, i32* %14, i32 %16, i32* %18, i32 %20, i32 %21, i32 64)
ret void
}

LLVM IR (-O2):
define void @simpletest(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = bitcast i8* %0 to i32*
%6 = tail call i32 @strlen(i8* %0)
%7 = bitcast i8* %1 to i32*
%8 = tail call i32 @strlen(i8* %1)
%9 = bitcast i8* %2 to i32*
%10 = tail call i32 @strlen(i8* %2)
%11 = tail call i32 @test_output(i32* %5, i32 %6, i32* %7, i32 %8, i32* %9, i32 %10, i32 %3, i32 64)
ret void
}