// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/pdist.c
// Function: pt_pdist
pt_match_t *pt_pdist(const pt_pdopt_t *opt, const gfa_t *g)
{
	pt_match_t *ma;
	int64_t n_an;
	uint32_t n_mz;
	pt_mz1_t *mz;
	pt128_t *an = 0;

	PT_CALLOC(ma, 1);
	PT_CALLOC(ma->info, g->n_seg);
	ma->n_seg = g->n_seg;
	mz = pt_collect_minimizers(opt, g, &n_mz);
	an = pt_collect_anchors(g, n_mz, mz, opt->max_occ, &n_an, ma->info);
	free(mz);
	ma->ma = pt_cal_sim(n_an, an, ma->info, opt->k, opt->min_cnt, opt->min_sim, &ma->n_ma);
	free(an);
	pt_pdist_idx(ma);
	pt_pdist_symm(ma);
	pt_pdist_flt(ma, opt->min_cnt, opt->diff_thres);
	pt_pdist_symm(ma);
	return ma;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %rbp
pushq $0x1
popq %rdi
pushq $0x20
popq %r15
movq %r15, %rsi
callq 0x1130
movq %rax, %r14
movq %rbx, 0x30(%rsp)
movl 0x4(%rbx), %r13d
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x1130
movq %rax, 0x60(%rsp)
movq %rax, 0x10(%r14)
movl %r13d, (%r14)
xorpd %xmm0, %xmm0
leaq 0x80(%rsp), %rbx
movapd %xmm0, (%rbx)
xorl %r12d, %r12d
movl %r13d, %eax
cmpq %rax, %r12
jae 0x6222
movq 0x30(%rsp), %r13
movq 0x10(%r13), %rax
movq (%rax,%r15), %rdi
movl -0x20(%rax,%r15), %esi
movl (%rbp), %ecx
movl 0x4(%rbp), %edx
movl 0x8(%rbp), %r9d
movq %rbx, (%rsp)
movl %r12d, %r8d
callq 0x5304
incq %r12
movl 0x4(%r13), %r13d
addq $0x40, %r15
jmp 0x61e5
leaq 0x600f(%rip), %rbx      # 0xc238
cmpl $0x3, (%rbx)
jae 0x6b04
movq %r14, 0x50(%rsp)
movq 0x88(%rsp), %rdi
movl 0x80(%rsp), %esi
shlq $0x4, %rsi
addq %rdi, %rsi
callq 0x5eeb
cmpl $0x3, (%rbx)
jae 0x6b37
movabsq $0x1ffffffe00000000, %r9 # imm = 0x1FFFFFFE00000000
movabsq $0x7ffffff00000000, %r10 # imm = 0x7FFFFFF00000000
movl 0x80(%rsp), %eax
movl %eax, 0x7c(%rsp)
movq 0x88(%rsp), %rax
movq %rbp, 0x90(%rsp)
movl 0xc(%rbp), %ecx
movl %ecx, 0x78(%rsp)
movq %rax, 0x48(%rsp)
addq $0x8, %rax
movq %rax, 0x40(%rsp)
xorl %r8d, %r8d
pushq $0x1
popq %rdx
xorl %edi, %edi
movq $0x0, 0x8(%rsp)
xorl %r11d, %r11d
cmpl 0x7c(%rsp), %edx
ja 0x6592
movl %edx, 0x2c(%rsp)
movl %edx, %ebx
movl %r11d, %eax
je 0x62eb
movq %rbx, %rcx
shlq $0x4, %rcx
movq 0x48(%rsp), %rsi
movq (%rsi,%rcx), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
cmpq (%rsi,%rdx), %rcx
jne 0x62eb
movl 0x2c(%rsp), %edx
jmp 0x6325
movl 0x2c(%rsp), %edx
movl %edx, %ecx
subl %r11d, %ecx
cmpl $0x1, %ecx
jne 0x6318
shlq $0x4, %rax
movq 0x48(%rsp), %rcx
movl 0x8(%rcx,%rax), %eax
movl $0xfffffff, %ecx        # imm = 0xFFFFFFF
andl %ecx, %eax
movq 0x60(%rsp), %rcx
incl 0x4(%rcx,%rax,8)
jmp 0x6322
cmpl 0x78(%rsp), %ecx
jbe 0x6329
movl 0x2c(%rsp), %edx
movl %edx, %r11d
incl %edx
jmp 0x62b3
incl %r11d
movq %rbx, 0x68(%rsp)
cmpq %rbx, %rax
jae 0x631e
movl %r11d, 0x14(%rsp)
movl %r11d, %r11d
shlq $0x4, %r11
addq 0x40(%rsp), %r11
leaq 0x1(%rax), %rdx
shlq $0x4, %rax
movq 0x48(%rsp), %rcx
leaq (%rcx,%rax), %rbp
addq $0x8, %rbp
movl (%rbp), %eax
movl $0xfffffff, %ecx        # imm = 0xFFFFFFF
andl %ecx, %eax
movq 0x60(%rsp), %rcx
incl (%rcx,%rax,8)
movq %rdx, 0x70(%rsp)
movl %edx, %eax
movq %r8, %r14
shlq $0x4, %r14
xorl %r15d, %r15d
movq %r8, 0x18(%rsp)
movq %r11, 0x58(%rsp)
leaq (%r8,%r15), %rcx
cmpq %rbx, %rax
jae 0x657d
movq %rax, 0x20(%rsp)
movq (%rbp), %r13
movq (%r11,%r15,8), %r12
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %r13, %rdx
movl $0xfffffff, %esi        # imm = 0xFFFFFFF
andq %rsi, %rdx
shlq $0x6, %rdx
movl (%rax,%rdx), %edx
movq %rdx, 0x38(%rsp)
movq %r12, %rdx
andq %rsi, %rdx
shlq $0x6, %rdx
movl (%rax,%rdx), %ebx
cmpq 0x8(%rsp), %rcx
jne 0x6423
movq %rcx, %rsi
sarq %rsi
addq %rcx, %rsi
testq %rcx, %rcx
pushq $0x10
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rsp)
shlq $0x4, %rsi
callq 0x11a0
movq 0x58(%rsp), %r11
movabsq $0x7ffffff00000000, %r10 # imm = 0x7FFFFFF00000000
movabsq $0x1ffffffe00000000, %r9 # imm = 0x1FFFFFFE00000000
movq 0x18(%rsp), %r8
movq %rax, %rdi
movq (%r11,%r15,8), %rax
movq (%rbp), %rcx
jmp 0x6429
movq %r13, %rcx
movq %r12, %rax
xorq %r13, %r12
movabsq $0x80000000000000, %rdx # imm = 0x80000000000000
andq %rdx, %r12
movq %r12, %r13
shrq $0x37, %r13
shlq $0x21, %rcx
andq %r9, %rcx
movl %eax, %edx
andl $0xfffffff, %edx        # imm = 0xFFFFFFF
leaq (%rcx,%rdx,2), %rcx
orq %r13, %rcx
movq %rcx, (%rdi,%r14)
movq (%rbp), %rcx
testq %r12, %r12
jne 0x6472
movq (%r11,%r15,8), %rax
shrq $0x1c, %rax
andl $0x7ffffff, %eax        # imm = 0x7FFFFFF
jmp 0x648d
shrq $0x38, %rax
movq (%r11,%r15,8), %rdx
shrq $0x1c, %rdx
notl %edx
orl $0xf8000000, %edx       # imm = 0xF8000000
addl %eax, %ebx
leal (%rdx,%rbx), %eax
decl %eax
movq 0x8(%rsp), %rdx
shlq $0x4, %rcx
andq %r10, %rcx
movl %eax, %eax
orq %rcx, %rax
leaq (%r8,%r15), %rcx
incq %rcx
movq %rax, 0x8(%rdi,%r14)
cmpq %rdx, %rcx
jne 0x64f4
movq %rdx, %rbx
sarq %rbx
addq %rdx, %rbx
testq %rdx, %rdx
pushq $0x10
popq %rax
cmoveq %rax, %rbx
movq %rbx, %rsi
shlq $0x4, %rsi
callq 0x11a0
movq 0x58(%rsp), %r11
movabsq $0x7ffffff00000000, %r10 # imm = 0x7FFFFFF00000000
movabsq $0x1ffffffe00000000, %r9 # imm = 0x1FFFFFFE00000000
movq 0x18(%rsp), %r8
movq %rax, %rdi
movq %rbx, 0x8(%rsp)
movq 0x68(%rsp), %rbx
movq (%rbp), %rcx
movq (%r11,%r15,8), %rax
shlq $0x21, %rax
andq %r9, %rax
movl %ecx, %edx
andl $0xfffffff, %edx        # imm = 0xFFFFFFF
leaq (%rax,%rdx,2), %rax
orq %r13, %rax
movq %rax, 0x10(%rdi,%r14)
movq (%r11,%r15,8), %rax
testq %r12, %r12
jne 0x6535
movq (%rbp), %rcx
shrq $0x1c, %rcx
andl $0x7ffffff, %ecx        # imm = 0x7FFFFFF
jmp 0x6557
shrq $0x38, %rcx
movq (%rbp), %rdx
shrq $0x1c, %rdx
notl %edx
orl $0xf8000000, %edx       # imm = 0xF8000000
movq 0x38(%rsp), %r12
addl %ecx, %r12d
leal (%rdx,%r12), %ecx
decl %ecx
shlq $0x4, %rax
andq %r10, %rax
movl %ecx, %ecx
orq %rax, %rcx
movq %rcx, 0x18(%rdi,%r14)
movq 0x20(%rsp), %rax
incq %rax
addq $0x2, %r15
addq $0x20, %r14
jmp 0x6389
movl 0x14(%rsp), %r11d
incl %r11d
movq 0x70(%rsp), %rax
movq %rcx, %r8
jmp 0x6331
leaq 0x5c9f(%rip), %rbx      # 0xc238
cmpl $0x3, (%rbx)
movq %rdi, 0x20(%rsp)
movq %r8, 0x18(%rsp)
jae 0x6b6a
movq %r8, %rsi
shlq $0x4, %rsi
addq %rdi, %rsi
movq %rdi, %r12
movq %r8, %r13
callq 0x5223
cmpl $0x3, (%rbx)
movq 0x50(%rsp), %rbp
jae 0x6ba5
movq 0x48(%rsp), %rdi
callq 0x1040
movq 0x10(%rbp), %rax
movq %rax, 0x70(%rsp)
movq 0x90(%rsp), %rax
movl (%rax), %r15d
movslq 0x10(%rax), %rcx
movq %rcx, 0x38(%rsp)
movsd 0x18(%rax), %xmm0
movsd %xmm0, 0x48(%rsp)
xorl %r14d, %r14d
testq %r13, %r13
movl $0x0, %eax
cmovgq %r13, %rax
leaq 0x1(%rax), %rbx
leaq 0x10(%r12), %rcx
negq %rax
xorl %edx, %edx
pushq $0x1
popq %r8
leaq (%rax,%r8), %rsi
cmpq $0x1, %rsi
je 0x665a
cmpq %r8, %r13
je 0x6641
movq (%rcx), %rsi
movq %rdx, %rdi
shlq $0x4, %rdi
cmpq (%r12,%rdi), %rsi
je 0x6651
movq %r8, %rsi
subq %rdx, %rsi
cmpq %rsi, %r14
cmovleq %rsi, %r14
movq %r8, %rdx
incq %r8
addq $0x10, %rcx
jmp 0x6622
leaq (,%r14,8), %rdi
callq 0x1190
movq %rax, %r13
shlq $0x2, %r14
movq %r14, %rdi
callq 0x1190
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rax, 0x58(%rsp)
cvtsi2sd %r15d, %xmm0
movsd 0x200e(%rip), %xmm1     # 0x86a0
divsd %xmm0, %xmm1
movsd %xmm1, 0x60(%rsp)
leaq 0x8(%rsi), %rax
movq %rax, 0x68(%rsp)
pushq $0x1
popq %r12
xorl %r15d, %r15d
movl $0x0, 0x40(%rsp)
movl $0x0, 0x14(%rsp)
xorl %r9d, %r9d
movq 0x38(%rsp), %r8
movq %rbx, 0x30(%rsp)
cmpq %rbx, %r12
je 0x68c3
cmpq %rdi, %r12
je 0x66f3
movq %r12, %rcx
shlq $0x4, %rcx
movq (%rsi,%rcx), %rcx
movq %r9, %rdx
shlq $0x4, %rdx
cmpq (%rsi,%rdx), %rcx
je 0x67b4
movq %r12, %rcx
subq %r9, %rcx
cmpq %r8, %rcx
jge 0x6706
movq %r12, %r9
jmp 0x67b4
movq %r9, %rbx
shlq $0x4, %rbx
movq 0x68(%rsp), %rax
leaq (%rax,%rbx), %rcx
xorl %r14d, %r14d
leaq (%r9,%r14), %rdx
cmpq %r12, %rdx
jge 0x6733
movq (%rcx), %rdx
movq %rdx, (%r13,%r14,8)
incq %r14
addq $0x10, %rcx
jmp 0x6719
movq %r15, 0x8(%rsp)
movl %r14d, %r15d
leaq (,%r15,8), %rsi
addq %r13, %rsi
movq %r13, %rdi
callq 0x1bbb
xorl %eax, %eax
cmpq %r15, %rax
jae 0x6760
andl $0x0, 0x4(%r13,%rax,8)
incq %rax
jmp 0x6750
movl %r14d, %edi
movq %r13, %rsi
movq 0x58(%rsp), %rdx
callq 0x5f2b
movq 0x38(%rsp), %r8
cmpl %r8d, %eax
jae 0x6784
movq %r12, %r9
movq 0x20(%rsp), %rsi
jmp 0x67a5
movq 0x20(%rsp), %rsi
movq (%rsi,%rbx), %rbx
movq %rbx, %r15
shrq $0x21, %r15
movl %ebx, %ebp
shrl %ebp
cmpl %r15d, %ebp
jne 0x67bc
movq %r12, %r9
movq 0x50(%rsp), %rbp
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %rbx
movq 0x8(%rsp), %r15
incq %r12
jmp 0x66c9
movl %eax, %r14d
movl %ebp, %eax
movq 0x70(%rsp), %rdx
movl (%rdx,%rax,8), %eax
movl %r14d, %ecx
cvtsi2sd %rcx, %xmm0
addl (%rdx,%r15,8), %eax
addsd %xmm0, %xmm0
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movsd 0x60(%rsp), %xmm1
callq 0x10b0
ucomisd 0x48(%rsp), %xmm0
jae 0x680e
movq %r12, %r9
movq 0x50(%rsp), %rbp
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x38(%rsp), %r8
jmp 0x67aa
movl 0x14(%rsp), %r9d
movl 0x40(%rsp), %eax
cmpl %eax, %r9d
jne 0x6868
movl %eax, %ecx
shrl %ecx
addl %eax, %ecx
testl %eax, %eax
pushq $0x10
popq %rax
cmovel %eax, %ecx
movq %rcx, 0x40(%rsp)
imulq $0x18, %rcx, %rsi
movq 0x8(%rsp), %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x11a0
movsd 0x8(%rsp), %xmm0
movl 0x14(%rsp), %r9d
movq 0x40(%rsp), %rcx
movl %ecx, 0x40(%rsp)
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x38(%rsp), %r8
jmp 0x687c
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x8(%rsp), %rax
movq %rbx, %rdx
shrq $0x20, %rdx
xorl %ebx, %edx
andl $0x1, %edx
movl %r9d, %ecx
incl %r9d
movl %r9d, 0x14(%rsp)
imulq $0x18, %rcx, %rcx
movl %r15d, (%rax,%rcx)
movl %ebp, 0x4(%rax,%rcx)
movl %r14d, 0x8(%rax,%rcx)
movl %edx, 0xc(%rax,%rcx)
movsd %xmm0, 0x10(%rax,%rcx)
movq %r12, %r9
movq 0x50(%rsp), %rbp
movq 0x30(%rsp), %rbx
movq %rax, %r15
jmp 0x67b4
movq 0x58(%rsp), %rdi
callq 0x1040
movq %r13, %rdi
callq 0x1040
movl 0x14(%rsp), %ebx
movl %ebx, 0x4(%rbp)
leaq 0x5955(%rip), %rax      # 0xc238
cmpl $0x3, (%rax)
jae 0x6bd4
movq %r15, 0x18(%rbp)
movq 0x20(%rsp), %rdi
callq 0x1040
movq %rbp, %rdi
callq 0x6117
movq %rbp, %rdi
callq 0x5ff4
movq 0x90(%rsp), %rax
movl 0x10(%rax), %ebx
movsd 0x20(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movl 0x4(%rbp), %r14d
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x1130
movsd 0x8(%rsp), %xmm2
movl (%rbp), %ecx
xorl %edx, %edx
cmpq %rcx, %rdx
je 0x6a20
movq 0x8(%rbp), %rsi
movq (%rsi,%rdx,8), %rdi
testl %edi, %edi
je 0x6a18
movq %rdi, %rsi
shrq $0x20, %rsi
addl %esi, %edi
imulq $0x18, %rsi, %r8
addq $0x8, %r8
xorl %r9d, %r9d
movq %r8, %r10
movq %rsi, %r11
cmpq %rdi, %r11
jae 0x698f
movq 0x18(%rbp), %r15
movl (%r15,%r10), %ebp
cmpl %ebp, %r9d
cmovbel %ebp, %r9d
movq 0x50(%rsp), %rbp
incq %r11
addq $0x18, %r10
jmp 0x696d
movl %r9d, %r10d
cvtsi2sd %r10, %xmm0
mulsd %xmm2, %xmm0
movq %rsi, %r10
cmpq %rdi, %r10
jae 0x69cc
movq 0x18(%rbp), %r11
movl (%r11,%r8), %r11d
cvtsi2sd %r11, %xmm1
ucomisd %xmm0, %xmm1
jae 0x69be
addl %ebx, %r11d
cmpl %r9d, %r11d
jb 0x69c3
movb $0x1, (%rax,%r10)
incq %r10
addq $0x18, %r8
jmp 0x699e
leal 0x1(%rsi), %r8d
imulq $0x18, %r8, %r9
addq $0x8, %r9
cmpl %edi, %r8d
jae 0x6a18
movq 0x18(%rbp), %r11
movl -0x4(%r11,%r9), %ebp
movl %esi, %r10d
imulq $0x18, %r10, %r15
cmpl 0x4(%r11,%r15), %ebp
jne 0x6a08
addq %r11, %r15
movl (%r11,%r9), %r11d
cmpl 0x8(%r15), %r11d
cmovbeq %r8, %r10
movb $0x0, (%rax,%r10)
incq %r8
addq $0x18, %r9
incl %esi
movq 0x50(%rsp), %rbp
jmp 0x69d8
incq %rdx
jmp 0x693a
xorl %ecx, %ecx
cmpq %r14, %rcx
je 0x6a83
cmpb $0x0, (%rax,%rcx)
je 0x6a7e
movq 0x8(%rbp), %rdi
movq 0x18(%rbp), %r9
imulq $0x18, %rcx, %rsi
movl (%r9,%rsi), %edx
movl 0x4(%r9,%rsi), %r8d
movl 0xc(%r9,%rsi), %esi
movq (%rdi,%r8,8), %rdi
movq %rdi, %r8
shrq $0x20, %r8
addl %r8d, %edi
imulq $0x18, %r8, %r10
addq %r10, %r9
addq $0xc, %r9
cmpq %rdi, %r8
jae 0x6a7e
cmpl %edx, -0x8(%r9)
jne 0x6a75
cmpl %esi, (%r9)
jne 0x6a75
movb $0x1, (%rax,%r8)
incq %r8
addq $0x18, %r9
jmp 0x6a60
incq %rcx
jmp 0x6a22
imulq $0x18, %r14, %rcx
xorl %edx, %edx
movq %rax, %rsi
xorl %edi, %edi
cmpq %rdx, %rcx
je 0x6ac4
cmpb $0x0, (%rsi)
je 0x6abb
movq 0x18(%rbp), %r8
movl %edi, %r9d
incl %edi
imulq $0x18, %r9, %r9
movq 0x10(%r8,%rdx), %r10
movq %r10, 0x10(%r8,%r9)
movupd (%r8,%rdx), %xmm0
movupd %xmm0, (%r8,%r9)
addq $0x18, %rdx
incq %rsi
jmp 0x6a8e
movl %edi, 0x4(%rbp)
movq %rax, %rdi
callq 0x1040
movq %rbp, %rdi
callq 0x6117
leaq 0x575a(%rip), %rax      # 0xc238
cmpl $0x3, (%rax)
jae 0x6c02
movq %rbp, %rdi
callq 0x5ff4
movq %rbp, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x54ed(%rip), %rax      # 0xbff8
movq (%rax), %r15
callq 0x52aa
movl 0x80(%rsp), %ecx
leaq 0x1c30(%rip), %rsi      # 0x8751
leaq 0x1c4d(%rip), %rdx      # 0x8775
movq %r15, %rdi
movb $0x1, %al
callq 0x1160
jmp 0x6232
movq 0x54ba(%rip), %rax      # 0xbff8
movq (%rax), %r15
callq 0x52aa
movl 0x80(%rsp), %ecx
leaq 0x1c37(%rip), %rsi      # 0x878b
leaq 0x1c1a(%rip), %rdx      # 0x8775
movq %r15, %rdi
movb $0x1, %al
callq 0x1160
jmp 0x625b
movq 0x5487(%rip), %rax      # 0xbff8
movq (%rax), %r14
callq 0x52aa
leaq 0x1c2c(%rip), %rsi      # 0x87ac
leaq 0x1c47(%rip), %rdx      # 0x87ce
movq %r14, %rdi
movq 0x18(%rsp), %rcx
movb $0x1, %al
callq 0x1160
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %rdi
jmp 0x65ac
movq 0x544c(%rip), %rax      # 0xbff8
movq (%rax), %r14
callq 0x52aa
leaq 0x1c26(%rip), %rsi      # 0x87e1
leaq 0x1c0c(%rip), %rdx      # 0x87ce
movq %r14, %rdi
movq %r13, %rcx
movb $0x1, %al
callq 0x1160
jmp 0x65cf
movq 0x541d(%rip), %rax      # 0xbff8
movq (%rax), %r14
callq 0x52aa
leaq 0x1c16(%rip), %rsi      # 0x8800
leaq 0x1c49(%rip), %rdx      # 0x883a
movq %r14, %rdi
movl %ebx, %ecx
movb $0x1, %al
callq 0x1160
jmp 0x68ec
movq 0x53ef(%rip), %rax      # 0xbff8
movq (%rax), %r14
callq 0x52aa
movl 0x4(%rbp), %ecx
leaq 0x1c2a(%rip), %rsi      # 0x8845
leaq 0x1c5a(%rip), %rdx      # 0x887c
movq %r14, %rdi
movb $0x1, %al
callq 0x1160
jmp 0x6ae7