// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movq %r8, %r13
movl %ecx, %r9d
movl %edx, %r15d
cmpq $0x0, 0x10(%r8)
pushq $0x1
popq %rbx
movq %rdi, 0x38(%rsp)
je 0x9e1d
movb (%r13), %cl
movl %ebx, %r12d
shll %cl, %r12d
jmp 0x9e20
xorl %r12d, %r12d
movl 0x4(%r13), %eax
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
movl %r9d, 0xc(%rsp)
movq %rsi, 0x40(%rsp)
jae 0x9e48
movl (%r13), %ebp
jmp 0xa068
leal 0x1(%r12), %ecx
xorl %edx, %edx
movl %ecx, %edi
cmpl $0x2, %edi
jb 0x9e5c
shrl %edi
incl %edx
jmp 0x9e51
leal -0x1(%rcx), %esi
andl %ecx, %esi
cmpl $0x1, %esi
sbbl $-0x1, %edx
cmpl $0x3, %edx
pushq $0x2
popq %rcx
cmovael %edx, %ecx
movl %ebx, %r8d
shll %cl, %r8d
movl %r8d, %edi
shrl %edi
movl %r8d, %esi
shrl $0x2, %esi
addl %edi, %esi
cmpl %esi, %eax
jbe 0x9e98
movl (%r13), %ebp
movl %ebx, %r12d
movl %ebp, %ecx
shll %cl, %r12d
jmp 0xa068
movl %ecx, 0x8(%rsp)
movq %r15, 0x18(%rsp)
movq 0x18(%r13), %rdi
movq %r8, 0x10(%rsp)
movl %r8d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
pushq $0x4
popq %r14
cmovael %eax, %r14d
movq %r14, %rsi
callq 0x266c
movq %rax, %rbp
movq %r13, %r15
xorl %r13d, %r13d
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2180
testq %rbp, %rbp
je 0xa11c
movq 0x10(%r15), %r14
testq %r14, %r14
movq %r15, 0x30(%rsp)
je 0x9f03
movb (%r15), %cl
movl %ebx, %r13d
shll %cl, %r13d
cmpl 0x10(%rsp), %r13d
jae 0x9f29
movq 0x18(%r15), %rdi
pushq $0xc
popq %rdx
movl 0x8(%rsp), %ecx
shlq %cl, %rdx
movq %r14, %rsi
callq 0x2774
testq %rax, %rax
je 0xa110
movq %rax, %r14
movq %rax, 0x10(%r15)
movq 0x10(%rsp), %rdi
leal -0x1(%rdi), %r15d
pushq $0x20
popq %rax
subl 0x8(%rsp), %eax
movl %eax, 0x2c(%rsp)
movl %r13d, %eax
movq %rax, 0x20(%rsp)
xorl %ecx, %ecx
movq 0x30(%rsp), %r13
cmpq 0x20(%rsp), %rcx
je 0xa020
movq 0x8(%r13), %r8
movl %ecx, %eax
shrl $0x5, %eax
movl (%r8,%rax,4), %edx
movl %ebx, %esi
shll %cl, %esi
btl %ecx, %edx
jae 0xa018
movq %rcx, 0x48(%rsp)
imulq $0xc, %rcx, %rcx
movq (%r14,%rcx), %r13
movl 0x8(%r14,%rcx), %r12d
notl %esi
andl %esi, %edx
movq %r8, 0x50(%rsp)
movl %edx, (%r8,%rax,4)
movq %r13, %rdi
callq 0xbee4
imull $0x9e3779b9, %eax, %eax # imm = 0x9E3779B9
movl 0x2c(%rsp), %ecx
shrl %cl, %eax
movl %eax, %edx
shrl $0x5, %edx
movl (%rbp,%rdx,4), %edi
movl %ebx, %esi
movl %eax, %ecx
shll %cl, %esi
btl %eax, %edi
jae 0x9fbf
incl %eax
andl %r15d, %eax
jmp 0x9fa4
orl %esi, %edi
movl %edi, (%rbp,%rdx,4)
movl %eax, %ecx
cmpl 0x20(%rsp), %eax
movq 0x50(%rsp), %r8
jae 0x9ffc
testl %esi, (%r8,%rdx,4)
je 0x9ffc
imulq $0xc, %rcx, %rax
movq (%r14,%rax), %rcx
movl 0x8(%r14,%rax), %edi
movq %r13, (%r14,%rax)
movl %r12d, 0x8(%r14,%rax)
notl %esi
andl %esi, (%r8,%rdx,4)
movl %edi, %r12d
movq %rcx, %r13
jmp 0x9f90
imulq $0xc, %rcx, %rax
movq %r13, (%r14,%rax)
movl %r12d, 0x8(%r14,%rax)
movq 0x30(%rsp), %r13
movq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rcx
incq %rcx
jmp 0x9f4c
cmpl %edi, 0x20(%rsp)
jbe 0xa040
movq 0x18(%r13), %rdi
movl 0x8(%rsp), %ecx
pushq $0xc
popq %rdx
shlq %cl, %rdx
movq %r14, %rsi
callq 0x2774
movq %rax, 0x10(%r13)
movq 0x8(%r13), %rsi
movq 0x18(%r13), %rdi
callq 0x2577
movq %rbp, 0x8(%r13)
movl 0x8(%rsp), %ebp
movl %ebp, (%r13)
movl 0xc(%rsp), %r9d
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %r12
movl %r9d, %r14d
movq %r15, %rax
shlq $0x20, %rax
orq %rax, %r14
decl %r12d
movq %r14, %rdi
callq 0xbee4
movq %r12, %r10
imull $0x9e3779b9, %eax, %r12d # imm = 0x9E3779B9
negb %bpl
movl %ebp, %ecx
shrl %cl, %r12d
movq 0x8(%r13), %rax
movl %r12d, %ecx
movl %ecx, %edx
shrl $0x5, %edx
movl (%rax,%rdx,4), %esi
movl %ebx, %edi
shll %cl, %edi
btl %ecx, %esi
jae 0xa0d7
movq 0x10(%r13), %r8
movl %ecx, %r9d
imulq $0xc, %r9, %r9
cmpq %r14, (%r8,%r9)
je 0xa0d7
incl %ecx
andl %r10d, %ecx
cmpl %r12d, %ecx
jne 0xa099
movl %r12d, %ecx
shll %cl, %ebx
movl %r12d, %edx
shrl $0x5, %edx
movl (%rax,%rdx,4), %esi
movl %ebx, %edi
jmp 0xa0da
movl %ecx, %r12d
testl %esi, %edi
je 0xa0f2
movq 0x10(%r13), %rax
movl %r12d, %ecx
imulq $0xc, %rcx, %rcx
movl 0x8(%rax,%rcx), %eax
jmp 0xa18a
movq 0x10(%r13), %rcx
movl %r12d, %r8d
imulq $0xc, %r8, %r8
movq %r14, (%rcx,%r8)
orl %esi, %edi
movl %edi, (%rax,%rdx,4)
incl 0x4(%r13)
movl 0xc(%rsp), %ebp
jmp 0xa128
movq 0x18(%r15), %rdi
movq %rbp, %rsi
callq 0x2577
movq %r15, %r13
movl 0xc(%rsp), %ebp
movq 0x18(%rsp), %r15
movq 0x40(%rsp), %rbx
movq (%rbx), %rdx
cmpq 0x8(%rbx), %rdx
jne 0xa166
leaq (%rdx,%rdx), %rax
testq %rdx, %rdx
pushq $0x2
popq %rdx
cmovneq %rax, %rdx
movq %rdx, 0x8(%rbx)
movq 0x10(%rbx), %rsi
shlq $0x3, %rdx
movq 0x38(%rsp), %rdi
callq 0x2774
movq %rax, %rcx
movq %rax, 0x10(%rbx)
movq (%rbx), %rdx
jmp 0xa16a
movq 0x10(%rbx), %rcx
leaq 0x1(%rdx), %rax
movq %rax, (%rbx)
movl %r15d, (%rcx,%rdx,8)
movl %ebp, 0x4(%rcx,%rdx,8)
movq 0x10(%r13), %rcx
movl %r12d, %esi
imulq $0xc, %rsi, %rsi
movl %edx, 0x8(%rcx,%rsi)
decl %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq