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

/* Variables and functions */
size_t fmix(size_t);
size_t mur(size_t, size_t);
size_t read32(char const *);
uint32_t Hash32Len13to24(const char *s, size_t len) {
  uint32_t a = read32(s - 4 + (len >> 1));
  uint32_t b = read32(s + 4);
  uint32_t c = read32(s + len - 8);
  uint32_t d = read32(s + (len >> 1));
  uint32_t e = read32(s);
  uint32_t f = read32(s + len - 4);
  uint32_t h = len;
  return fmix(mur(f, mur(e, mur(d, mur(c, mur(b, mur(a, h)))))));
}


x86 assembly (clang, -O0):
<Hash32Len13to24>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
add    %rax,%rdi
call   1040 <read32@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
call   1040 <read32@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
add    -0x10(%rbp),%rdi
add    $0xfffffffffffffff8,%rdi
call   1040 <read32@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
add    %rax,%rdi
call   1040 <read32@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <read32@plt>
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
add    -0x10(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
call   1040 <read32@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1050 <mur@plt>
mov    -0x70(%rbp),%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    -0x68(%rbp),%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    -0x60(%rbp),%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    -0x58(%rbp),%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    -0x50(%rbp),%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    %rax,%rdi
call   1030 <fmix@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Hash32Len13to24>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsi,%rbp
shr    %rbp
add    %rbp,%rdi
add    $0xfffffffffffffffc,%rdi
call   1040 <read32@plt>
mov    %rax,(%rsp)
lea    0x4(%rbx),%rdi
call   1040 <read32@plt>
mov    %rax,%r12
lea    (%rbx,%r14,1),%rdi
add    $0xfffffffffffffff8,%rdi
call   1040 <read32@plt>
mov    %rax,%r13
add    %rbx,%rbp
mov    %rbp,%rdi
call   1040 <read32@plt>
mov    %rax,%r15
mov    %rbx,%rdi
call   1040 <read32@plt>
mov    %rax,%rbp
lea    (%rbx,%r14,1),%rdi
add    $0xfffffffffffffffc,%rdi
call   1040 <read32@plt>
mov    %rax,%rbx
mov    (%rsp),%rdi
mov    %r14,%rsi
call   1050 <mur@plt>
mov    %r12,%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    %r13,%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    %r15,%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1050 <mur@plt>
mov    %rax,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fmix@plt>

LLVM IR (-O0):
define i64 @Hash32Len13to24(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 -4
%14 = load i64, i64* %4
%15 = lshr i64 %14, 1
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = call i64 @read32(i8* %16)
store i64 %17, i64* %5
%18 = load i8*, i8** %3
%19 = getelementptr inbounds i8, i8* %18, i64 4
%20 = call i64 @read32(i8* %19)
store i64 %20, i64* %6
%21 = load i8*, i8** %3
%22 = load i64, i64* %4
%23 = getelementptr inbounds i8, i8* %21, i64 %22
%24 = getelementptr inbounds i8, i8* %23, i64 -8
%25 = call i64 @read32(i8* %24)
store i64 %25, i64* %7
%26 = load i8*, i8** %3
%27 = load i64, i64* %4
%28 = lshr i64 %27, 1
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = call i64 @read32(i8* %29)
store i64 %30, i64* %8
%31 = load i8*, i8** %3
%32 = call i64 @read32(i8* %31)
store i64 %32, i64* %9
%33 = load i8*, i8** %3
%34 = load i64, i64* %4
%35 = getelementptr inbounds i8, i8* %33, i64 %34
%36 = getelementptr inbounds i8, i8* %35, i64 -4
%37 = call i64 @read32(i8* %36)
store i64 %37, i64* %10
%38 = load i64, i64* %4
store i64 %38, i64* %11
%39 = load i64, i64* %10
%40 = load i64, i64* %9
%41 = load i64, i64* %8
%42 = load i64, i64* %7
%43 = load i64, i64* %6
%44 = load i64, i64* %5
%45 = load i64, i64* %11
%46 = call i64 @mur(i64 %44, i64 %45)
%47 = call i64 @mur(i64 %43, i64 %46)
%48 = call i64 @mur(i64 %42, i64 %47)
%49 = call i64 @mur(i64 %41, i64 %48)
%50 = call i64 @mur(i64 %40, i64 %49)
%51 = call i64 @mur(i64 %39, i64 %50)
%52 = call i64 @fmix(i64 %51)
ret i64 %52
}

LLVM IR (-O2):
define i64 @Hash32Len13to24(i8* %0, i64 %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 -4
%4 = lshr i64 %1, 1
%5 = getelementptr inbounds i8, i8* %3, i64 %4
%6 = tail call i64 @read32(i8* %5)
%7 = getelementptr inbounds i8, i8* %0, i64 4
%8 = tail call i64 @read32(i8* %7)
%9 = getelementptr inbounds i8, i8* %0, i64 %1
%10 = getelementptr inbounds i8, i8* %9, i64 -8
%11 = tail call i64 @read32(i8* %10)
%12 = getelementptr inbounds i8, i8* %0, i64 %4
%13 = tail call i64 @read32(i8* %12)
%14 = tail call i64 @read32(i8* %0)
%15 = getelementptr inbounds i8, i8* %9, i64 -4
%16 = tail call i64 @read32(i8* %15)
%17 = tail call i64 @mur(i64 %6, i64 %1)
%18 = tail call i64 @mur(i64 %8, i64 %17)
%19 = tail call i64 @mur(i64 %11, i64 %18)
%20 = tail call i64 @mur(i64 %13, i64 %19)
%21 = tail call i64 @mur(i64 %14, i64 %20)
%22 = tail call i64 @mur(i64 %16, i64 %21)
%23 = tail call i64 @fmix(i64 %22)
ret i64 %23
}