// File: /workspace/github_c_makefile_star2_O3/lh3[P]minimap/map.c
// Function: mm_map
const mm_reg1_t *mm_map(const mm_idx_t *mi, int l_seq, const char *seq, int *n_regs, mm_tbuf_t *b, const mm_mapopt_t *opt, const char *name)
{
	int j, n_dreg = 0, u = 0;
	const uint64_t *dreg = 0;

	b->mini.n = b->coef.n = 0;
	mm_sketch(seq, l_seq, mi->w, mi->k, 0, &b->mini);
	if (opt->sdust_thres > 0)
		dreg = sdust_core((const uint8_t*)seq, l_seq, opt->sdust_thres, 64, &n_dreg, b->sdb);
	for (j = 0; j < b->mini.n; ++j) {
		int k, n;
		const uint64_t *r;
		int32_t qpos = (uint32_t)b->mini.a[j].y>>1, strand = b->mini.a[j].y&1;
		b->mini.a[j].y = b->mini.a[j].y<<32>>32; // clear the rid field
		if (dreg && n_dreg) { // test complexity
			int s = qpos - (mi->k - 1), e = s + mi->k;
			while (u < n_dreg && (uint32_t)dreg[u] <= s) ++u;
			if (u < n_dreg && dreg[u]>>32 < e) {
				int v, l = 0;
				for (v = u; v < n_dreg && dreg[v]>>32 < e; ++v) { // iterate over LCRs overlapping this minimizer
					int ss = s > dreg[v]>>32? s : dreg[v]>>32;
					int ee = e < (uint32_t)dreg[v]? e : (uint32_t)dreg[v];
					l += ee - ss;
				}
				if (l > mi->k>>1) continue;
			}
		}
		r = mm_idx_get(mi, b->mini.a[j].x, &n);
		if (n > mi->max_occ) continue;
		for (k = 0; k < n; ++k) {
			int32_t rpos = (uint32_t)r[k] >> 1;
			mm128_t *p;
			if (name && (opt->flag&MM_F_NO_SELF) && mi->name && strcmp(name, mi->name[r[k]>>32]) == 0 && rpos == qpos)
				continue;
			if (name && (opt->flag&MM_F_AVA) && mi->name && strcmp(name, mi->name[r[k]>>32]) > 0)
				continue;
			kv_pushp(mm128_t, b->coef, &p);
			if ((r[k]&1) == strand) { // forward strand
				p->x = (uint64_t)r[k] >> 32 << 32 | (0x80000000U + rpos - qpos);
				p->y = (uint64_t)j << 32 | rpos;
			} else { // reverse strand
				p->x = (uint64_t)r[k] >> 32 << 32 | (rpos + qpos) | 1ULL<<63;
				p->y = (uint64_t)j << 32 | rpos;
			}
		}
	}
	radix_sort_128x(b->coef.a, b->coef.a + b->coef.n);
	b->reg.n = 0;
	get_reg(b, opt->radius, mi->k, opt->min_cnt, opt->max_gap, opt->merge_frac, opt->flag);
	*n_regs = b->reg.n;
	return b->reg.a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r9, %r15
movq %r8, %rbx
movq %rcx, 0x80(%rsp)
movq %rdx, %r14
movl %esi, %ebp
movl $0x0, 0x54(%rsp)
xorl %r13d, %r13d
movq %r13, 0x18(%r8)
movq %r13, (%r8)
movl 0x4(%rdi), %edx
movq %rdi, 0x18(%rsp)
movl 0x8(%rdi), %ecx
movq %r14, %rdi
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x6c40
movq %r15, 0x60(%rsp)
movl 0x10(%r15), %edx
testl %edx, %edx
jle 0x5672
movq 0x78(%rbx), %r9
leaq 0x54(%rsp), %r8
movq %r14, %rdi
movl %ebp, %esi
movl $0x40, %ecx
callq 0x7394
movq %rax, %r13
cmpq $0x0, (%rbx)
movq %rbx, 0x28(%rsp)
je 0x5936
movabsq $-0x80000001, %rax      # imm = 0xFFFFFFFF7FFFFFFF
xorl %ebp, %ebp
movabsq $0x100000000, %r12      # imm = 0x100000000
addq $-0x7fffffff, %rax      # imm = 0x80000001
movq %rax, 0x68(%rsp)
xorl %r15d, %r15d
movq %r13, 0x38(%rsp)
testq %r13, %r13
setne %dl
movq 0x10(%rbx), %rax
movq %rbp, %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rdi
movl %edi, %esi
movq %rdi, 0x40(%rsp)
shrl %edi
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rax,%rcx)
movl 0x54(%rsp), %r9d
testl %r9d, %r9d
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x579e
cmpl %r9d, %r15d
jge 0x579e
movslq %r9d, %rsi
movq 0x18(%rsp), %rdx
movl 0x8(%rdx), %edx
movq 0x10(%rsp), %rdi
incl %edi
movl %edi, %r8d
subl %edx, %r8d
movslq %r15d, %r15
movq %r15, %r10
shlq $0x20, %r10
cmpl (%r13,%r15,8), %r8d
jb 0x572e
incq %r15
addq %r12, %r10
cmpq %r15, %rsi
jne 0x5717
movl %r9d, %r15d
jmp 0x579e
sarq $0x1d, %r10
movl 0x4(%r13,%r10), %r11d
movslq %edi, %r10
cmpq %r10, %r11
jae 0x579e
xorl %r11d, %r11d
cmpl %r15d, %r9d
jle 0x5784
movslq %r8d, %r9
xorl %ebx, %ebx
movq %r15, %r14
movq (%r13,%r14,8), %r11
movq %r11, %r12
shrq $0x20, %r12
cmpq %r10, %r12
jae 0x5781
cmpq %r9, %r12
cmovbl %r8d, %r12d
cmpl %r11d, %edi
cmovbl %edi, %r11d
addl %ebx, %r11d
subl %r12d, %r11d
incq %r14
movl %r11d, %ebx
cmpq %rsi, %r14
jl 0x574f
jmp 0x5784
movl %ebx, %r11d
sarl %edx
cmpl %edx, %r11d
movq 0x28(%rsp), %rbx
movabsq $0x100000000, %r12      # imm = 0x100000000
jg 0x592a
movq (%rax,%rcx), %rsi
movq 0x18(%rsp), %r14
movq %r14, %rdi
leaq 0x50(%rsp), %rdx
callq 0x3cdb
movl 0x50(%rsp), %ecx
cmpl 0x18(%r14), %ecx
seta %dl
movq %rax, %r14
testl %ecx, %ecx
setle %al
orb %dl, %al
jne 0x592a
movq %rbp, 0x20(%rsp)
shlq $0x20, %rbp
movq %rbp, 0x30(%rsp)
xorl %r12d, %r12d
movq (%r14,%r12,8), %r13
movl %r13d, %ebp
shrl %ebp
cmpq $0x0, 0xd0(%rsp)
je 0x5865
movq 0x60(%rsp), %rax
movl 0x14(%rax), %ebx
testb $0x2, %bl
je 0x5835
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x5835
movq %r13, %rcx
shrq $0x20, %rcx
movq (%rax,%rcx,8), %rsi
movq 0xd0(%rsp), %rdi
callq 0x2160
testl %eax, %eax
jne 0x5835
cmpl 0x10(%rsp), %ebp
je 0x5900
testb $0x8, %bl
je 0x5865
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x5865
shrq $0x20, %r13
movq (%rax,%r13,8), %rsi
movq 0xd0(%rsp), %rdi
callq 0x2160
testl %eax, %eax
jg 0x5900
movq 0x28(%rsp), %rbx
movq 0x18(%rbx), %rcx
movq 0x28(%rbx), %rax
cmpq 0x20(%rbx), %rcx
jne 0x58a0
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x20(%rbx)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, 0x28(%rbx)
movq 0x18(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rbx)
movq (%r14,%r12,8), %rdx
movq 0x40(%rsp), %rsi
xorl %edx, %esi
testb $0x1, %sil
jne 0x58cf
andq 0x68(%rsp), %rdx
movl %ebp, %esi
subl 0x10(%rsp), %esi
addl $0x80000000, %esi       # imm = 0x80000000
orq %rdx, %rsi
jmp 0x58eb
movabsq $0x7fffffff00000000, %rsi # imm = 0x7FFFFFFF00000000
andq %rsi, %rdx
movq 0x10(%rsp), %rsi
addl %ebp, %esi
orq %rdx, %rsi
btsq $0x3f, %rsi
shlq $0x4, %rcx
addq %rcx, %rax
movl %ebp, %ecx
orq 0x30(%rsp), %rcx
movq %rsi, (%rax)
movq %rcx, 0x8(%rax)
incq %r12
movslq 0x50(%rsp), %rax
cmpq %rax, %r12
jl 0x57e0
movq 0x28(%rsp), %rbx
movq 0x38(%rsp), %r13
movq 0x20(%rsp), %rbp
movabsq $0x100000000, %r12      # imm = 0x100000000
incq %rbp
cmpq %rbp, (%rbx)
ja 0x56aa
movq 0x18(%rbx), %rsi
movq 0x28(%rbx), %rdi
shlq $0x4, %rsi
addq %rdi, %rsi
callq 0x319d
movq $0x0, 0xa0(%rbx)
movq 0x60(%rsp), %rdx
movslq 0x8(%rdx), %r13
movq 0x18(%rbx), %rax
cmpq %r13, %rax
jb 0x63f4
movslq (%rdx), %r9
movq 0x18(%rsp), %rcx
movl 0x8(%rcx), %ecx
movq %rcx, 0x78(%rsp)
movl 0x4(%rdx), %r15d
movl 0x14(%rdx), %ecx
movss 0x18(%rdx), %xmm0
movss %xmm0, 0x30(%rsp)
movl %ecx, 0x70(%rsp)
testb $0x4, %cl
movl %r15d, 0xc(%rsp)
movq %r9, 0x10(%rsp)
je 0x5a9d
testq %rax, %rax
je 0x5a97
leal (%r9,%r9), %ecx
movq 0x28(%rbx), %rdx
leaq 0x8(%rdx), %rsi
movq %rax, %rdi
orb $-0x80, 0x3(%rsi)
addq $0x10, %rsi
decq %rdi
jne 0x59bc
cmpq $0x1, %rax
je 0x5a46
movabsq $-0x80000001, %rsi      # imm = 0xFFFFFFFF7FFFFFFF
leaq 0x18(%rdx), %rdi
movl $0x1, %r8d
movl $0x2, %r9d
movq %r8, %r10
shlq $0x4, %r10
movq (%rdx,%r10), %r15
movq 0x8(%rdx,%r10), %r11
movq %rdi, %r14
movq %r9, %rbx
decq %rbx
jle 0x5a37
movq %r15, %r12
subq -0x18(%r14), %r12
cmpq 0x10(%rsp), %r12
jae 0x5a37
movl -0x10(%r14), %ebp
addq $-0x10, %r14
subl %r11d, %ebp
movl %ebp, %r12d
negl %r12d
cmovsl %ebp, %r12d
cmpl %ecx, %r12d
jge 0x59ff
andq %rsi, %r11
movq %r11, 0x8(%rdx,%r10)
andq %rsi, (%r14)
incq %r8
incq %r9
addq $0x10, %rdi
cmpq %rax, %r8
jne 0x59e9
xorl %ecx, %ecx
movl $0x8, %edx
xorl %esi, %esi
movq 0x28(%rsp), %rbx
movl 0xc(%rsp), %r15d
movq 0x28(%rbx), %rdi
testb $-0x80, 0x3(%rdi,%rdx)
jne 0x5a81
leaq (%rdi,%rdx), %rax
addq $-0x8, %rax
movslq %esi, %r8
incl %esi
shlq $0x4, %r8
movups (%rax), %xmm0
movups %xmm0, (%rdi,%r8)
movq 0x18(%rbx), %rax
incq %rcx
addq $0x10, %rdx
cmpq %rcx, %rax
ja 0x5a59
movslq %esi, %rax
movq 0x10(%rsp), %r9
jmp 0x5a99
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movq $0x0, 0x30(%rbx)
cmpq $0x2, %rax
movq %r13, 0x58(%rsp)
jb 0x5c0e
xorl %esi, %esi
movl $0x1, %r12d
xorl %r15d, %r15d
movq 0x28(%rbx), %rcx
movq %r12, %rbp
shlq $0x4, %rbp
movq (%rcx,%rbp), %rdx
movslq %r15d, %r14
movq %r14, %r13
shlq $0x4, %r13
subq (%rcx,%r13), %rdx
cmpq %r9, %rdx
jbe 0x5beb
movl %r12d, %r10d
subl %r15d, %r10d
cmpl 0x58(%rsp), %r10d
jl 0x5bb0
testq %rsi, %rsi
je 0x5b4e
movq 0x40(%rbx), %rax
movq %rsi, %rdx
shlq $0x4, %rdx
movq -0x8(%rax,%rdx), %rcx
movl -0x10(%rax,%rdx), %edi
addl %ecx, %edi
movl %edi, %r8d
subl %r15d, %r8d
jle 0x5b4e
subl %ecx, %edi
cmpl %edi, %r10d
cmovll %r10d, %edi
xorps %xmm0, %xmm0
cvtsi2ss %r8d, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %edi, %xmm1
mulss 0x30(%rsp), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x5b4e
addq %rdx, %rax
movslq %ecx, %rcx
movq %r12, %rdx
subq %rcx, %rdx
movq %rdx, -0x10(%rax)
jmp 0x5bb0
cmpq 0x38(%rbx), %rsi
jne 0x5b91
leaq (%rsi,%rsi), %rax
testq %rsi, %rsi
movl $0x2, %ecx
cmoveq %rcx, %rax
movq %rax, 0x38(%rbx)
movq 0x40(%rbx), %rdi
shlq $0x4, %rax
movq %rax, %rsi
movl %r10d, 0x40(%rsp)
callq 0x2200
movl 0x40(%rsp), %r10d
movq 0x10(%rsp), %r9
movq %rax, 0x40(%rbx)
movq 0x30(%rbx), %rsi
jmp 0x5b95
movq 0x40(%rbx), %rax
leaq 0x1(%rsi), %rcx
movq %rcx, 0x30(%rbx)
shlq $0x4, %rsi
movslq %r10d, %rdx
movq %rdx, (%rax,%rsi)
movq %r14, 0x8(%rax,%rsi)
movq %rcx, %rsi
leal 0x1(%r15), %eax
cmpl %eax, %r12d
cmovgl %r12d, %eax
addq $0x10, %r13
incq %r14
cmpq %r12, %r14
jge 0x5be4
movq 0x28(%rbx), %rcx
movq (%rcx,%rbp), %rdx
subq (%rcx,%r13), %rdx
incl %r15d
addq $0x10, %r13
incq %r14
cmpq %r9, %rdx
ja 0x5bc2
jmp 0x5be7
movl %eax, %r15d
movq 0x18(%rbx), %rax
incq %r12
cmpq %r12, %rax
ja 0x5abf
movl %r12d, %ebp
subl %r15d, %ebp
movq 0x58(%rsp), %r13
cmpl %r13d, %ebp
jge 0x5c1f
movl 0xc(%rsp), %r15d
jmp 0x5c16
xorl %esi, %esi
cmpl $0x2, %r13d
jl 0x5c76
movq 0x40(%rbx), %rdi
jmp 0x5ce6
testq %rsi, %rsi
je 0x5c86
movq 0x40(%rbx), %rdi
movq %rsi, %rax
shlq $0x4, %rax
movq -0x8(%rdi,%rax), %rcx
movl -0x10(%rdi,%rax), %edx
addl %ecx, %edx
movl %edx, %r8d
subl %r15d, %r8d
jle 0x5c82
subl %ecx, %edx
cmpl %edx, %ebp
cmovll %ebp, %edx
xorps %xmm0, %xmm0
cvtsi2ss %r8d, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
movss 0x30(%rsp), %xmm2
mulss %xmm1, %xmm2
ucomiss %xmm2, %xmm0
jbe 0x5c82
addq %rdi, %rax
subl %ecx, %r12d
movslq %r12d, %rcx
movq %rcx, -0x10(%rax)
jmp 0x5ce1
movl $0x1, %ebp
movb $0x1, %al
xorl %r15d, %r15d
jmp 0x5c8a
xorl %eax, %eax
jmp 0x5c8a
movb $0x1, %al
xorl %esi, %esi
cmpq 0x38(%rbx), %rsi
jne 0x5cbf
addq %rsi, %rsi
testb %al, %al
movl $0x2, %eax
cmoveq %rsi, %rax
movq %rax, 0x38(%rbx)
movq 0x40(%rbx), %rdi
shlq $0x4, %rax
movq %rax, %rsi
callq 0x2200
movq %rax, %rdi
movq %rax, 0x40(%rbx)
movq 0x30(%rbx), %rsi
jmp 0x5cc3
movq 0x40(%rbx), %rdi
leaq 0x1(%rsi), %rax
movq %rax, 0x30(%rbx)
shlq $0x4, %rsi
movslq %ebp, %rcx
movq %rcx, (%rdi,%rsi)
movslq %r15d, %rcx
movq %rcx, 0x8(%rdi,%rsi)
movq %rax, %rsi
movl 0xc(%rsp), %r15d
shlq $0x4, %rsi
addq %rdi, %rsi
callq 0x319d
movq $0x0, 0x48(%rbx)
movl 0x30(%rbx), %eax
cmpl $0x2, %r13d
movl $0x1, %ecx
cmovgel %r13d, %ecx
movl %ecx, 0x74(%rsp)
decl %eax
js 0x6261
movq 0x78(%rsp), %rcx
leal -0x1(%rcx), %ebp
movl %eax, %ecx
movl %ebp, 0x4c(%rsp)
movq 0x40(%rbx), %rax
movq %rcx, 0x88(%rsp)
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %r14
movq (%rax,%rcx), %r12
addq %r14, %r12
movl %r12d, %eax
subl %r14d, %eax
cmpl 0x84(%rbx), %eax
jbe 0x5dd3
decl %eax
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
orl %eax, %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x84(%rbx)
movq 0x88(%rbx), %rdi
leal 0x8(,%rcx,8), %esi
callq 0x2200
movq %rax, 0x88(%rbx)
movq 0x90(%rbx), %rdi
movl 0x84(%rbx), %esi
shlq $0x3, %rsi
callq 0x2200
movq %rax, 0x90(%rbx)
movq 0x98(%rbx), %rdi
movl 0x84(%rbx), %esi
shlq $0x3, %rsi
callq 0x2200
movq %rax, 0x98(%rbx)
movl $0x0, 0x80(%rbx)
xorl %eax, %eax
movl $0x0, %ecx
movq %rcx, 0x20(%rsp)
movabsq $0x7fffffff00000000, %rcx # imm = 0x7FFFFFFF00000000
movq %rcx, 0x38(%rsp)
cmpl %r14d, %r12d
jle 0x5e62
movslq %r14d, %rcx
movslq %r12d, %rdx
subq %rcx, %rdx
shlq $0x4, %rcx
addq 0x28(%rbx), %rcx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
xorl %edi, %edi
cmpq $-0x1, (%rcx)
je 0x5e45
movq 0x8(%rcx), %rsi
movq 0x88(%rbx), %rdi
movl %eax, %r8d
incl %eax
movl %eax, 0x80(%rbx)
movq %rsi, (%rdi,%r8,8)
movq (%rcx), %rdi
movq %rdi, %rsi
shrq $0x20, %rsi
shrq $0x3f, %rdi
addq $0x10, %rcx
decq %rdx
jne 0x5e17
movq %rdi, 0x20(%rsp)
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
shlq $0x20, %rsi
movq %rsi, 0x38(%rsp)
cmpl %r13d, %eax
jb 0x6249
movq 0x88(%rbx), %rdi
movl %eax, %eax
leaq (%rdi,%rax,8), %rsi
callq 0x519c
movl 0x80(%rbx), %edi
movq 0x88(%rbx), %rsi
movq 0x90(%rbx), %rdx
movq 0x98(%rbx), %rcx
cmpl $0x0, 0x20(%rsp)
je 0x5ea6
callq 0x53fe
jmp 0x5eab
callq 0x5201
cmpl %eax, %r13d
jg 0x6249
movl $0x1, %r9d
cmpl $0x2, %eax
jl 0x5f0d
movq 0x88(%rbx), %rcx
movq 0x90(%rbx), %rdx
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %r9d
movl $0x1, %esi
movq -0x8(%rdx,%rsi,8), %r8
movq (%rdx,%rsi,8), %rdi
movq (%rcx,%rdi,8), %rdi
movq (%rcx,%r8,8), %r8
xorq %rdi, %r8
shrq $0x20, %r8
je 0x5f05
movslq %r9d, %r8
incl %r9d
movq (%rdx,%r8,8), %r8
movq %rdi, (%rcx,%r8,8)
incq %rsi
cmpq %rsi, %rax
jne 0x5edd
cmpl 0x74(%rsp), %r9d
jl 0x6249
movq %r9, %rcx
movq 0x20(%rsp), %rax
shll $0x1f, %eax
orq %rax, 0x38(%rsp)
movl %ecx, %eax
movq %rax, 0x68(%rsp)
incl %ecx
movq %rcx, 0x60(%rsp)
xorl %r14d, %r14d
movl $0x1, %r12d
cmpq 0x68(%rsp), %r12
jne 0x61dd
movl %r12d, %ebp
subl %r14d, %ebp
cmpl %r13d, %ebp
jl 0x61d8
movq 0xa0(%rbx), %rax
movq 0xb0(%rbx), %rdi
cmpq 0xa8(%rbx), %rax
jne 0x5fa8
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0xa8(%rbx)
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2200
movq %rax, %rdi
movq %rax, 0xb0(%rbx)
movq 0xa0(%rbx), %rax
movq %rdi, 0x18(%rsp)
leaq 0x1(%rax), %rcx
movq %rcx, 0xa0(%rbx)
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %r10
addq %rax, %r10
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
orq 0x38(%rsp), %rbp
movq %rbp, (%rdi,%r10)
movq 0x10(%rbx), %rcx
movq 0x88(%rbx), %rdx
movq 0x90(%rbx), %rsi
movslq %r14d, %rbp
movq (%rsi,%rbp,8), %rax
movq (%rdx,%rax,8), %rax
movq %rax, %rdi
shrq $0x1c, %rdi
andq $-0x10, %rdi
movl 0x8(%rcx,%rdi), %edi
shrl %edi
movl 0x4c(%rsp), %r8d
subl %r8d, %edi
movq 0x18(%rsp), %r9
movl %edi, 0xc(%r9,%r10)
movq 0x18(%rsp), %rdi
movq -0x8(%rsi,%r12,8), %rsi
movq (%rdx,%rsi,8), %rdx
movq %rdx, %rsi
shrq $0x1c, %rsi
andq $-0x10, %rsi
movl 0x8(%rcx,%rsi), %ecx
shrl %ecx
incl %ecx
cmpl $0x0, 0x20(%rsp)
movl %edx, %esi
cmovel %eax, %esi
cmovel %edx, %eax
movl %ecx, 0x10(%rdi,%r10)
subl %r8d, %esi
movl %esi, 0x14(%rdi,%r10)
incl %eax
movq %r10, 0x90(%rsp)
movl %eax, 0x18(%rdi,%r10)
xorl %eax, %eax
movl $0x0, %ecx
cmpq %rbp, %r12
jle 0x61c8
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rax
movq %rbp, %r14
movabsq $0x100000000, %r15      # imm = 0x100000000
movq 0x10(%rbx), %rdx
movq 0x88(%rbx), %rsi
movq 0x90(%rbx), %rdi
movq (%rdi,%r14,8), %rdi
movq (%rsi,%rdi,8), %r13
movq %r13, %rsi
sarq $0x20, %rsi
shlq $0x4, %rsi
addq %r15, 0x8(%rdx,%rsi)
cmpq 0x50(%rbx), %rcx
jne 0x60d9
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x50(%rbx)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, 0x58(%rbx)
movq 0x48(%rbx), %rcx
shrq $0x20, %r13
leaq 0x1(%rcx), %rdx
movq %rdx, 0x48(%rbx)
movl %r13d, (%rax,%rcx,4)
incq %r14
movq %rdx, %rcx
cmpq %r14, %r12
jne 0x6081
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rbx), %rax
movq %rax, 0x40(%rsp)
movq 0x90(%rbx), %rax
movq %rax, 0x30(%rsp)
xorl %edi, %edi
xorl %edx, %edx
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r11d, %r11d
xorl %r9d, %r9d
movq 0x78(%rsp), %r15
movl 0x4c(%rsp), %esi
xorl %r8d, %r8d
movq 0x20(%rsp), %r10
movq 0x30(%rsp), %rbx
movq (%rbx,%rbp,8), %rbx
movq 0x40(%rsp), %r14
movq (%r14,%rbx,8), %rbx
movq %rbx, %r14
shrq $0x1c, %r14
andq $-0x10, %r14
movq 0x10(%rsp), %r13
movl 0x8(%r13,%r14), %r14d
shrl %r14d
subl %esi, %r14d
movl $0x80000000, %r13d      # imm = 0x80000000
subl %ebx, %r13d
subl %esi, %ebx
testl %r10d, %r10d
cmovnel %r13d, %ebx
movl %eax, %r13d
subl %edi, %r13d
cmpl %eax, %ebx
cmovbel %r8d, %r13d
cmoval %ebx, %edi
addl %r13d, %r11d
movl %ebx, %eax
addl %r15d, %eax
movl %ecx, %ebx
subl %edx, %ebx
cmpl %ecx, %r14d
cmovbel %r8d, %ebx
cmoval %r14d, %edx
addl %ebx, %r9d
movl %r14d, %ecx
addl %r15d, %ecx
incq %rbp
cmpq %rbp, %r12
jne 0x6134
subl %edi, %eax
addl %r11d, %eax
subl %edx, %ecx
addl %r9d, %ecx
movq 0x28(%rsp), %rbx
movq 0x58(%rsp), %r13
movl 0xc(%rsp), %r15d
movq 0x18(%rsp), %rdi
addq 0x90(%rsp), %rdi
cmpl %ecx, %eax
cmovbl %eax, %ecx
movl %ecx, 0x8(%rdi)
movl %r12d, %r14d
jmp 0x623b
movq 0x10(%rbx), %rdx
movq 0x88(%rbx), %rcx
movq 0x90(%rbx), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rax
movq (%rcx,%rax,8), %rax
movq %rax, %rdi
shrq $0x1c, %rdi
andq $-0x10, %rdi
movl 0x8(%rdx,%rdi), %edi
shrl %edi
movq (%rcx,%rsi,8), %rcx
movq %rcx, %rsi
shrq $0x1c, %rsi
andq $-0x10, %rsi
movl 0x8(%rdx,%rsi), %edx
shrl %edx
subl %edx, %edi
cmpl %r15d, %edi
jle 0x623b
subl %ecx, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpl %r15d, %ecx
jg 0x5f4a
incq %r12
cmpq 0x60(%rsp), %r12
jne 0x5f3f
movq 0x88(%rsp), %rcx
leaq -0x1(%rcx), %rax
testq %rcx, %rcx
movq %rax, %rcx
jg 0x5d24
testb $0x1, 0x70(%rsp)
jne 0x63f4
movq $0x0, 0x60(%rbx)
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x63f4
movq 0x10(%rbx), %rdx
movl $0x8, %r14d
xorl %edi, %edi
movl $0x2, %r15d
xorl %r12d, %r12d
cmpl $0x0, 0x4(%rdx,%r14)
je 0x62e4
movq 0x70(%rbx), %rax
cmpq 0x68(%rbx), %rdi
jne 0x62d1
leaq (%rdi,%rdi), %rsi
testq %rdi, %rdi
cmoveq %r15, %rsi
movq %rsi, 0x68(%rbx)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, 0x70(%rbx)
movq (%rbx), %rcx
movq 0x10(%rbx), %rdx
movq 0x60(%rbx), %rdi
movl 0x4(%rdx,%r14), %esi
leaq 0x1(%rdi), %r8
movq %r8, 0x60(%rbx)
movl %esi, (%rax,%rdi,4)
movq %r8, %rdi
incq %r12
addq $0x10, %r14
cmpq %r12, %rcx
ja 0x6295
cmpq $0x3, %rdi
jb 0x63f4
movq 0x70(%rbx), %rsi
movq %rdi, %rdx
shrq %rdx
callq 0x32dc
movq 0xa0(%rbx), %rdx
xorl %ecx, %ecx
testq %rdx, %rdx
je 0x63ed
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x25c3(%rip), %xmm0     # 0x88f0
addsd 0x1ceb(%rip), %xmm0     # 0x8020
cvttsd2si %xmm0, %rax
movl %eax, %eax
xorl %esi, %esi
xorl %edi, %edi
movq 0xb0(%rbx), %r9
leaq (%rsi,%rsi,8), %r8
leaq (%r8,%r8,2), %r10
addq %rsi, %r10
movq (%r9,%r10), %r11
movl %r11d, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
je 0x6397
movq 0x10(%rbx), %r14
movl %ecx, %r15d
andl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
shlq $0x2, %r15
addq 0x58(%rbx), %r15
xorl %r12d, %r12d
xorl %ebx, %ebx
movl (%r15,%r12,4), %r13d
shlq $0x4, %r13
cmpl 0xc(%r14,%r13), %eax
sbbl $-0x1, %ebx
incq %r12
cmpq %r12, %r11
jne 0x637d
jmp 0x6399
xorl %ebx, %ebx
cmpl 0x58(%rsp), %ebx
jge 0x63a6
movq 0x28(%rsp), %rbx
jmp 0x63db
addq %r9, %r10
movslq %edi, %rdx
incl %edi
leaq (%rdx,%rdx,8), %r11
leaq (%r11,%r11,2), %r11
addq %rdx, %r11
movupd (%r10), %xmm0
movups 0xc(%r10), %xmm1
movups %xmm1, 0xc(%r9,%r11)
movupd %xmm0, (%r9,%r11)
movq 0x28(%rsp), %rbx
movq 0xa0(%rbx), %rdx
addl %r8d, %ecx
incq %rsi
cmpq %rsi, %rdx
ja 0x6340
movslq %edi, %rcx
movq %rcx, 0xa0(%rbx)
movl 0xa0(%rbx), %eax
movq 0x80(%rsp), %rcx
movl %eax, (%rcx)
movq 0xb0(%rbx), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq