#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*/ _crypt_blowfish_rn(char const *, char const *, char *);
void bcrypt_hash(const char *in, char *out) {
  _crypt_blowfish_rn(&in[0 * 16], &in[1 * 16], &out[0 * 16]);
  _crypt_blowfish_rn(&in[2 * 16], &in[3 * 16], &out[1 * 16]);
  _crypt_blowfish_rn(&in[4 * 16], &out[1 * 16], &out[1 * 16]);
}


x86 assembly (clang, -O0):
<bcrypt_hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
add    $0x10,%rsi
mov    -0x10(%rbp),%rdx
call   1030 <_crypt_blowfish_rn@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
mov    -0x8(%rbp),%rsi
add    $0x30,%rsi
mov    -0x10(%rbp),%rdx
add    $0x10,%rdx
call   1030 <_crypt_blowfish_rn@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
mov    -0x10(%rbp),%rdx
add    $0x10,%rdx
call   1030 <_crypt_blowfish_rn@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bcrypt_hash>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0x10(%rdi),%rsi
mov    %r14,%rdx
call   1030 <_crypt_blowfish_rn@plt>
lea    0x20(%rbx),%rdi
lea    0x30(%rbx),%rsi
add    $0x10,%r14
mov    %r14,%rdx
call   1030 <_crypt_blowfish_rn@plt>
add    $0x40,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <_crypt_blowfish_rn@plt>

LLVM IR (-O0):
define void @bcrypt_hash(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = getelementptr inbounds i8, i8* %5, i64 0
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i64 16
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = call i32 @_crypt_blowfish_rn(i8* %6, i8* %8, i8* %10)
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 32
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 48
%16 = load i8*, i8** %4
%17 = getelementptr inbounds i8, i8* %16, i64 16
%18 = call i32 @_crypt_blowfish_rn(i8* %13, i8* %15, i8* %17)
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 64
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 16
%23 = load i8*, i8** %4
%24 = getelementptr inbounds i8, i8* %23, i64 16
%25 = call i32 @_crypt_blowfish_rn(i8* %20, i8* %22, i8* %24)
ret void
}

LLVM IR (-O2):
define void @bcrypt_hash(i8* %0, i8* %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 16
%4 = tail call i32 @_crypt_blowfish_rn(i8* %0, i8* %3, i8* %1)
%5 = getelementptr inbounds i8, i8* %0, i64 32
%6 = getelementptr inbounds i8, i8* %0, i64 48
%7 = getelementptr inbounds i8, i8* %1, i64 16
%8 = tail call i32 @_crypt_blowfish_rn(i8* %5, i8* %6, i8* %7)
%9 = getelementptr inbounds i8, i8* %0, i64 64
%10 = tail call i32 @_crypt_blowfish_rn(i8* %9, i8* %7, i8* %7)
ret void
}