// File: /workspace/github_c_makefile_star2_O0/yancanchen[P]mc-bloom-filter/murmur.c
// Function: MurmurHash3_x64_128
void MurmurHash3_x64_128 ( const void * key, const int len,
		const uint32_t seed, void * out )
{
	const uint8_t * data = (const uint8_t*)key;
	const int nblocks = len / 16;

	uint64_t h1 = seed;
	uint64_t h2 = seed;

	uint64_t c1 = BIG_CONSTANT(0x87c37b91114253d5);
	uint64_t c2 = BIG_CONSTANT(0x4cf5ad432745937f);

	int i;

	//----------
	// body

	const uint64_t * blocks = (const uint64_t *)(data);

	for(i = 0; i < nblocks; i++) {
		uint64_t k1 = getblock(blocks,i*2+0);
		uint64_t k2 = getblock(blocks,i*2+1);

		k1 *= c1; k1  = ROTL64(k1,31); k1 *= c2; h1 ^= k1;

		h1 = ROTL64(h1,27); h1 += h2; h1 = h1*5+0x52dce729;

		k2 *= c2; k2  = ROTL64(k2,33); k2 *= c1; h2 ^= k2;

		h2 = ROTL64(h2,31); h2 += h1; h2 = h2*5+0x38495ab5;
	}

	//----------
	// tail

	const uint8_t * tail = (const uint8_t*)(data + nblocks*16);

	uint64_t k1 = 0;
	uint64_t k2 = 0;

	switch(len & 15) {
		case 15: k2 ^= ((uint64_t)tail[14]) << 48;
		case 14: k2 ^= ((uint64_t)tail[13]) << 40;
		case 13: k2 ^= ((uint64_t)tail[12]) << 32;
		case 12: k2 ^= ((uint64_t)tail[11]) << 24;
		case 11: k2 ^= ((uint64_t)tail[10]) << 16;
		case 10: k2 ^= ((uint64_t)tail[ 9]) << 8;
		case  9: k2 ^= ((uint64_t)tail[ 8]) << 0;
				 k2 *= c2; k2  = ROTL64(k2,33); k2 *= c1; h2 ^= k2;

		case  8: k1 ^= ((uint64_t)tail[ 7]) << 56;
		case  7: k1 ^= ((uint64_t)tail[ 6]) << 48;
		case  6: k1 ^= ((uint64_t)tail[ 5]) << 40;
		case  5: k1 ^= ((uint64_t)tail[ 4]) << 32;
		case  4: k1 ^= ((uint64_t)tail[ 3]) << 24;
		case  3: k1 ^= ((uint64_t)tail[ 2]) << 16;
		case  2: k1 ^= ((uint64_t)tail[ 1]) << 8;
		case  1: k1 ^= ((uint64_t)tail[ 0]) << 0;
				 k1 *= c1; k1  = ROTL64(k1,31); k1 *= c2; h1 ^= k1;
	}

	//----------
	// finalization

	h1 ^= len; h2 ^= len;

	h1 += h2;
	h2 += h1;

	h1 = fmix64(h1);
	h2 = fmix64(h2);

	h1 += h2;
	h2 += h1;

	((uint64_t*)out)[0] = h1;
	((uint64_t*)out)[1] = h2;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movl %esi, 0x7c(%rsp)
movl %edx, 0x78(%rsp)
movq %rcx, 0x70(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x68(%rsp)
movl 0x7c(%rsp), %eax
movl $0x10, %ecx
cltd
idivl %ecx
movl %eax, 0x64(%rsp)
movl 0x78(%rsp), %eax
movq %rax, 0x58(%rsp)
movl 0x78(%rsp), %eax
movq %rax, 0x50(%rsp)
movabsq $-0x783c846eeebdac2b, %rax # imm = 0x87C37B91114253D5
movq %rax, 0x48(%rsp)
movabsq $0x4cf5ad432745937f, %rax # imm = 0x4CF5AD432745937F
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
cmpl 0x64(%rsp), %eax
jge 0x67fb
movq 0x30(%rsp), %rax
movl 0x3c(%rsp), %ecx
shll %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movl 0x3c(%rsp), %ecx
shll %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
imulq 0x28(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1f, %esi
callq 0x6ad0
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
imulq 0x28(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
xorq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdi
movl $0x1b, %esi
callq 0x6ad0
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
imulq $0x5, 0x58(%rsp), %rax
addq $0x52dce729, %rax       # imm = 0x52DCE729
movq %rax, 0x58(%rsp)
movq 0x40(%rsp), %rax
imulq 0x20(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movl $0x21, %esi
callq 0x6ad0
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
imulq 0x20(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
xorq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movl $0x1f, %esi
callq 0x6ad0
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
imulq $0x5, 0x50(%rsp), %rax
addq $0x38495ab5, %rax       # imm = 0x38495AB5
movq %rax, 0x50(%rsp)
movl 0x3c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3c(%rsp)
jmp 0x66bb
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x4, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movl 0x7c(%rsp), %eax
andl $0xf, %eax
decl %eax
movl %eax, %ecx
movq %rcx, (%rsp)
subl $0xe, %eax
ja 0x6a2e
movq (%rsp), %rax
leaq 0x1641(%rip), %rcx      # 0x7e88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%rsp), %rax
movzbl 0xe(%rax), %eax
shlq $0x30, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movzbl 0xd(%rax), %eax
shlq $0x28, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movzbl 0xc(%rax), %eax
shlq $0x20, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movzbl 0xb(%rax), %eax
shlq $0x18, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movzbl 0xa(%rax), %eax
shlq $0x10, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %eax
shlq $0x8, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x8(%rax), %eax
shlq $0x0, %rax
xorq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rax
imulq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movl $0x21, %esi
callq 0x6ad0
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rax
imulq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
xorq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x7(%rax), %eax
shlq $0x38, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x6(%rax), %eax
shlq $0x30, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x5(%rax), %eax
shlq $0x28, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x4(%rax), %eax
shlq $0x20, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x3(%rax), %eax
shlq $0x18, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x2(%rax), %eax
shlq $0x10, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x1(%rax), %eax
shlq $0x8, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl (%rax), %eax
shlq $0x0, %rax
xorq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rax
imulq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1f, %esi
callq 0x6ad0
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
imulq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
xorq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movslq 0x7c(%rsp), %rax
xorq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movslq 0x7c(%rsp), %rax
xorq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rdi
callq 0x6b10
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rdi
callq 0x6b10
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, (%rax)
movq 0x50(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
addq $0x88, %rsp
retq
nopl (%rax)