// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r10
cmpq $0x0, 0x10(%r8)
je 0xbbc0
movb (%rbx), %cl
movl $0x1, %r12d
shll %cl, %r12d
jmp 0xbbc3
xorl %r12d, %r12d
movl 0x4(%rbx), %eax
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
jb 0xbe5a
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, %r11d
shll %cl, %r11d
movl $0x1, %r9d
movl %r11d, %r8d
shrl %r8d
movl %r11d, %esi
shrl $0x2, %esi
addl %r8d, %esi
cmpl %esi, %eax
ja 0xbe52
movl %ecx, 0xc(%rsp)
movq %rdi, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movl %ebp, 0x8(%rsp)
movq 0x18(%rbx), %rdi
movq %r11, 0x28(%rsp)
movl %r11d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
movl $0x4, %r14d
cmovael %eax, %r14d
movq %r14, %rsi
callq 0x31c1
movq %rax, %rbp
xorl %r15d, %r15d
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2180
testq %rbp, %rbp
je 0xbf26
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0xbc93
movb (%rbx), %cl
movl $0x1, %r15d
shll %cl, %r15d
cmpl 0x28(%rsp), %r15d
jae 0xbcd2
movq 0x18(%rbx), %rdi
movl $0xc, %edx
movl 0xc(%rsp), %ecx
shlq %cl, %rdx
callq 0x32c4
movq %rax, %r14
testq %rax, %rax
je 0xbcbd
movq %r14, 0x10(%rbx)
jmp 0xbcc9
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0x30f6
testq %r14, %r14
je 0xbf23
testl %r15d, %r15d
je 0xbdfd
movq 0x28(%rsp), %rax
leal -0x1(%rax), %edi
movq 0x8(%rbx), %r8
movl $0x20, %eax
subl 0xc(%rsp), %eax
movl %r15d, %ecx
movq %rcx, 0x30(%rsp)
xorl %edx, %edx
movl %edx, %esi
shrl $0x5, %esi
movl (%r8,%rsi,4), %r9d
movl $0x1, %r12d
movl %edx, %ecx
shll %cl, %r12d
btl %edx, %r9d
jae 0xbdef
movq 0x10(%rbx), %r10
leaq (%rdx,%rdx,2), %rcx
movq (%r10,%rcx,4), %r14
movl 0x8(%r10,%rcx,4), %r11d
notl %r12d
andl %r12d, %r9d
movl %r9d, (%r8,%rsi,4)
movq %r14, %rcx
notq %rcx
movq %r14, %rsi
shlq $0x15, %rsi
addq %rcx, %rsi
movq %rsi, %rcx
shrq $0x18, %rcx
xorq %rsi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rsi
shrq $0xe, %rsi
xorq %rcx, %rsi
leaq (%rsi,%rsi,4), %rcx
leaq (%rsi,%rcx,4), %rcx
movq %rcx, %rsi
shrq $0x1c, %rsi
xorl %ecx, %esi
imull $0x1e3779b9, %esi, %esi # imm = 0x1E3779B9
movl %eax, %ecx
shrl %cl, %esi
movl %esi, %r12d
shrl $0x5, %r12d
movl (%rbp,%r12,4), %r9d
movl $0x1, %r13d
movl %esi, %ecx
shll %cl, %r13d
btl %esi, %r9d
jae 0xbd9c
incl %esi
andl %edi, %esi
jmp 0xbd79
orl %r13d, %r9d
movl %r9d, (%rbp,%r12,4)
movl %esi, %ecx
cmpl %r15d, %esi
jae 0xbdd8
testl %r13d, (%r8,%r12,4)
je 0xbdd8
leaq (%rcx,%rcx,2), %rcx
movq (%r10,%rcx,4), %rsi
movl 0x8(%r10,%rcx,4), %r9d
movq %r14, (%r10,%rcx,4)
movl %r11d, 0x8(%r10,%rcx,4)
notl %r13d
andl %r13d, (%r8,%r12,4)
movb $0x1, %cl
movl %r9d, %r11d
movq %rsi, %r14
jmp 0xbde7
leaq (%rcx,%rcx,2), %rcx
movq %r14, (%r10,%rcx,4)
movl %r11d, 0x8(%r10,%rcx,4)
xorl %ecx, %ecx
testb %cl, %cl
jne 0xbd33
incq %rdx
cmpq 0x30(%rsp), %rdx
jne 0xbcfa
cmpl 0x28(%rsp), %r15d
movl 0xc(%rsp), %r14d
jbe 0xbe25
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdi
movl $0xc, %edx
movl %r14d, %ecx
shlq %cl, %rdx
callq 0x32c4
movq %rax, 0x10(%rbx)
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdi
callq 0x30f6
movq %rbp, 0x8(%rbx)
movl %r14d, (%rbx)
movl 0x8(%rsp), %ebp
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %rdi
movl $0x1, %r9d
movb (%rbx), %cl
shll %cl, %r9d
movl %r9d, %r12d
movl %ebp, %eax
movq %r14, %rcx
shlq $0x20, %rcx
orq %rcx, %rax
movq %rax, %rcx
notq %rcx
movq %rax, %rdx
shlq $0x15, %rdx
addq %rcx, %rdx
movq %rdx, %rcx
shrq $0x18, %rcx
xorq %rdx, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdx
shrq $0xe, %rdx
xorq %rcx, %rdx
leaq (%rdx,%rdx,4), %rcx
leaq (%rdx,%rcx,4), %rcx
movq %rcx, %rdx
shrq $0x1c, %rdx
xorl %ecx, %edx
imull $0x1e3779b9, %edx, %esi # imm = 0x1E3779B9
xorl %ecx, %ecx
subb (%rbx), %cl
shrl %cl, %esi
movl %r12d, %ecx
decl %ecx
movq 0x8(%rbx), %rdx
movl %esi, %r12d
movl %r12d, %r8d
shrl $0x5, %r8d
movl (%rdx,%r8,4), %r8d
btl %r12d, %r8d
jae 0xbee7
movq 0x10(%rbx), %r9
movl %r12d, %r8d
leaq (%r8,%r8,2), %r8
cmpq %rax, (%r9,%r8,4)
je 0xbee7
incl %r12d
andl %ecx, %r12d
cmpl %esi, %r12d
jne 0xbeba
movl %r12d, %esi
movl $0x1, %r11d
movl %r12d, %ecx
shll %cl, %r11d
shrl $0x5, %esi
movl (%rdx,%rsi,4), %ecx
movb $0x1, %r15b
btl %r12d, %ecx
jb 0xbf39
movq 0x10(%rbx), %r8
movl %r12d, %r9d
leaq (%r9,%r9,2), %r9
movq %rax, (%r8,%r9,4)
orl %ecx, %r11d
movl %r11d, (%rdx,%rsi,4)
incl 0x4(%rbx)
xorl %r15d, %r15d
jmp 0xbf39
xorl %r15d, %r15d
movl 0x8(%rsp), %ebp
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %rdi
testb %r15b, %r15b
je 0xbf4f
movq 0x10(%rbx), %rax
movl %r12d, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rax,%rcx,4), %eax
jmp 0xbfaa
movq 0x8(%r10), %rax
cmpq %rax, (%r10)
jne 0xbf83
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %edx
cmovneq %rcx, %rdx
movq %rdx, 0x8(%r10)
movq 0x10(%r10), %rsi
shlq $0x3, %rdx
movq %r10, %r15
callq 0x32c4
movq %r15, %r10
movq %rax, 0x10(%r15)
movq (%r10), %rcx
movq 0x10(%r10), %rdx
leaq 0x1(%rcx), %rax
movq %rax, (%r10)
movl %r14d, (%rdx,%rcx,8)
movl %ebp, 0x4(%rdx,%rcx,8)
movq 0x10(%rbx), %rdx
movl %r12d, %esi
leaq (%rsi,%rsi,2), %rsi
movl %ecx, 0x8(%rdx,%rsi,4)
decl %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq