// File: /workspace/github_c_makefile_star2_O3/lh3[P]minimap2/lchain.c
// Function: mg_lchain_rmq
mm128_t *mg_lchain_rmq(int max_dist, int max_dist_inner, int bw, int max_chn_skip, int cap_rmq_size, int min_cnt, int min_sc, float chn_pen_gap, float chn_pen_skip,
					   int64_t n, mm128_t *a, int *n_u_, uint64_t **_u, void *km)
{
	int32_t *f,*t, *v, n_u, n_v, mmax_f = 0, max_rmq_size = 0, max_drop = bw;
	int64_t *p, i, i0, st = 0, st_inner = 0;
	uint64_t *u;
	lc_elem_t *root = 0, *root_inner = 0;
	void *mem_mp = 0;
	kmp_rmq_t *mp;

	if (_u) *_u = 0, *n_u_ = 0;
	if (n == 0 || a == 0) {
		kfree(km, a);
		return 0;
	}
	if (max_dist < bw) max_dist = bw;
	if (max_dist_inner < 0) max_dist_inner = 0;
	if (max_dist_inner > max_dist) max_dist_inner = max_dist;
	p = Kmalloc(km, int64_t, n);
	f = Kmalloc(km, int32_t, n);
	t = Kcalloc(km, int32_t, n);
	v = Kmalloc(km, int32_t, n);
	mem_mp = km_init2(km, 0x10000);
	mp = kmp_init_rmq(mem_mp);

	// fill the score and backtrack arrays
	for (i = i0 = 0; i < n; ++i) {
		int64_t max_j = -1;
		int32_t q_span = a[i].y>>32&0xff, max_f = q_span;
		lc_elem_t s, *q, *r, lo, hi;
		// add in-range anchors
		if (i0 < i && a[i0].x != a[i].x) {
			int64_t j;
			for (j = i0; j < i; ++j) {
				q = kmp_alloc_rmq(mp);
				q->y = (int32_t)a[j].y, q->i = j, q->pri = -(f[j] + 0.5 * chn_pen_gap * ((int32_t)a[j].x + (int32_t)a[j].y));
				krmq_insert(lc_elem, &root, q, 0);
				if (max_dist_inner > 0) {
					r = kmp_alloc_rmq(mp);
					*r = *q;
					krmq_insert(lc_elem, &root_inner, r, 0);
				}
			}
			i0 = i;
		}
		// get rid of active chains out of range
		while (st < i && (a[i].x>>32 != a[st].x>>32 || a[i].x > a[st].x + max_dist || krmq_size(head, root) > cap_rmq_size)) {
			s.y = (int32_t)a[st].y, s.i = st;
			if ((q = krmq_find(lc_elem, root, &s, 0)) != 0) {
				q = krmq_erase(lc_elem, &root, q, 0);
				kmp_free_rmq(mp, q);
			}
			++st;
		}
		if (max_dist_inner > 0)  { // similar to the block above, but applied to the inner tree
			while (st_inner < i && (a[i].x>>32 != a[st_inner].x>>32 || a[i].x > a[st_inner].x + max_dist_inner || krmq_size(head, root_inner) > cap_rmq_size)) {
				s.y = (int32_t)a[st_inner].y, s.i = st_inner;
				if ((q = krmq_find(lc_elem, root_inner, &s, 0)) != 0) {
					q = krmq_erase(lc_elem, &root_inner, q, 0);
					kmp_free_rmq(mp, q);
				}
				++st_inner;
			}
		}
		// RMQ
		lo.i = INT32_MAX, lo.y = (int32_t)a[i].y - max_dist;
		hi.i = 0, hi.y = (int32_t)a[i].y;
		if ((q = krmq_rmq(lc_elem, root, &lo, &hi)) != 0) {
			int32_t sc, exact, width, n_skip = 0;
			int64_t j = q->i;
			assert(q->y >= lo.y && q->y <= hi.y);
			sc = f[j] + comput_sc_simple(&a[i], &a[j], chn_pen_gap, chn_pen_skip, &exact, &width);
			if (width <= bw && sc > max_f) max_f = sc, max_j = j;
			if (!exact && root_inner && (int32_t)a[i].y > 0) {
				lc_elem_t *lo, *hi;
				s.y = (int32_t)a[i].y - 1, s.i = n;
				krmq_interval(lc_elem, root_inner, &s, &lo, &hi);
				if (lo) {
					const lc_elem_t *q;
					int32_t width;
					krmq_itr_t(lc_elem) itr;
					krmq_itr_find(lc_elem, root_inner, lo, &itr);
					while ((q = krmq_at(&itr)) != 0) {
						if (q->y < (int32_t)a[i].y - max_dist_inner) break;
						j = q->i;
						sc = f[j] + comput_sc_simple(&a[i], &a[j], chn_pen_gap, chn_pen_skip, 0, &width);
						if (width <= bw) {
							if (sc > max_f) {
								max_f = sc, max_j = j;
								if (n_skip > 0) --n_skip;
							} else if (t[j] == (int32_t)i) {
								if (++n_skip > max_chn_skip)
									break;
							}
							if (p[j] >= 0) t[p[j]] = i;
						}
						if (!krmq_itr_prev(lc_elem, &itr)) break;
					}
				}
			}
		}
		// set max
		assert(max_j < 0 || (a[max_j].x < a[i].x && (int32_t)a[max_j].y < (int32_t)a[i].y));
		f[i] = max_f, p[i] = max_j;
		v[i] = max_j >= 0 && v[max_j] > max_f? v[max_j] : max_f; // v[] keeps the peak score up to i; f[] is the score ending at i, not always the peak
		if (mmax_f < max_f) mmax_f = max_f;
		if (max_rmq_size < krmq_size(head, root)) max_rmq_size = krmq_size(head, root);
	}
	km_destroy(mem_mp);

	u = mg_chain_backtrack(km, n, f, p, v, t, min_cnt, min_sc, max_drop, &n_u, &n_v);
	*n_u_ = n_u, *_u = u; // NB: note that u[] may not be sorted by score here
	kfree(km, p); kfree(km, f); kfree(km, t);
	if (n_u == 0) {
		kfree(km, a); kfree(km, v);
		return 0;
	}
	return compact_a(km, n_u, u, n_v, v, a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movss %xmm1, 0x50(%rsp)
movss %xmm0, 0x2c(%rsp)
movl %r8d, 0x54(%rsp)
movl %ecx, 0x94(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x3e0(%rsp), %rcx
movq 0x3d8(%rsp), %rdx
movq 0x3d0(%rsp), %r8
movq 0x3c8(%rsp), %r12
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movq %rax, 0x68(%rsp)
testq %rcx, %rcx
je 0x1669d
movq $0x0, (%rcx)
movl $0x0, (%rdx)
movq 0x3e8(%rsp), %r14
testq %r12, %r12
setne %al
testq %r8, %r8
setne %cl
testb %cl, %al
jne 0x166c0
movq %r14, %rdi
movq %r8, %rsi
jmp 0x17105
movq %r9, 0xa8(%rsp)
movq 0x60(%rsp), %rax
cmpl %eax, %edi
cmovlel %eax, %edi
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %eax
movq %rax, 0x98(%rsp)
cmovlel %ecx, %esi
cmpl %edi, %esi
movl %edi, 0x4c(%rsp)
cmovgel %edi, %esi
movl %esi, 0x14(%rsp)
leaq (,%r12,8), %rsi
movq %r14, %rdi
movq %r8, %r15
callq 0x1264d
movq %rax, 0x58(%rsp)
leaq (,%r12,4), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1264d
movq %rax, 0x30(%rsp)
movl $0x4, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x124ec
movq %rax, 0x78(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1264d
movq %rax, 0x40(%rsp)
movl $0x10000, %esi          # imm = 0x10000
movq %r14, %rdi
callq 0x124a4
movq %rax, %rbx
movl $0x1, %esi
movl $0x28, %edx
movq %rax, %rdi
callq 0x124ec
movq %rbx, 0xa0(%rsp)
movq %rbx, 0x20(%rax)
testq %r12, %r12
jle 0x17018
movq %r15, %r10
movq %rax, %r13
cvtss2sd 0x2c(%rsp), %xmm0
mulsd 0x16925(%rip), %xmm0    # 0x2d0b8
movsd %xmm0, 0xc0(%rsp)
movslq 0x4c(%rsp), %rax
movq %rax, 0xb8(%rsp)
movl 0x14(%rsp), %eax
movq %rax, 0xb0(%rsp)
leaq 0x8(%r15), %rax
movq %rax, 0x80(%rsp)
xorl %ebp, %ebp
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %r12, %rax
shlq $0x4, %rax
leaq (%r10,%rax), %rcx
movzbl 0xc(%r10,%rax), %eax
cmpq %r12, %r14
movq %r12, 0x38(%rsp)
movq %rcx, 0x20(%rsp)
movl %eax, 0x18(%rsp)
jge 0x1691f
movq %r14, %r15
shlq $0x4, %r15
movq (%r10,%r15), %rax
cmpq (%rcx), %rax
je 0x1691f
addq 0x80(%rsp), %r15
incq (%r13)
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x1682f
movq 0x18(%r13), %rcx
leaq -0x1(%rax), %rdx
movq %rdx, 0x8(%r13)
movq -0x8(%rcx,%rax,8), %r12
jmp 0x16845
movq 0x20(%r13), %rdi
movl $0x1, %esi
movl $0x38, %edx
callq 0x124ec
movq %rax, %r12
movl (%r15), %eax
movl %eax, (%r12)
movq %r14, 0x8(%r12)
movq 0x30(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sdl (%rcx,%r14,4), %xmm0
addl -0x8(%r15), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd 0xc0(%rsp), %xmm1
addsd %xmm0, %xmm1
xorpd 0x17b71(%rip), %xmm1    # 0x2e3f0
movlpd %xmm1, 0x10(%r12)
leaq 0x70(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x15c58
cmpl $0x0, 0x14(%rsp)
jle 0x16907
incq (%r13)
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x168bc
movq 0x18(%r13), %rcx
leaq -0x1(%rax), %rdx
movq %rdx, 0x8(%r13)
movq -0x8(%rcx,%rax,8), %rsi
jmp 0x168d2
movq 0x20(%r13), %rdi
movl $0x1, %esi
movl $0x38, %edx
callq 0x124ec
movq %rax, %rsi
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsi)
movupd (%r12), %xmm0
movupd 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsi)
movupd %xmm1, 0x10(%rsi)
movupd %xmm0, (%rsi)
leaq 0x68(%rsp), %rdi
xorl %edx, %edx
callq 0x15c58
incq %r14
addq $0x10, %r15
movq 0x38(%rsp), %r12
cmpq %r12, %r14
jl 0x1680f
movq %r12, %r14
cmpq %r12, %rbx
jge 0x16a17
movq %rbx, %r15
shlq $0x4, %r15
addq 0x80(%rsp), %r15
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq -0x8(%r15), %rcx
movq %rcx, %rdx
xorq %rax, %rdx
shrq $0x20, %rdx
movq 0x70(%rsp), %rdi
jne 0x16977
addq 0xb8(%rsp), %rcx
cmpq %rcx, %rax
ja 0x16977
testq %rdi, %rdi
je 0x16a17
movl 0x54(%rsp), %eax
cmpl %eax, 0x34(%rdi)
jbe 0x16a17
movl (%r15), %eax
movl %eax, 0xd0(%rsp)
movq %rbx, 0xd8(%rsp)
leaq 0xd0(%rsp), %rsi
xorl %edx, %edx
callq 0x158f0
testq %rax, %rax
je 0x16a07
leaq 0x70(%rsp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1606d
decq (%r13)
movq %rax, %r12
movq 0x8(%r13), %rcx
cmpq 0x10(%r13), %rcx
jne 0x169f2
movq %rcx, %rdx
shrq %rdx
addq %rcx, %rdx
cmpq $0x4, %rcx
movl $0x10, %eax
cmovbq %rax, %rdx
movq %rdx, 0x10(%r13)
movq 0x18(%r13), %rsi
movq 0x20(%r13), %rdi
shlq $0x3, %rdx
callq 0x12755
movq %rax, 0x18(%r13)
movq 0x8(%r13), %rcx
jmp 0x169f6
movq 0x18(%r13), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r13)
movq %r12, (%rax,%rcx,8)
movq 0x38(%rsp), %r12
incq %rbx
addq $0x10, %r15
cmpq %r12, %rbx
jl 0x16937
cmpl $0x0, 0x14(%rsp)
setg %al
cmpq %r12, %rbp
setl %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x16b1f
movq %rbp, %r15
shlq $0x4, %r15
addq 0x80(%rsp), %r15
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq -0x8(%r15), %rcx
movq %rcx, %rdx
xorq %rax, %rdx
shrq $0x20, %rdx
movq 0x68(%rsp), %rdi
jne 0x16a7f
addq 0xb0(%rsp), %rcx
cmpq %rcx, %rax
ja 0x16a7f
testq %rdi, %rdi
je 0x16b1f
movl 0x54(%rsp), %eax
cmpl %eax, 0x34(%rdi)
jbe 0x16b1f
movl (%r15), %eax
movl %eax, 0xd0(%rsp)
movq %rbp, 0xd8(%rsp)
leaq 0xd0(%rsp), %rsi
xorl %edx, %edx
callq 0x158f0
testq %rax, %rax
je 0x16b0f
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1606d
decq (%r13)
movq %rax, %r12
movq 0x8(%r13), %rcx
cmpq 0x10(%r13), %rcx
jne 0x16afa
movq %rcx, %rdx
shrq %rdx
addq %rcx, %rdx
cmpq $0x4, %rcx
movl $0x10, %eax
cmovbq %rax, %rdx
movq %rdx, 0x10(%r13)
movq 0x18(%r13), %rsi
movq 0x20(%r13), %rdi
shlq $0x3, %rdx
callq 0x12755
movq %rax, 0x18(%r13)
movq 0x8(%r13), %rcx
jmp 0x16afe
movq 0x18(%r13), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r13)
movq %r12, (%rax,%rcx,8)
movq 0x38(%rsp), %r12
incq %rbp
addq $0x10, %r15
cmpq %r12, %rbp
jl 0x16a3f
movq $0x7fffffff, 0x150(%rsp) # imm = 0x7FFFFFFF
movq 0x20(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, %r15d
subl 0x4c(%rsp), %r15d
movl %r15d, 0x148(%rsp)
movq $0x0, 0x118(%rsp)
movl %eax, 0x8(%rsp)
movl %eax, 0x110(%rsp)
movq 0x70(%rsp), %rdi
movq %rdi, 0x88(%rsp)
leaq 0x148(%rsp), %rsi
leaq 0x110(%rsp), %rdx
callq 0x159f2
testq %rax, %rax
je 0x16c09
movl (%rax), %ecx
cmpl %r15d, %ecx
movl 0x8(%rsp), %r8d
jl 0x1713d
cmpl %r8d, %ecx
jg 0x1713d
movq 0x8(%rax), %r11
movq %r11, %rax
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
movl (%rcx), %edi
movq 0x3d0(%rsp), %r10
movq 0x8(%r10,%rax), %rdx
subl %edx, %r8d
subl (%r10,%rax), %edi
movl %r8d, %r9d
subl %edi, %r9d
movl %edi, %esi
cmovll %r8d, %esi
setne %al
movl %r9d, %ecx
negl %ecx
cmovsl %r9d, %ecx
shrq $0x20, %rdx
movzbl %dl, %r9d
cmpl %esi, %r9d
movl %esi, %edx
cmovll %r9d, %edx
setl 0x10(%rsp)
cmpl %edi, %r8d
jne 0x16c21
cmpl %r9d, %r8d
jg 0x16c21
movq 0x20(%rsp), %r15
movl %edx, %r8d
jmp 0x16cb5
movq $-0x1, %r11
movq 0x3d0(%rsp), %r10
movl 0x18(%rsp), %edx
jmp 0x16fbd
xorpd %xmm0, %xmm0
cmpl %edi, %r8d
je 0x16c7c
leal 0x1(%rcx), %edi
xorps %xmm0, %xmm0
cvtsi2ss %edi, %xmm0
movd %xmm0, %edi
movl %edi, %r8d
shrl $0x17, %r8d
addl $-0x80, %r8d
cvtsi2ss %r8, %xmm1
andl $0x7fffff, %edi         # imm = 0x7FFFFF
orl $0x3f800000, %edi       # imm = 0x3F800000
movd %edi, %xmm2
movdqa %xmm2, %xmm0
mulss 0x17774(%rip), %xmm0    # 0x2e3d8
addss 0x17770(%rip), %xmm0    # 0x2e3dc
mulss %xmm2, %xmm0
addss 0x17768(%rip), %xmm0    # 0x2e3e0
addss %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2ss %esi, %xmm2
mulss 0x50(%rsp), %xmm2
mulss 0x2c(%rsp), %xmm1
addss %xmm2, %xmm1
mulss 0x17742(%rip), %xmm0    # 0x2e3e4
addss %xmm1, %xmm0
cvttss2si %xmm0, %esi
movl %edx, %r8d
subl %esi, %r8d
movq 0x20(%rsp), %r15
orb 0x10(%rsp), %al
movq 0x30(%rsp), %rdx
addl (%rdx,%r11,4), %r8d
cmpl 0x60(%rsp), %ecx
setle %cl
movl 0x18(%rsp), %esi
cmpl %esi, %r8d
setg %dl
testb %dl, %cl
movq $-0x1, %rcx
cmoveq %rcx, %r11
cmovel %esi, %r8d
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
setne %cl
movl 0x8(%rsp), %esi
testl %esi, %esi
setg %dl
andb %cl, %dl
andb %al, %dl
cmpb $0x1, %dl
jne 0x16f62
movl %r8d, 0x10(%rsp)
movq %r11, 0x18(%rsp)
decl %esi
movl %esi, 0xd0(%rsp)
movq 0x3c8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq %rdi, 0x8(%rsp)
leaq 0xd0(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
leaq 0x108(%rsp), %rcx
callq 0x15966
movq 0xc8(%rsp), %rsi
testq %rsi, %rsi
je 0x16f50
movq 0x8(%rsp), %rdi
leaq 0x180(%rsp), %r15
movq %r15, %rdx
callq 0x16543
movl $0x0, 0x8(%rsp)
movq 0x3d0(%rsp), %r10
movq 0x18(%rsp), %r11
movl 0x10(%rsp), %edi
movq 0x380(%rsp), %rax
cmpq %r15, %rax
jb 0x16f3e
movq (%rax), %rax
testq %rax, %rax
je 0x16f3e
movq 0x20(%rsp), %rdx
movl 0x8(%rdx), %esi
movl %esi, %ecx
subl 0x14(%rsp), %ecx
cmpl %ecx, (%rax)
jl 0x16f3e
movl %edi, %r15d
movq 0x8(%rax), %rax
movq %rax, %rcx
shlq $0x4, %rcx
movl (%rdx), %edi
movq 0x8(%r10,%rcx), %r8
subl %r8d, %esi
subl (%r10,%rcx), %edi
movl %esi, %r9d
subl %edi, %r9d
movl %edi, %edx
cmovll %esi, %edx
movl %r9d, %ecx
negl %ecx
cmovsl %r9d, %ecx
shrq $0x20, %r8
movzbl %r8b, %r8d
cmpl %edx, %r8d
movl %edx, %r12d
cmovll %r8d, %r12d
cmpl %edi, %esi
jne 0x16e0b
cmpl %r8d, %esi
jle 0x16e95
xorps %xmm0, %xmm0
cmpl %edi, %esi
je 0x16e64
leal 0x1(%rcx), %esi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
movd %xmm0, %esi
movl %esi, %edi
shrl $0x17, %edi
addl $-0x80, %edi
xorps %xmm1, %xmm1
cvtsi2ss %rdi, %xmm1
andl $0x7fffff, %esi         # imm = 0x7FFFFF
orl $0x3f800000, %esi       # imm = 0x3F800000
movd %esi, %xmm2
movdqa %xmm2, %xmm0
mulss 0x1758c(%rip), %xmm0    # 0x2e3d8
addss 0x17588(%rip), %xmm0    # 0x2e3dc
mulss %xmm2, %xmm0
addss 0x17580(%rip), %xmm0    # 0x2e3e0
addss %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2ss %edx, %xmm2
mulss 0x50(%rsp), %xmm2
mulss 0x2c(%rsp), %xmm1
addss %xmm2, %xmm1
mulss 0x1755a(%rip), %xmm0    # 0x2e3e4
addss %xmm1, %xmm0
cvttss2si %xmm0, %edx
subl %edx, %r12d
cmpl 0x60(%rsp), %ecx
jle 0x16ea5
movq %r11, 0x18(%rsp)
movl %r15d, %r12d
jmp 0x16f12
movq 0x30(%rsp), %rcx
addl (%rcx,%rax,4), %r12d
cmpl %r15d, %r12d
jle 0x16ec9
xorl %ecx, %ecx
movl 0x8(%rsp), %edx
testl %edx, %edx
setg %cl
subl %ecx, %edx
movl %edx, 0x8(%rsp)
movq %rax, %r11
jmp 0x16ef2
movq 0x78(%rsp), %rcx
movq 0x38(%rsp), %rdx
cmpl %edx, (%rcx,%rax,4)
jne 0x16eef
movl 0x8(%rsp), %ecx
cmpl 0x94(%rsp), %ecx
jge 0x17010
incl %ecx
movl %ecx, 0x8(%rsp)
movl %r15d, %r12d
movq 0x58(%rsp), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
movq %r11, 0x18(%rsp)
js 0x16f12
movq 0x78(%rsp), %rcx
movq 0x38(%rsp), %rdx
movl %edx, (%rcx,%rax,4)
leaq 0x180(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x165b4
movl %r12d, %edi
testl %eax, %eax
movq 0x3d0(%rsp), %r10
movq 0x18(%rsp), %r11
jne 0x16d89
jmp 0x16f41
movl %edi, %r12d
movl %r12d, %r8d
movq 0x38(%rsp), %r12
movq 0x20(%rsp), %r15
jmp 0x16f62
movq 0x3d0(%rsp), %r10
movq 0x18(%rsp), %r11
movl 0x10(%rsp), %r8d
testq %r11, %r11
js 0x16fba
movq %r11, %rax
shlq $0x4, %rax
movq (%r10,%rax), %rcx
cmpq (%r15), %rcx
jae 0x1711e
addq %r10, %rax
movl 0x8(%rax), %eax
cmpl 0x8(%r15), %eax
jge 0x1711e
movq 0x30(%rsp), %rax
movl %r8d, (%rax,%r12,4)
movq 0x58(%rsp), %rax
movq %r11, (%rax,%r12,8)
movq 0x40(%rsp), %rcx
movl (%rcx,%r11,4), %eax
cmpl %r8d, %eax
cmovgl %eax, %r8d
movl %r8d, %edx
movq 0x88(%rsp), %rsi
jmp 0x16fdc
movl %r8d, %edx
movq 0x88(%rsp), %rsi
movq 0x30(%rsp), %rax
movl %edx, (%rax,%r12,4)
movq 0x58(%rsp), %rax
movq %r11, (%rax,%r12,8)
movq 0x40(%rsp), %rcx
movl %edx, (%rcx,%r12,4)
testq %rsi, %rsi
je 0x16ffd
movl 0x34(%rsi), %eax
movq 0x98(%rsp), %rcx
cmpl %eax, %ecx
cmovbel %eax, %ecx
movq %rcx, 0x98(%rsp)
incq %r12
cmpq 0x3c8(%rsp), %r12
jne 0x167cb
jmp 0x17018
movl %r15d, %r12d
jmp 0x16f41
movl 0x3c0(%rsp), %ebx
movq 0xa0(%rsp), %rdi
callq 0x12549
subq $0x8, %rsp
leaq 0xd8(%rsp), %rax
leaq 0x188(%rsp), %rbp
movq 0x3f0(%rsp), %r15
movq %r15, %rdi
movq 0x3d0(%rsp), %rsi
movq 0x38(%rsp), %r13
movq %r13, %rdx
movq 0x60(%rsp), %r14
movq %r14, %rcx
movq 0x48(%rsp), %r8
movq 0x80(%rsp), %r12
movq %r12, %r9
pushq %rax
pushq %rbp
pushq 0x78(%rsp)
pushq %rbx
pushq 0xd0(%rsp)
callq 0x14ab0
addq $0x30, %rsp
movq %rax, %rbx
movl (%rbp), %ebp
movq 0x3d8(%rsp), %rax
movl %ebp, (%rax)
movq 0x3e0(%rsp), %rax
movq %rbx, (%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x12587
movq %r15, %rdi
movq %r13, %rsi
callq 0x12587
movq %r15, %rdi
movq %r12, %rsi
callq 0x12587
testl %ebp, %ebp
je 0x170ed
movl 0xd0(%rsp), %ecx
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq 0x40(%rsp), %r8
movq 0x3d0(%rsp), %r9
callq 0x156f0
jmp 0x1710c
movq %r15, %rdi
movq 0x3d0(%rsp), %rsi
callq 0x12587
movq %r15, %rdi
movq 0x40(%rsp), %rsi
callq 0x12587
xorl %eax, %eax
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17420(%rip), %rdi     # 0x2e545
leaq 0x172e4(%rip), %rsi     # 0x2e410
leaq 0x1739a(%rip), %rcx     # 0x2e4cd
movl $0x160, %edx            # imm = 0x160
callq 0x21a0
leaq 0x1736c(%rip), %rdi     # 0x2e4b0
leaq 0x172c5(%rip), %rsi     # 0x2e410
leaq 0x1737b(%rip), %rcx     # 0x2e4cd
movl $0x140, %edx            # imm = 0x140
callq 0x21a0