// File: /workspace/github_c_makefile_star2_O3/lh3[P]minigraph/gfa-ed.c
// Function: gwf_trace_push
static int32_t gwf_trace_push(void *km, gwf_trace_v *a, int32_t v, int32_t pre, gwf_map64_t *h)
{
	uint64_t key = (uint64_t)v << 32 | (uint32_t)pre;
	khint_t k;
	int absent;
	k = gwf_map64_put(h, key, &absent);
	if (absent) {
		gwf_trace_t *p;
		kv_pushp(gwf_trace_t, km, *a, &p);
		p->v = v, p->pre = pre;
		kh_val(h, k) = a->n - 1;
		return a->n - 1;
	}
	return kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r11d
movq %rsi, 0x8(%rsp)
cmpq $0x0, 0x10(%r8)
movq %rdi, 0x20(%rsp)
je 0xbfef
movb (%rbx), %cl
movl $0x1, %r12d
shll %cl, %r12d
jmp 0xbff2
xorl %r12d, %r12d
movl 0x4(%rbx), %eax
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
jae 0xc010
movl (%rbx), %ecx
movl %r12d, %r15d
jmp 0xc240
leal 0x1(%r12), %ecx
bsrl %ecx, %esi
xorl %edx, %edx
cmpl $0x2, %ecx
cmovael %esi, %edx
andl %r12d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
cmpl $0x3, %edx
movl $0x2, %ecx
cmovael %edx, %ecx
movl $0x1, %r15d
shll %cl, %r15d
movl $0x1, %esi
movl %r15d, %r8d
shrl %r8d
movl %r15d, %edi
shrl $0x2, %edi
addl %r8d, %edi
cmpl %edi, %eax
jbe 0xc061
movl (%rbx), %ecx
shll %cl, %esi
movl %esi, %r15d
jmp 0xc240
movl %ecx, (%rsp)
movq %r11, 0x10(%rsp)
movl %ebp, 0x4(%rsp)
movq 0x18(%rbx), %rdi
movl %r15d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
movl $0x4, %r14d
cmovael %eax, %r14d
movq %r14, %rsi
callq 0x30e5
movq %rax, %rbp
xorl %r13d, %r13d
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2180
testq %rbp, %rbp
je 0xc327
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0xc0c4
movb (%rbx), %cl
movl $0x1, %r13d
shll %cl, %r13d
cmpl %r15d, %r13d
jae 0xc0f1
movq 0x18(%rbx), %rdi
movl $0xc, %edx
movl (%rsp), %ecx
shlq %cl, %rdx
callq 0x31ed
testq %rax, %rax
je 0xc31b
movq %rax, %rsi
movq %rax, 0x10(%rbx)
testl %r13d, %r13d
je 0xc221
leal -0x1(%r15), %r8d
movq %rbx, 0x18(%rsp)
movq 0x8(%rbx), %r9
movl $0x20, %eax
subl (%rsp), %eax
movl %r13d, %r10d
xorl %edx, %edx
movl %edx, %edi
shrl $0x5, %edi
movl (%r9,%rdi,4), %ebx
movl $0x1, %r12d
movl %edx, %ecx
shll %cl, %r12d
btl %edx, %ebx
jae 0xc1f3
leaq (%rdx,%rdx,2), %rcx
movq (%rsi,%rcx,4), %r14
movl 0x8(%rsi,%rcx,4), %r11d
notl %r12d
andl %r12d, %ebx
movl %ebx, (%r9,%rdi,4)
movq %r14, %rcx
notq %rcx
movq %r14, %rdi
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rcx, %rdi
shrq $0x1c, %rdi
xorl %ecx, %edi
imull $0x1e3779b9, %edi, %edi # imm = 0x1E3779B9
movl %eax, %ecx
shrl %cl, %edi
movl %edi, %r12d
shrl $0x5, %r12d
movl (%rbp,%r12,4), %ebx
movl $0x1, %r13d
movl %edi, %ecx
shll %cl, %r13d
btl %edi, %ebx
jae 0xc1a8
incl %edi
andl %r8d, %edi
jmp 0xc185
orl %r13d, %ebx
movl %ebx, (%rbp,%r12,4)
cmpl %r10d, %edi
jae 0xc1e4
testl %r13d, (%r9,%r12,4)
je 0xc1e4
movl %edi, %ecx
leaq (%rcx,%rcx,2), %rcx
movq (%rsi,%rcx,4), %rdi
movl 0x8(%rsi,%rcx,4), %ebx
movq %r14, (%rsi,%rcx,4)
movl %r11d, 0x8(%rsi,%rcx,4)
notl %r13d
andl %r13d, (%r9,%r12,4)
movl %ebx, %r11d
movq %rdi, %r14
jmp 0xc13f
movl %edi, %ecx
leaq (%rcx,%rcx,2), %rcx
movq %r14, (%rsi,%rcx,4)
movl %r11d, 0x8(%rsi,%rcx,4)
incq %rdx
cmpq %r10, %rdx
jne 0xc10b
cmpl %r15d, %r10d
movq 0x18(%rsp), %rbx
jbe 0xc221
movq 0x18(%rbx), %rdi
movl $0xc, %edx
movl (%rsp), %ecx
shlq %cl, %rdx
callq 0x31ed
movq %rax, 0x10(%rbx)
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdi
callq 0x301f
movq %rbp, 0x8(%rbx)
movl (%rsp), %ecx
movl %ecx, (%rbx)
movl 0x4(%rsp), %ebp
movq 0x10(%rsp), %r11
movl %ebp, %eax
movq %r11, %rdx
shlq $0x20, %rdx
orq %rdx, %rax
movq %rax, %rsi
notq %rsi
movq %rax, %rdx
shlq $0x15, %rdx
addq %rsi, %rdx
movq %rdx, %rsi
shrq $0x18, %rsi
xorq %rdx, %rsi
imulq $0x109, %rsi, %rsi      # imm = 0x109
movq %rsi, %rdx
shrq $0xe, %rdx
xorq %rsi, %rdx
leaq (%rdx,%rdx,4), %rsi
leaq (%rdx,%rsi,4), %rsi
movq %rsi, %rdx
shrq $0x1c, %rdx
xorl %esi, %edx
imull $0x1e3779b9, %edx, %r12d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r12d
decl %r15d
movq 0x8(%rbx), %rdx
movl %r12d, %ecx
movl %ecx, %esi
shrl $0x5, %esi
movl (%rdx,%rsi,4), %r8d
movl $0x1, %edi
shll %cl, %edi
btl %ecx, %r8d
jae 0xc2e5
movq 0x10(%rbx), %r9
movl %ecx, %r10d
leaq (%r10,%r10,2), %r10
cmpq %rax, (%r9,%r10,4)
je 0xc2e5
incl %ecx
andl %r15d, %ecx
cmpl %r12d, %ecx
jne 0xc29e
movl %r12d, %esi
shrl $0x5, %esi
movl $0x1, %edi
movl %r12d, %ecx
shll %cl, %edi
movl (%rdx,%rsi,4), %r8d
jmp 0xc2e8
movl %ecx, %r12d
testl %r8d, %edi
je 0xc301
movq 0x10(%rbx), %rax
movl %r12d, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rax,%rcx,4), %eax
jmp 0xc39f
movq 0x10(%rbx), %rcx
movl %r12d, %r9d
leaq (%r9,%r9,2), %r9
movq %rax, (%rcx,%r9,4)
orl %r8d, %edi
movl %edi, (%rdx,%rsi,4)
incl 0x4(%rbx)
jmp 0xc330
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0x301f
movl 0x4(%rsp), %ebp
movq 0x10(%rsp), %r11
movq 0x8(%rsp), %rsi
movq (%rsi), %rdx
cmpq 0x8(%rsi), %rdx
jne 0xc37b
leaq (%rdx,%rdx), %rax
testq %rdx, %rdx
movl $0x2, %edx
cmovneq %rax, %rdx
movq %rdx, 0x8(%rsi)
movq 0x10(%rsi), %rsi
shlq $0x3, %rdx
movq 0x20(%rsp), %rdi
movq %r11, %r14
callq 0x31ed
movq 0x8(%rsp), %rsi
movq %r14, %r11
movq %rax, %rcx
movq %rax, 0x10(%rsi)
movq (%rsi), %rdx
jmp 0xc37f
movq 0x10(%rsi), %rcx
leaq 0x1(%rdx), %rax
movq %rax, (%rsi)
movl %r11d, (%rcx,%rdx,8)
movl %ebp, 0x4(%rcx,%rdx,8)
movq 0x10(%rbx), %rcx
movl %r12d, %esi
leaq (%rsi,%rsi,2), %rsi
movl %edx, 0x8(%rcx,%rsi,4)
decl %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq