// File: /workspace/github_c_makefile_star2_O2/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 $0x68, %rsp
movq %r9, %r12
movq %r8, %rbx
andl $0x0, 0x34(%rsp)
movq %rcx, 0x60(%rsp)
andq $0x0, 0x18(%r8)
movq %rdx, %r14
andq $0x0, (%r8)
movl %esi, %ebp
movl 0x4(%rdi), %edx
movq %rdi, 0x10(%rsp)
movl 0x8(%rdi), %ecx
movq %r14, %rdi
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x64d4
movl 0x10(%r12), %edx
testl %edx, %edx
jle 0x5140
movq 0x78(%rbx), %r9
pushq $0x40
popq %rcx
leaq 0x34(%rsp), %r8
movq %r14, %rdi
movl %ebp, %esi
callq 0x6be5
movq %rax, %rbp
jmp 0x5142
xorl %ebp, %ebp
pushq $0x2
popq %rax
movq %rax, 0x38(%rsp)
xorl %r11d, %r11d
xorl %r13d, %r13d
movq %rbp, 0x20(%rsp)
movq %r12, 0x50(%rsp)
cmpq %r11, (%rbx)
jbe 0x53f3
testq %rbp, %rbp
setne %sil
movq 0x10(%rbx), %rax
movq %r11, %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rdi
movl %edi, %edx
movq %rdi, 0x18(%rsp)
movl %edi, %r8d
shrl %r8d
movq %rdx, 0x8(%rax,%rcx)
movl 0x34(%rsp), %edx
testl %edx, %edx
setne %dil
andb %sil, %dil
cmpb $0x1, %dil
movq %r8, 0x8(%rsp)
movq %r11, 0x48(%rsp)
jne 0x5248
movslq %edx, %rsi
movq 0x10(%rsp), %rdx
movl 0x8(%rdx), %edx
leal 0x1(%r8), %edi
movl %edi, %r8d
subl %edx, %r8d
movslq %r13d, %r13
movq %r13, %r9
shlq $0x20, %r9
cmpq %rsi, %r13
jge 0x5248
cmpl (%rbp,%r13,8), %r8d
jb 0x51ea
incq %r13
movabsq $0x100000000, %r10      # imm = 0x100000000
addq %r10, %r9
jmp 0x51cc
sarq $0x1d, %r9
movl 0x4(%rbp,%r9), %r10d
movslq %edi, %r9
cmpq %r9, %r10
jae 0x5248
movslq %r8d, %r10
movq %r13, %r11
xorl %ebp, %ebp
cmpq %rsi, %r11
jge 0x5239
movq 0x20(%rsp), %r14
movq (%r14,%r11,8), %r14
movq %r14, %r15
shrq $0x20, %r15
cmpq %r9, %r15
jae 0x5239
cmpq %r10, %r15
cmovbl %r8d, %r15d
cmpl %r14d, %edi
cmovbl %edi, %r14d
addl %ebp, %r14d
subl %r15d, %r14d
incq %r11
movl %r14d, %ebp
jmp 0x5203
sarl %edx
cmpl %edx, %ebp
movq 0x20(%rsp), %rbp
jg 0x53e6
movq (%rax,%rcx), %rsi
movq 0x10(%rsp), %r15
movq %r15, %rdi
leaq 0x30(%rsp), %rdx
callq 0x3918
movq %rax, %r14
movl 0x30(%rsp), %eax
cmpl 0x18(%r15), %eax
ja 0x53e6
movq %r13, 0x40(%rsp)
movq 0x48(%rsp), %rcx
shlq $0x20, %rcx
movq %rcx, 0x28(%rsp)
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
cltq
cmpq %rax, %rbp
jge 0x53d7
movq (%r14,%rbp,8), %r12
movl %r12d, %r13d
shrl %r13d
cmpq $0x0, 0xa0(%rsp)
je 0x5326
movq 0x50(%rsp), %rax
movl 0x14(%rax), %r15d
testb $0x2, %r15b
je 0x52f0
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x52f0
movq %r12, %rcx
shrq $0x20, %rcx
movq (%rax,%rcx,8), %rsi
movq 0xa0(%rsp), %rdi
callq 0x2160
movq 0x8(%rsp), %rdi
testl %eax, %eax
jne 0x52f0
cmpl %edi, %r13d
je 0x53cb
testb $0x8, %r15b
je 0x5326
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x5326
shrq $0x20, %r12
movq (%rax,%r12,8), %rsi
movq 0xa0(%rsp), %rdi
callq 0x2160
movq 0x8(%rsp), %rdi
testl %eax, %eax
jg 0x53cb
movq 0x18(%rbx), %rcx
movq 0x28(%rbx), %rax
cmpq 0x20(%rbx), %rcx
jne 0x535f
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x20(%rbx)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x2200
movq 0x8(%rsp), %rdi
movq %rax, 0x28(%rbx)
movq 0x18(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rbx)
movq (%r14,%rbp,8), %rdx
movq 0x18(%rsp), %rsi
xorl %edx, %esi
testb $0x1, %sil
jne 0x539c
movabsq $-0x80000001, %rsi      # imm = 0xFFFFFFFF7FFFFFFF
addq $-0x7fffffff, %rsi      # imm = 0x80000001
andq %rsi, %rdx
movl %r13d, %esi
subl %edi, %esi
addl $0x80000000, %esi       # imm = 0x80000000
orq %rdx, %rsi
jmp 0x53b5
movabsq $0x7fffffff00000000, %rsi # imm = 0x7FFFFFFF00000000
andq %rsi, %rdx
leal (%rdi,%r13), %esi
orq %rdx, %rsi
btsq $0x3f, %rsi
shlq $0x4, %rcx
addq %rcx, %rax
movl %r13d, %ecx
orq 0x28(%rsp), %rcx
movq %rsi, (%rax)
movq %rcx, 0x8(%rax)
incq %rbp
movl 0x30(%rsp), %eax
jmp 0x5289
movq 0x50(%rsp), %r12
movq 0x40(%rsp), %r13
movq 0x20(%rsp), %rbp
movq 0x48(%rsp), %r11
incq %r11
jmp 0x515a
movq 0x18(%rbx), %rsi
movq 0x28(%rbx), %rdi
shlq $0x4, %rsi
addq %rdi, %rsi
callq 0x2f60
andq $0x0, 0xa0(%rbx)
movslq 0x8(%r12), %rdx
movq 0x18(%rbx), %rax
movq %rdx, 0x8(%rsp)
cmpq %rdx, %rax
jb 0x5c4c
movslq (%r12), %r13
movq 0x10(%rsp), %rcx
movl 0x8(%rcx), %ecx
movq %rcx, 0x40(%rsp)
movl 0x4(%r12), %ecx
movl %ecx, 0x20(%rsp)
movl 0x14(%r12), %ecx
movss 0x18(%r12), %xmm0
movss %xmm0, 0x18(%rsp)
movl %ecx, 0x5c(%rsp)
testb $0x4, %cl
je 0x5545
leal (,%r13,2), %ecx
pushq $0x1
popq %rdx
pushq $0x8
popq %rsi
movl $0x80000000, %edi       # imm = 0x80000000
movq %rax, %r8
subq $0x1, %r8
jb 0x5489
movq 0x28(%rbx), %r9
orq %rdi, (%r9,%rsi)
addq $0x10, %rsi
jmp 0x5475
pushq $0x18
popq %rsi
cmpq %rdx, %rax
jbe 0x54ff
movq 0x28(%rbx), %rdi
movq %rdx, %r8
shlq $0x4, %r8
movq (%rdi,%r8), %r11
movq 0x8(%rdi,%r8), %r9
leaq (%rdi,%rsi), %r10
movq 0x38(%rsp), %r14
decq %r14
testq %r14, %r14
jle 0x54f1
movq %r11, %r15
subq -0x18(%r10), %r15
cmpq %r13, %r15
jae 0x54f1
movl -0x10(%r10), %ebp
addq $-0x10, %r10
subl %r9d, %ebp
movl %ebp, %r15d
negl %r15d
cmovsl %ebp, %r15d
cmpl %ecx, %r15d
jge 0x54ae
movabsq $-0x80000001, %r11      # imm = 0xFFFFFFFF7FFFFFFF
andq %r11, %r9
movq %r9, 0x8(%rdi,%r8)
andq %r11, (%r10)
incq %rdx
incq 0x38(%rsp)
addq $0x10, %rsi
jmp 0x548c
xorl %ecx, %ecx
pushq $0x8
popq %rdx
xorl %esi, %esi
cmpq %rcx, %rax
jbe 0x553e
movq 0x28(%rbx), %rdi
testb $-0x80, 0x3(%rdi,%rdx)
jne 0x5535
leaq (%rdi,%rdx), %rax
addq $-0x8, %rax
movslq %esi, %r8
incl %esi
shlq $0x4, %r8
movupd (%rax), %xmm0
movupd %xmm0, (%rdi,%r8)
movq 0x18(%rbx), %rax
incq %rcx
addq $0x10, %rdx
jmp 0x5506
movslq %esi, %rax
movq %rax, 0x18(%rbx)
andq $0x0, 0x30(%rbx)
leaq 0x30(%rbx), %rcx
movq %rcx, 0x28(%rsp)
xorl %esi, %esi
pushq $0x1
popq %r15
cmpq %r15, %rax
jbe 0x55e2
movq 0x28(%rbx), %rcx
movq %r15, %r12
shlq $0x4, %r12
movq (%rcx,%r12), %rdx
movslq %esi, %r14
movq %r14, %rbp
shlq $0x4, %rbp
subq (%rcx,%rbp), %rdx
cmpq %r13, %rdx
jbe 0x55da
movl %r15d, %eax
subl %esi, %eax
cmpl 0x8(%rsp), %eax
jl 0x55a2
movq 0x28(%rsp), %rdi
movl %r15d, %edx
movss 0x18(%rsp), %xmm0
callq 0x5fc5
leaq 0x1(%r14), %rax
cmpq %rax, %r15
cmovgq %r15, %rax
addq $0x10, %rbp
incq %r14
cmpq %r15, %r14
jge 0x55d0
movq 0x28(%rbx), %rcx
movq (%rcx,%r12), %rdx
subq (%rcx,%rbp), %rdx
addq $0x10, %rbp
cmpq %r13, %rdx
ja 0x55b1
jmp 0x55d3
movq %rax, %r14
movq 0x18(%rbx), %rax
movl %r14d, %esi
incq %r15
jmp 0x5559
movl %r15d, %eax
subl %esi, %eax
cmpl 0x8(%rsp), %eax
jl 0x5600
movq 0x28(%rsp), %rdi
movl %r15d, %edx
movss 0x18(%rsp), %xmm0
callq 0x5fc5
movq 0x30(%rbx), %rsi
movq 0x40(%rbx), %rdi
shlq $0x4, %rsi
addq %rdi, %rsi
callq 0x2f60
andq $0x0, 0x48(%rbx)
movq 0x30(%rbx), %r12
movq 0x40(%rsp), %rax
decl %eax
movl %eax, 0x18(%rsp)
pushq $-0x1
popq %rbp
pushq $0x1
popq %r13
decq %r12
testl %r12d, %r12d
js 0x5aff
movq 0x40(%rbx), %rax
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %r14
movq (%rax,%rcx), %r15
addq %r14, %r15
movl %r15d, %eax
subl %r14d, %eax
cmpl 0x84(%rbx), %eax
jbe 0x56eb
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)
andl $0x0, 0x80(%rbx)
movslq %r14d, %rax
movslq %r15d, %rcx
movq %rax, %rdx
shlq $0x4, %rdx
xorl %esi, %esi
xorl %r15d, %r15d
movl %ebp, %r14d
movl %esi, %r8d
cmpq %rcx, %rax
jge 0x574a
movq 0x28(%rbx), %rdi
cmpq $-0x1, (%rdi,%rdx)
je 0x5741
movq 0x8(%rdi,%rdx), %r9
movq 0x88(%rbx), %r10
incl %esi
movl %esi, 0x80(%rbx)
movq %r9, (%r10,%r8,8)
movq (%rdi,%rdx), %r15
movq %r15, %r14
shrq $0x20, %r14
shrq $0x3f, %r15
incq %rax
addq $0x10, %rdx
jmp 0x5707
cmpl 0x8(%rsp), %esi
jb 0x562f
movq 0x88(%rbx), %rdi
leaq (%rdi,%r8,8), %rsi
callq 0x4d1b
movl 0x80(%rbx), %edi
movq 0x88(%rbx), %rsi
movq 0x90(%rbx), %rdx
movq 0x98(%rbx), %rcx
testl %r15d, %r15d
je 0x578b
callq 0x4f08
jmp 0x5790
callq 0x4d39
cmpl %eax, 0x8(%rsp)
jg 0x562f
cltq
pushq $0x1
popq %rcx
movl %r13d, %r9d
cmpq %rax, %rcx
jge 0x57e2
movq 0x88(%rbx), %rdx
movq 0x90(%rbx), %rsi
movq -0x8(%rsi,%rcx,8), %r8
movq (%rsi,%rcx,8), %rdi
movq (%rdx,%rdi,8), %rdi
movq (%rdx,%r8,8), %r8
xorq %rdi, %r8
shrq $0x20, %r8
je 0x57dd
movslq %r9d, %r8
incl %r9d
movq (%rsi,%r8,8), %rsi
movq %rdi, (%rdx,%rsi,8)
incq %rcx
jmp 0x57a2
cmpl 0x8(%rsp), %r9d
jl 0x562f
movq %r12, 0x38(%rsp)
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
shlq $0x20, %r14
movl %r15d, %eax
shll $0x1f, %eax
orq %r14, %rax
movq %rax, 0x48(%rsp)
movl %r9d, %eax
movq %rax, 0x28(%rsp)
xorl %r13d, %r13d
testl %r9d, %r9d
cmovlel %r13d, %r9d
incl %r9d
pushq $0x1
popq %r14
movl 0x20(%rsp), %r8d
movq %r9, 0x10(%rsp)
cmpq %r9, %r14
je 0x5af5
cmpq 0x28(%rsp), %r14
jne 0x5853
movl %r14d, %r12d
subl %r13d, %r12d
cmpl 0x8(%rsp), %r12d
jge 0x58b6
movl %r14d, %r13d
jmp 0x5ae8
movq 0x10(%rbx), %rdx
movq 0x88(%rbx), %rcx
movq 0x90(%rbx), %rax
movq -0x8(%rax,%r14,8), %rsi
movq (%rax,%r14,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 %r8d, %edi
jle 0x5aed
subl %ecx, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpl %r8d, %ecx
jg 0x583e
jmp 0x5aed
movq 0xa0(%rbx), %rcx
movq 0xb0(%rbx), %rax
cmpq 0xa8(%rbx), %rcx
jne 0x58fc
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xa8(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, 0xb0(%rbx)
movq 0xa0(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0xa0(%rbx)
imulq $0x1c, %rcx, %rcx
leaq (%rax,%rcx), %rdx
movq %rdx, 0x50(%rsp)
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
orq 0x48(%rsp), %r12
movq %r12, (%rax,%rcx)
movq 0x10(%rbx), %rsi
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %r8
movslq %r13d, %r12
movq (%r8,%r12,8), %rdx
movq (%rdi,%rdx,8), %rdx
movq %rdx, %r9
shrq $0x1c, %r9
andq $-0x10, %r9
movl 0x8(%rsi,%r9), %r9d
shrl %r9d
movl 0x18(%rsp), %r10d
subl %r10d, %r9d
movl %r9d, 0xc(%rax,%rcx)
movq -0x8(%r8,%r14,8), %r8
movq (%rdi,%r8,8), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
andq $-0x10, %r8
movl 0x8(%rsi,%r8), %esi
shrl %esi
incl %esi
testl %r15d, %r15d
movl %edi, %r8d
cmovel %edx, %r8d
movl %esi, 0x10(%rax,%rcx)
cmovel %edi, %edx
subl %r10d, %r8d
movl %r8d, 0x14(%rax,%rcx)
incl %edx
movl %edx, 0x18(%rax,%rcx)
movq %r12, %r13
cmpq %r14, %r13
jge 0x5a24
movq 0x10(%rbx), %rax
movq 0x88(%rbx), %rcx
movq 0x90(%rbx), %rdx
movq (%rdx,%r13,8), %rdx
movq (%rcx,%rdx,8), %rbp
movq %rbp, %rcx
sarq $0x20, %rcx
shlq $0x4, %rcx
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %rdx, 0x8(%rax,%rcx)
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rax
cmpq 0x50(%rbx), %rcx
jne 0x5a0d
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
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, %rbp
leaq 0x1(%rcx), %rdx
movq %rdx, 0x48(%rbx)
movl %ebp, (%rax,%rcx,4)
incq %r13
jmp 0x59a0
xorl %eax, %eax
xorl %edx, %edx
xorl %edi, %edi
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %esi, %esi
movq 0x40(%rsp), %r13
cmpq %r14, %r12
jge 0x5ac7
movq 0x10(%rbx), %r10
movq 0x88(%rbx), %r9
movq 0x90(%rbx), %r11
movq (%r11,%r12,8), %r11
movq (%r9,%r11,8), %r9
movq %r9, %r11
shrq $0x1c, %r11
andq $-0x10, %r11
movl 0x8(%r10,%r11), %r10d
shrl %r10d
movl 0x18(%rsp), %ebp
subl %ebp, %r10d
movl $0x80000000, %r11d      # imm = 0x80000000
subl %r9d, %r11d
subl %ebp, %r9d
testl %r15d, %r15d
cmovnel %r11d, %r9d
movl %r8d, %r11d
subl %esi, %r11d
cmpl %r8d, %r9d
movl $0x0, %ebp
cmovbel %ebp, %r11d
cmoval %r9d, %esi
addl %r11d, %edx
addl %r13d, %r9d
movl %edi, %r8d
subl %ecx, %r8d
cmpl %edi, %r10d
cmovbel %ebp, %r8d
cmoval %r10d, %ecx
addl %r8d, %eax
addl %r13d, %r10d
incq %r12
movl %r10d, %edi
movl %r9d, %r8d
jmp 0x5a36
addl %edx, %r8d
subl %esi, %r8d
addl %eax, %edi
subl %ecx, %edi
cmpl %edi, %r8d
cmovbl %r8d, %edi
movq 0x50(%rsp), %rax
movl %edi, 0x8(%rax)
movl %r14d, %r13d
movl 0x20(%rsp), %r8d
movq 0x10(%rsp), %r9
incq %r14
jmp 0x582e
movq 0x38(%rsp), %r12
jmp 0x5628
testb $0x1, 0x5c(%rsp)
jne 0x5c4c
andq $0x0, 0x60(%rbx)
pushq $0x8
popq %r14
xorl %edi, %edi
xorl %r15d, %r15d
cmpq %r15, (%rbx)
jbe 0x5b81
movq 0x10(%rbx), %rax
movq (%rax,%r14), %rcx
movq %rcx, %rax
shrq $0x20, %rax
je 0x5b78
movq 0x70(%rbx), %rax
cmpq 0x68(%rbx), %rdi
jne 0x5b66
leaq (%rdi,%rdi), %rsi
testq %rdi, %rdi
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x68(%rbx)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, 0x70(%rbx)
movq 0x10(%rbx), %rcx
movq 0x60(%rbx), %rdi
movq (%rcx,%r14), %rcx
shrq $0x20, %rcx
leaq 0x1(%rdi), %rdx
movq %rdx, 0x60(%rbx)
movl %ecx, (%rax,%rdi,4)
movq %rdx, %rdi
incq %r15
addq $0x10, %r14
jmp 0x5b18
cmpq $0x3, %rdi
jb 0x5c4c
movq 0x70(%rbx), %rsi
movq %rdi, %rdx
shrq %rdx
callq 0x3074
movl %eax, %eax
cvtsi2sd %rax, %xmm0
mulsd 0x2d47(%rip), %xmm0     # 0x88f0
addsd 0x245f(%rip), %xmm0     # 0x8010
cvttsd2si %xmm0, %rax
movl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
xorl %esi, %esi
movslq %edx, %r8
cmpq %rcx, 0xa0(%rbx)
jbe 0x5c45
movq 0xb0(%rbx), %r9
imulq $0x1c, %rcx, %rdi
leaq (%r9,%rdi), %r10
movq (%r9,%rdi), %rdi
movl %esi, %r11d
movl %edi, %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
subq $0x1, %r14
jb 0x5c0f
movq 0x10(%rbx), %r15
movq 0x58(%rbx), %r12
movl (%r12,%r11,4), %r12d
shlq $0x4, %r12
cmpl 0xc(%r15,%r12), %eax
sbbl $-0x1, %ebp
incq %r11
jmp 0x5bec
cmpl 0x8(%rsp), %ebp
jl 0x5c33
leal 0x1(%r8), %edx
imulq $0x1c, %r8, %r8
movupd (%r10), %xmm0
movups 0xc(%r10), %xmm1
movups %xmm1, 0xc(%r9,%r8)
movupd %xmm0, (%r9,%r8)
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
addl %esi, %edi
incq %rcx
movl %edi, %esi
jmp 0x5bbe
movq %r8, 0xa0(%rbx)
movl 0xa0(%rbx), %eax
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
movq 0xb0(%rbx), %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq